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: 

GUI Download

Former Member
0 Kudos

Hi All,

Can anyone please help me to get rid of extra line coming at the end in the downloaded file(in DAT & CNT ) from FM GUI Download?

Thanks in advance.

Best Regards,

Suruchi

8 REPLIES 8

Former Member

Former Member
0 Kudos

Check once you dont have any empty record in the table. It will be great if you Paste the code

GauthamV
Active Contributor
0 Kudos

Did you use this .

trunc_trailing_blanks = 'X'

Former Member
0 Kudos

Hi,

Chk this link:

[http://sap.ittoolbox.com/groups/technical-functional/sap-dev/prevent-carriage-return-at-eof-for-gui_download-1422787]

Or concatenate all the values of each field in a row into a string and pass it onto FM GUI_DOWNLOAD by an internal table of strings.

Former Member
0 Kudos

Hi Suruchi,

Kindly go through this link below:

Hope it helps

Regrds

Mansi

kamesh_g
Contributor
0 Kudos

HI

Check in debugging .. the internal table which you are passign is populating correctly or not .

is it contains blank lines ?

or

is it contain any breaks ?

check these once .

Former Member
0 Kudos

There must be one blank line at the end of the file.

Remove it by going to the end of the file.

Thanks,

Kartavya

former_member282724
Discoverer
0 Kudos

Add the following in your parameter when calling this FM.

write_lf = ' '

Then there'll be no new line in the end of the download file.