write new line to file

abap

Solution

Set a character type field to `cl_abap_char_utilities=>cr_lf` and insert that in the appropriate places (wherever you want a new line) to your output.

This contains the carriage return & linefeed characters.

Problem

I'm trying to write to file newline. I'm using WS_DOWNLOAD but have no idea how to write new line into text. Anyone knows ?

Original source