Skip to Content
0
Former Member
Sep 24, 2010 at 08:57 PM

Download text file with lines of different lengths

83 Views

Dear all!

I've got a problem with downloading a text file that has different lengths. The lines have got lengths of 442, 443 and 44 characters. Some lines will have trailing spaces! And that is my problem.

I'm using the method cl_gui_frontend_services=>gui_download() to download the file to the client. When setting the parameter trunc_trailing_blanks_eol = '' trailing spaces will not be deleted. My problem is: how to add my different lines into the internal table which I will pass into the method?!?

Using a string - all trainling spaces will be deleted. When using a CHAR444 data element, the lines become to long!

Does anybody has an idea?!?

Best regards,

Florian