Skip to content

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

NEW-LINE

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


NEW-LINE [NO-SCROLLING|SCROLLING]. 

Additions

Effect

This statement sets the list cursor at the first position of the next line after the current line, if the current position of the list cursor results from a previous output statement. In the first line of a new page and if the current list cursor was set with the statements SKIP, NEW-LINE, NEW-PAGE, or BACK into the list line, NEW-LINE does not affect the list cursor.


Note

The statement NEW-LINE is executed implicitly at the end of an event block.

Addition 1

... NO-SCROLLING

Effect

The addition NO-SCROLLING has the effect that the first line of the current list level, which was written after the statement NEW-LINE with an output statement (WRITE, ULINE), cannot be moved horizontally. This applies to scrolling in the list displayed on the screen by the user and to scrolling with the statement SCROLL. Vertical mobility is not affected.


Note

To freeze an area that covers several lines, use the statement SET LEFT SCROLL-BOUNDARY.


Example

The line with the output "Fixed Line" will not be moved during horizontal scrolling.

WRITE / 'Scrollable Line'. 
NEW-LINE NO-SCROLLING. 
WRITE: / 'Fixed Line', 
       / 'Scrollable Line'. 

Addition 2

... SCROLLING

Effect

The addition SCROLLING undoes the addition NO-SCROLLING (default setting). The addition NO-SCROLLING can only be undone before an output statement is executed. Once a line has been frozen, you can no longer change this state.