try this...
*declare itab1 same as itab
data : filename(25).
loop at itab.
<b> move-corresponding itab to itab1.
append itab1.</b>
at end of BUKRS.
*use GUI_DOWNLOD FM here
*pass itab1 every time here
*change the filename everytime
concatenate 'Company_' itab-bukrs into filename.
<b> refresh itab1.</b>
endat.
endloop.
chk this thread with the same question and same answer given by Rameshbabu Chirumamilla
Hi all,
my requirement is i want to split records into multiple files not basing on the field condition but basing on the arithmetic operations..
like I have 12 records and separation no is given that is 5.Now i have to divide the records by 12 so that first 5 records go into first flatfile and next 5 to second flat file and remaining 2 records to 3rd flatfile.
Is it possible.Please help me solve this issue
Add a comment