SAP NEW-LINE ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID NEW-LINE
• NEW-LINE ABAP Statement

NEW-LINE
Short Reference

ABAP_SYNTAX
NEW-LINE $[NO-SCROLLING$|SCROLLING$].

ABAP Addition
1 ... NO-SCROLLING
2 ... SCROLLING

What does it do?
This statement sets the list cursor to the first position of the next line after the current line, if the current position of the list cursor resulted from 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.



Latest notes:

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

ABAP Addition

What does it do?
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 scrolling is not affected.



Latest notes:

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



Example ABAP Coding

The line with the output Fixed Line is not moved by horizontal scrolling.
ABEXA 00449
ABAP_EXAMPLE_END
• SCROLLING NEW-LINE

ABAP Addition

What does it do?
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.

Return to menu