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: 

Fixed Length File

Former Member
0 Kudos

I need to download a some info from SAP into 110 character file. I am using FM GUI_DOWNLOAD but can't find the way to download the data with fixed length of 110. I am able to have the desired format with transfer record to file length 110. But I need to download the file on presentation server, so i can't use open/close dataset commands.

I tried using File type VSS but its an invalid type . Also I used export parameter TRUNC_TRAILING_BLANKS_EOL = ''. But it also didn't work.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

So you need the trailing spaces at the end of each line, right?

Regards,

Rich Heilman

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

So you need the trailing spaces at the end of each line, right?

Regards,

Rich Heilman

0 Kudos

Yes I needed the trailing spaces at the end of each line to make its length equal 110.

But I again tried to have the parameter TRUNC_TRAILING_BLANKS_EOL = ''. And this time it worked.

Actually I was entering the wrong record length for appending.

Thanks for spending your time and replying to my issue.

Former Member
0 Kudos

If you are downloading to the desktop, unfortunately there is no way to get fixed length file. You can add an extra 1 character field(181st) at the end and fill it with an agreed upon record end character so that the receiving application ignores it.