Application Development 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: 

Linefeed writing into file.

Former Member
0 Kudos

Hi community!

I' am writing to file lines from internal table. But when I open the file, I see all data in one line. I need them a line for each structure.

Whats wrong?

Here is my code:

open dataset l_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

loop at lt_str.

transfer lt_str to l_filename.

endloop.

close dataset l_filename.

2 REPLIES 2

Former Member
0 Kudos

Hi,

To produce a line feed, use either the forward slash in the AT option of WRITE or ULINE or the NEW-LINE statement

Please check this link:

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba15335c111d1829f0000e829fbfe/content.htm

Regards.

Former Member
0 Kudos

Hi.

I tried your advise. It doesn't help.