Skip to Content
0
Nov 14, 2012 at 11:30 PM

infopackage routine records selection through 3 values

23 Views

Hi all,

I want from Datasource3.x to DSO select records in infopackage routine.

I have records in source system with compc values (240, 450, 123, 780).

I want to load in BW only records for which compc has value 240 or 123.

I imagine such a following code: Can you help to select only records with the values 240 and 123:

$$ begin of routine - insert your code only below this line -

data: l_idx like sy-tabix.

read table l_t_range with key

fieldname = 'compc'.

l_idx = sy-tabix.

l_t_range-sign = 'I'.

l_t_range-option in ('240', '123') .

modify l_t_range index l_idx.

p_subrc = 0.

$$ end of routine - insert your code only before this line -

/manfred

Please do have any idea, how to perform correctly this code to load or select only records with the two corresponding values.

Many thanks for your help.

Arnaud