Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding AT statement

Former Member
0 Likes
616

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
601

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.

4 REPLIES 4
Read only

Former Member
0 Likes
601

hi,

use ON CHANGE OF HODID.

..................

ENDON.

Rgds.,

subash

Read only

Former Member
0 Likes
602

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.

Read only

0 Likes
601

thnx sukriti problem solved............

Read only

Former Member
0 Likes
601

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