Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Creating Lists 

ULINE

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


ULINE {[AT] [/][pos][(len)]} [NO-GAP]. 

Effect

Output of horizontal lines in lists.

This statement mainly has the same effect as the following WRITE statement:

WRITE line {[AT] [/][pos][(len)]} [NO-GAP].

In this case, line is a data object with type c and length 1023, which is completely filled with "-" characters. In accordance with the predefined formatting rule for the character "-", these are joined together to form a continuous line, and are replaced by the appropriate line element. The same applies for directly consecutive characters "-" and "|". In contrast to the WRITE statement, for ULINE, the characters are also replaced with the line element for an output length of 1.

The position and length of the line are determined by the rules for the WRITE statement. In the simplest case, ULINE produces the following outcomes:

  • A continuous horizontal line along a whole line, if no position and length are specified after AT. In contrast to the WRITE statement, the list cursor is positioned in the first position of the next line.
  • A line of length len at the horizontal position pos if a position and length are specified after AT.


Notes

  • If the statement FORMAT FRAMES OFF is used beforehand, the output of ULINE is not displayed as a continuous line, as this statement prevents replacement of the "-" characters with line elements.
  • Output of the system field sy-uline using the statement WRITE behaves like the statement ULINE.

Example

Output of a horizontal line along the whole line after the first WRITE output, and two horizontal lines as a part of a frame.

WRITE 'A text in a frame'. 
ULINE. 
SKIP. 

ULINE AT 10(10). 
WRITE: /10 '|', 11(8) 'Text' CENTERED, 19 '|'. 
ULINE AT /10(10).