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

table control events

Former Member
0 Likes
299

Hi there,

In my requirement I have final internal table,

begin of i_final,

arbpl1 fsavd iedd isdd aufnr...........

arbpl1 fsavd iedd isdd aufnr...........

arbpl2 fsavd iedd isdd aufnr...........

arbpl2 fsavd iedd isdd aufnr...........

arbpl2 fsavd iedd isdd aufnr...........

arbpl3 fsavd iedd isdd aufnr...........

arbpl3 fsavd iedd isdd aufnr...........

arbpl4 fsavd iedd isdd aufnr...........

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

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

end of i_final.

Now my requirement is to pass all the records with arbpl1 to internal table (i_temp) and download to txt file. clear i_temp, pass all the records with arbpl2 to internal table (i_temp) and download to txt file, like this end of table.

how to use table control events(at new, at last...), can anybody give logic.

Regards,

Naseer.

1 REPLY 1
Read only

naimesh_patel
Active Contributor
0 Likes
272

You can try like this:

LOOP AT IT_FINAL.

MOVE-CORRESPONDING DATA TO IT_TMP.

APPEND IT_TMP.

CLEAR IT_TMP.

AT END OF FIELD1.

DOWNLOAD USING GUI_DONWLOAD

REFRESH IT_TMP.

ENDAT.

ENDLOOP.

Regards,

Naimesh Patel