Skip to Content
author's profile photo
Former Member

Routine in Infopackage Data selection Tab

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Oct 06, 2005 at 07:34 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo
    Former Member
    Oct 06, 2005 at 07:45 PM

    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

    Add comment
    10|10000 characters needed characters exceeded