SAP SET BLANK LINES ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for SET_BLANK_LINES

SET BLANK LINES

Short Reference
• SET BLANK LINES ABAP Statement
• ON SET BLANK LINES
• OFF SET BLANK LINES

ABAP_BASIC_FORM_9 SET BLANK LINES {ON|OFF}.

What does it do? 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.



Latest notes:
The suppression of blank lines does not depend on the formatting of the output. Lines that contain only empty checkboxes or input fields are also suppressed. Blank lines generated using SKIP are independent of the statement SET BLANK LINES. They do not contain any outputs.



Example ABAP Coding
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.

Return to menu