Skip to content

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

NEW-PAGE

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


NEW-PAGE [page_options] [
spool_options]. 

Effect

This statement creates a new page in the current list and writes the subsequent list output into 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. An empty line is inserted between the individual pages. The list cursor is set to the first position of the first line under 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.


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 precisely this event, it just seems like END-OF-PAGE was reached by this statement, like for any other statement.
  • The event TOP-OF-PAGE is triggered before the first output on the new page.

Continue

NEW-PAGE - page_options

NEW-PAGE - spool_options