Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Creating Lists 

RESERVE

Short 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. A data object of type i is expected for n. No page break is triggered if the value of n is smaller 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 statement introducing the program.

In addition, the statement RESERVE influences the behaviour of the statement BACK.


Note

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


Example

The three lines passed in 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.