cancel
Showing results for 
Search instead for 
Did you mean: 

abap routine

Former Member
0 Kudos

Hello SDN Experts,

I like to find out can abap routine in data selection be used to do anything normal abap can do. I meant, can it perform a date or day check and trigger events?

Thanks,

Alfonso S.

Accepted Solutions (1)

Accepted Solutions (1)

edwin_harpino
Active Contributor
0 Kudos

dear Alfonso,

say you choose type '6-abap routine' for 0calday from infopackage selection, take a look following sample code ...

  • Insert source code to current selection field

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

data: l_idx like sy-tabix.

read table l_t_range with key

fieldname = 'CALDAY'.

loop at l_t_range where fieldname = 'calday'.

if l_t_range-low < sy-datum.

*-- raise event.

endif.

endloop.

l_idx = sy-tabix.

*....

modify l_t_range index l_idx.

p_subrc = 0.

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

endform.

hope this helps.

  • please take a little time to reward this

Answers (0)