Skip to Content
0
Former Member
Jul 20, 2005 at 09:31 AM

transfer intenal table to file

23 Views

Hi abaers,

i need to transfer the internal table data to file,,this file to create in application server.

internal table lineitems contains 100 fields...

i tried in the following method: but 100 fields i have to move each and evry field to t_output-data.. so it is becoming complex.

data: begin of t_output occurs 0,

data(800),

end of t_output.

loop at lineitems.

t_output-data(4) = lineitems-COMP_CODE.

t_output-data+4(10) = lineitems-VENDOR.

...

append t_output.

clear t_output.

endloop.

open dataset filename for output in text mode encoding default.

loop at t_output.

transfer t_output-data to filename.

clear t_outpu-data.

endloop.

close dataset filename.

endif.

is there any other method to do direct transfer from internal table to file..