Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  SAP GUI User Dialogs →  Classic Lists →  Creating Lists 

SET BLANK LINES

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


SET BLANK LINES {ON|OFF}. 

Effect

This statement specifies whether the blank lines created using WRITE are displayed. If the addition ON is specified, all the subsequent lines created using WRITE statements are written in the list. If the addition OFF is specified (default), all subsequent lines that contain only blanks after a line break are not written to the list.


Notes

  • Blank lines are suppressed regardless of the formatting of the output. Lines that contain only empty checkboxes or input fields are also suppressed.
  • Blank lines created using SKIP are independent of the statement SET BLANK LINES. They do not contain any output.


Example

Displays a text file loaded from the current presentation server as a list. Blank lines are respected.

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.