Skip to Content
Oct 29, 2009 at 06:32 AM

Carriage return not visible after download to text file


Hi Experts,

i have a question about the carriage return field. My requirement is that i have to download the report output to a text file, separated by a delimitor '|'.

After each record, there should be a carriage return.

My code is like this:

v_cr_lf is the carriage return field.

data: v_cr_lf(2) TYPE c VALUE cl_abap_char_utilities=>cr_lf.

Itab is the table with all the data. Moving the itab data to i_download and adding the carriage return at the end of the last field for each record.

Loop at itab into wa.

concatenate wa v_cr_lf into wa_download.

append wa_download to i_download.


In debugging, i can see the carriage return field. It shows '##' at the end of the record. However, after the data is downloaded into text file, i cant see the carriage return in the text file.

Please let me know where i am doing wrong. Is my approach correct?