SAP NEW-PAGE ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID NEW-PAGE
• NEW-PAGE ABAP Statement

NEW-PAGE
Short Reference

ABAP_SYNTAX
NEW-PAGE $[page_options$] $[ spool_options$].

What does it do?
This statement allows the creation of a new page in the current list and the writing of the subsequent list output to a spool list. The additions page_options determine general properties of the new page. The additions spool_options control the spool list output.
The statement NEW-PAGE completes the current page. If output was created by WRITE or ULINE on the current page, a new page is created and the value in sy-pagno is increased by 1. A blank line is inserted between the individual pages. The list cursor is set to the first position of the first line below the standard page header of the new page.
The new page is created independently of the current list cursor position underneath the last line of the current page in which output was created.



Latest notes:

The statement NEW-PAGE cannot be used to create empty pages.
The statement NEW-PAGE does not raise the list event END-OF-PAGE. This list event is raised only if the page footer or page end is reached when the list is being written. If NEW-PAGE is executed at exactly this event, it just looks like END-OF-PAGE was triggered by this statement, like for any other statement.
The event TOP-OF-PAGE is raised before the first output on the new page.
ABAP_HINT_END

Return to menu