Skip to Content
0
Former Member
Nov 13, 2006 at 05:41 PM

open dataset and read into file

312 Views

hi guys,

I have a requirement. I need to transfer the records of an internal table to a .prn file on application server. lets say i have written the below code..

loop at itab.

Open dataset <fname> for appending.

transfer itab-record to <Fname>.

end loop.

close dataset.

will it give me an output like..

record1

record2

record3.

if not then how do i get this output, that is new record at new line?

and how do i go about creating a .prn file??

thanks in advance and regards,

Reena