Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Create lists 

SET BLANK LINES

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


SET BLANK LINES {ON|OFF}. 

Effect

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.


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

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.