Page 1 of 1

add spaces at the end of file while transfer to app server

PostPosted: Wed Sep 28, 2005 3:47 pm
by Anette86
Hi,

I have a requirement where I need to have 10 spaces at the end of every record that I download onto the file on the application server.
I am using OPEN DATASET to open the file on the app server and then using TRANSFER to transfer each record.
The record that I transfer is a work area of 10 fields each of character type out of which the last field is supposed to be of 10 spaces.
When I transfer the work area, the last field with 10 spaces is not being shown on the output file. How could I handle this.

Thanks in advance.

PostPosted: Wed Sep 28, 2005 3:59 pm
by Eleanor356
Hi,


look F1 to transfer

transfer wa to file LENGTH len .

so when wa = 90 -> len = 100.



try it

Andreas

Re: add spaces at the end of file while transfer to app serv

PostPosted: Wed Sep 28, 2005 5:54 pm
by Alva1590
abapper hat geschrieben:When I transfer the work area, the last field with 10 spaces is not being shown on the output file.

That's how TEXT MODE works.
Press F1 on OPEN DATASET.

PostPosted: Wed Sep 28, 2005 6:14 pm
by Alva1590
And next time, please don't copy and paste the same question into several forums, if your question got answered 6 minutes after posting:
http://www.sapfans.com/forums/viewtopic ... 49067b1ccf