Skip to content

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

RESERVE

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


RESERVE n LINES. 

Effect

This statement creates a page break if there is not enough space left on the current list page between the last output and the page end or page footer, as specified in n. n expects a data object of type i. No page break is triggered if the value of n is less than or equal to 0.

The page break triggers the list event END-OF-PAGE regardless of whether or not a page footer was defined in the introductory statement of the program.

Furthermore, the statement RESERVE influences the behavior of the statement BACK.


Note

If the page length is greater than the value of n, line blocks can be defined using the statement RESERVE that can only be displayed closed on one side.


Example

The three lines produced by the DO loop and the blank line that follows them form a line block and are not separated by page breaks.

REPORT NO STANDARD PAGE HEADING LINE-COUNT 10(2). 

START-OF-SELECTION. 
  DO 5 TIMES. 
    RESERVE 4 LINES. 
    WRITE: / '1', / '2', / '3'. 
    SKIP. 
  ENDDO. 

END-OF-PAGE. 
  ULINE. 
  WRITE sy-pagno.