NEW-LINE is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
NEW-LINE
Basic form
NEW-LINE.
Addition
... NO-SCROLLING
... SCROLLING
Effect
Generates a new line during list processing.
Terminates
the current list line and moves the cursor to the next list line. If
there has been no output (with WRITE or SKIP ) since the last NEW-LINE
, the NEW-LINE is ignored, i.e. no new line is started.
Notes
You can also generate a new line with WRITE AT /... .
The following key words implicitly generate a new line:
NEW-PAGE ,
CALL SCREEN .
Addition
... NO-SCROLLING
Effect
Flags
the new line as "not movable" (i.e. horizontal scrolling has no
effect). This allows you to keep title lines and indented comment lines
or areas in the same position.
Notes
The system does not automatically flag the standard title line (text elements, NEW-PAGE WITH-TITLE ) as "not movable".
SET_SCROLL-BOUNDARY
allows you to flag columns in a list so that they cannot be scrolled
horizontally. In this case, using NEW-LINE NO-SCROLLING means that
lines which are not subject to the division of the page into fixed and
movable column areas remain visible and are not moved during horizontal
scrolling.
Example
Scattered comment lines - unmovable
NEW-PAGE LINE-SIZE 255.
WRITE: / 'This line will be moved'.
NEW-LINE NO-SCROLLING.
WRITE: / 'This line will n o t be moved'.
WRITE: / 'This line will be moved'.
Addition 2
... SCROLLING
Effect
Flags the new line as "not movable". Since SCROLLING is the default setting of NEW-LINE , it can normally be omitted.
You
only have to use NEW-LINE SCROLLING after NEW-LINE NO-SCROLLING , which
is not followed by any output. This ensures that the next line
introduced with NEW-LINE also has the attribute SCROLLING .
Example
Conditional comment lines:
NEW-PAGE LINE-SIZE 255.
WRITE: / 'This line will be moved'.
NEW-LINE NO-SCROLLING.
IF 0 = 1.
WRITE: / 'Conditional comment line'.
ENDIF.
NEW-LINE. "Incorrect
WRITE: / 'This line will n o t be moved'.
WRITE: / 'This line will be moved'.
NEW-LINE NO-SCROLLING.
IF 0 = 1.
WRITE: / 'Conditional comment line'.
ENDIF.
NEW-LINE SCROLLING. "Correct
WRITE: / 'This line will be moved'.
Related 10 ABAP Syntax Tutorials
Most readed SAP Tutorials
- WRITE - Output to a list ( SAP ABAP Keyword)
WRITE ( Output to a list ) is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - List of SAP HR TABLES and Infotypes tables
Detailed full list of tables and infotypes used in SAP HR module. - List of SAP MM Transaction codes
This documentation covers the details of SAP MM Transaction codes - SELECT-OPTIONS ( SAP ABAP Keyword)
SELECT-OPTIONS is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - FI Accounts Receivable and Accounts Payable | SAP FI PDF manual
The following topics are an introduction to the Accounts Receivable and Accounts Payable application components. - SELECT clause ( SAP ABAP Keyword)
SELECT clause is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - SAP MM Process Flow
The typical procurement cycle for a service or material consists of the following phases:
Latest Added SAP documents
- 9KE9 Transaction code
Details about SAP transaction code 9KE9 - 9KE8 Transaction code
Details about SAP transaction code 9KE8 - 9KE7 Transaction code
Details about SAP transaction code 9KE7 - 9KE6 Transaction code
Details about SAP transaction code 9KE6 - 9KE5 Transaction code
Details about SAP transaction code 9KE5 - 9KE4 Transaction code
Details about SAP transaction code 9KE4 - 9KE3 Transaction code
Details about SAP transaction code 9KE3 - 9KE2 Transaction code
Details about SAP transaction code 9KE2 - 9KE1 Transaction code
Details about SAP transaction code 9KE1 - 9KE0 Transaction code
Details about SAP transaction code 9KE0