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

Problem with TRANSFER statement

Former Member
0 Likes
589

Hi Experts,

           I am sending the records to outbound file using TRANSFER statement.

Here i have some 33 fields in each record. It is a fixed length file.

If the last  field doesn't contain any values  i am not able to have spaces in the outbound file instead of field contents.

If the field contains value then there is no problem.

But client is very specific to have spaces at the end of each record if the last fields doesn't contain values.

Please help me

Thanks & Regards

Rajasrikanth

4 REPLIES 4
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
553

Was the file opened in text or binary mode?

Try to specify the record length explicitly with the LENGTH addition of the TRANSFER statement.

Read only

0 Likes
553

file was opened in text mode  . i tried with the length option by but i am not getting spaces at the end of each record

Read only

Former Member
0 Likes
553

Why not start with ABAP Help (F1) on keyword TRANSFER?  There, you would have seen the answer.

Read only

Clemenss
Active Contributor
0 Likes
553

F1