SET BLANK LINES {ON|OFF}.
This statement specifies whether the blank lines generated using
WRITE are displayed. If the addition ON
is specified, all the subsequent lines generated using WRITE
statements are written in the list. If the addition OFF
is specified (default), all subsequent lines that contain only blank characters after a line break are not written in the list.
This example outputs a text file loaded from the current presentation server as a list. Blank lines are included.
DATA: text_line TYPE c LENGTH 80,
text_tab LIKE TABLE OF text_line.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'Gone_with_the_Wind.txt'
filetype = 'ASC'
TABLES
data_tab = text_tab.
SET BLANK LINES ON.
LOOP AT text_tab INTO text_line.
WRITE / text_line.
ENDLOOP.