on 03-21-2006 12:53 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.