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: 

WS_DOWNLOAD - blank line at the end of the file

former_member186444
Participant
0 Kudos

I have an old program to maintain and it's using WS_DOWNLOAD to download a file to a pc. The function module is adding an additional blank line to the file that we do not want.

any ideas ?

thanks.

10 REPLIES 10

Former Member
0 Kudos

hi check this...

GUI_DOWNLOAD instead of that WS_DOWNLOAD

Former Member
0 Kudos

Best would be to go OO

CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD

A

0 Kudos

thanks for the replies but I get the same result for both of these, I'm afraid, so still have a blank line at the end of the file.

0 Kudos

Can u paste your code ?

Former Member
0 Kudos

check desactivating WRITE_LF in GUI_DOWNLOAD

But you will lose the normal line breaks, you will need to concatenate the line break characters were you want a new line to beggin

0 Kudos

funnily enough, I've just found OSS Note 787367, which describes the problem and informs us of a fix .....to the REGISTRY !

...but it doesn't work !

Former Member
0 Kudos

Hi,

Try this..

To the GUI_DOWNLOAD Fm pass WRITE_LF_AFTER_LAST_LINE = ' '.

Thanks

Naren

0 Kudos

thanks for the suggestion Narendran but unfortunately that does not work either.

0 Kudos

Dear Malcolm Clark,

I am facing the same issue, please let me know if you have found the solution.

Thanks in advance.

Regards,

Rajesh P

former_member186444
Participant
0 Kudos

See OSS Note 1307088