Skip to content

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

NEW-LINE

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


NEW-LINE [NO-SCROLLING|SCROLLING]. 

Extras

1. ... NO-SCROLLING
2. ... SCROLLING

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 was produced by a previous output statement. In the first line of a new page and if the current list cursor was set to the list line using the statements SKIP, NEW-LINE, NEW-PAGE or BACK, NEW-LINE is ignored by 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 written after the statement NEW-LINE using an output statement ( WRITE or ULINE) cannot be moved horizontally. This applies to scrolling in the list displayed on the screen by the user and also to scrolling using the statement SCROLL. Vertical moves are not affected.


Note

To freeze an area that covers multiple lines, the statement SET LEFT SCROLL-BOUNDARY can be used.


Example

The line with the output "Fixed Line" is not moved by 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, this state can no longer be undone.