‎2008 Oct 29 6:50 AM
hi experts,
i have a scenario like this:
in my internal table having this data.
pernr hodid.
9000 A
9001 A
9002 B
9003 B
WHAT i want here that at the end of HODID A and at the end of hodid B my logic will execute for this what sud i do ,means after reading employee number 9000 & 9001 my logic will execute and after reading employee number 9002 & 9003 again my logic will execute.
‎2008 Oct 29 6:57 AM
hi,
u need to change ur internal table a little...
Declare 'hodid' as the first field...
then
data: begin of tab occurs 0,
hodid type ....,
pernr type .....,
end of tab.
Loop at itab.
AT end of hodid.
"ur code....
endat.
Endloop.
‎2008 Oct 29 6:53 AM
hi,
use ON CHANGE OF HODID.
..................
ENDON.
Rgds.,
subash
‎2008 Oct 29 6:57 AM
hi,
u need to change ur internal table a little...
Declare 'hodid' as the first field...
then
data: begin of tab occurs 0,
hodid type ....,
pernr type .....,
end of tab.
Loop at itab.
AT end of hodid.
"ur code....
endat.
Endloop.
‎2008 Oct 29 7:06 AM
‎2008 Oct 29 7:00 AM
Hi,
Try to create internal table such that hodid will come as first field and remaining data will come after that. So that you can use at endof hodid statement for to call your specified logic.
Regards,
Aswini.
Edited by: ASWINI SAMMETA on Oct 29, 2008 8:00 AM