cancel
Showing results for 
Search instead for 
Did you mean: 

Routines for File name at External Data in Info Package level.

Former Member
0 Kudos

Hi All,

Can any one give the example codes of how to write the routine for Files at External Data in Info Package level.

Regards

srinivas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Go to for a good example of a start routine.

Once you bring the flat file data into BW you can manipulate it using formulas and/or routines depending on your requirements.

Hope it helps you,

Xibi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Srinivas

Here iam attaching a sample code in the infopackage level this code is used to select the Current version from TVARV table ..based on the version from variable the data is loaded into the ods..

data: l_idx like sy-tabix.

read table l_t_range with key

fieldname = 'FISCPER'.

l_idx = sy-tabix.

*....

tables tvarv.

data: v_prever(6) type c,

v_fiscper(7) type n.

clear tvarv.

select single low

from tvarv

into v_prever

where name = 'ZBSK_PREVIOUS_RELEASED_VERSION' and

type = 'P' and

numb = '0000'.

  • concatenate v_prever(4) '0' v_prever+4(2) into v_fiscper.

concatenate '0' v_prever+4(2) v_prever(4) into v_fiscper.

l_t_range-low = v_fiscper .

modify l_t_range index l_idx.

Hope the above code helps you..

let me know in case of any concerns.. and further help needed..

bye

Shu Moh..

Former Member
0 Kudos

Hello Srinivas

Please go through this thread

Regards,

Praveen