cancel
Showing results for 
Search instead for 
Did you mean: 

Routine in Infopackage Data selection Tab

Former Member
0 Kudos

HI,

I am having one InfoObject (marital staus) in InfoPackage Data selection Tab.

Now I want to write a ABAP routine for that infoObject in Infopackage to select only those records of marital status = ‘SINGLE’.

I am new to ABAP . please let me know what code should I write in this routine.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kris,

You would do it like this:

data: l_idx like sy-tabix.

read table l_t_range with key

fieldname = 'MARITAL_STATUS'.

l_idx = sy-tabix.

move: 'I' to l_t_range-sign,

'EQ' to l_t_range-option,

'SINGLE' to l_t_range-low.

modify l_t_range index l_idx.

Thanks,

Joseph

Former Member
0 Kudos

Thanks Joseph.

your code helped me

Message was edited by: kris tumma

former_member188975
Active Contributor
0 Kudos

Hi Kris,

If you have this InfoObject in the Data Selection tab,and you want to load only for value = SINGLE then you can simply give this value against the InfoObject...no need to write code. Is this what you are looking for or have I misunderstood?

Former Member
0 Kudos

Please let me know if i want to write it in the routine ...how can i write ..

I am havng some other object to do ...but the basic step is to do this ....

waiting for your reply