ABAP Keyword Documentation → ABAP - Reference → User Dialogs → Classic Lists → Create lists
ULINE
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 theWRITEstatement, the list cursor is positioned in the first position of the next line. -
A line of length
lenat the horizontal positionposif a position and length are specified afterAT.
Note
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.
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).