‎2007 Dec 19 2:18 PM
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.
‎2007 Dec 19 2:22 PM
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