sapdev logo background
sapdev logo sapdev logo
Comments

ABAP RESERVE Statement syntax, information and example SAP source code



Return to Statement index



RESERVE

Short Reference

ABAP Syntax RESERVE n LINES.

What does it do? 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 .

Latest notes: 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 ABAP Coding 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.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




REPORT_LIST_OPTIONS
RESUME




comments powered by Disqus