sapdev logo background
sapdev logo sapdev logo
Comments

ABAP SET BLANK LINES Statement syntax, information and example SAP source code



Return to Statement index



SET BLANK LINES

Short Reference

ABAP Syntax_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.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




SET_BIT
SET_COUNTRY




comments powered by Disqus