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?!?