RESERVE n LINES.
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
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
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
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.
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.