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

ABAP, Java, BSP, etc.

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

Postby Anette86 » Wed Sep 28, 2005 3:47 pm

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.
Anette86
.
.
 
Posts: 6
Joined: Wed Sep 28, 2005 3:47 pm

Postby Eleanor356 » Wed Sep 28, 2005 3:59 pm

Hi,


look F1 to transfer

transfer wa to file LENGTH len .

so when wa = 90 -> len = 100.



try it

Andreas
Eleanor356
....
....
 
Posts: 558
Joined: Thu Aug 14, 2003 7:42 am

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

Postby Alva1590 » Wed Sep 28, 2005 5:54 pm

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.
Alva1590
.....
.....
 
Posts: 4387
Joined: Mon Dec 02, 2002 3:01 pm

Postby Alva1590 » Wed Sep 28, 2005 6:14 pm

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
Alva1590
.....
.....
 
Posts: 4387
Joined: Mon Dec 02, 2002 3:01 pm


Return to Development Related

Who is online

Users browsing this forum: No registered users and 1 guest