Application Development and Automation 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: 
Read only

Data transfer

Former Member
0 Likes
326

Hi, this is magesh.

when i am trying to down load data in to text file using Transfer statement , i can not able to transfer space in the end of every line. when opening text file SPACES are terminated.

i would appreciate if you can give me an idea for SPACE delimiter for text file

example

OPEN DATASET '//tmp/ascii'

FOR OUTPUT IN BINARY MODE .

IF SY-SUBRC NE 0.

MESSAGE S999(ZS) WITH 'Unable to open output file'.

STOP.

ENDIF.

WA_FILEOUTJ47 = '1234567890 '.

TRANSFER WA_FILEOUTJ47 TO '//tmp/ascii'.

close dataset '//tmp/ascii'.

WRITE 'DONE'.

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
295

How much space do you want? You can specify the length of the string in the TRANSFER statement.

TRANSFER WA_FILEOUTJ47 TO '//tmp/ascii'  LENGTH 100.

Regards,

Rich Heilman