‎2007 May 30 4:41 AM
‎2007 May 30 4:53 AM
hi,
Effect
If there is not enough space left on the current page for at least n lines, this statement starts a new page. n can be a constant (1,2,3,...) or a variable.
Notes
Refer to this link
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/reserve.htm
‎2007 May 30 4:42 AM
RESERVE n LINES.
Effect
If there is not enough space left on the current page for at least n lines, this statement starts a new page. n can be a constant (1,2,3,...) or a variable.
Notes
Before starting a new page, the END-OF-PAGE processing is executed. This differs from NEW-PAGE.
If the RESERVE statement does not trigger a new page, output is continued on the current page.
Use BACK to return to the first line output after RESERVE.
Note
Performance:
The runtime required to execute a RESERVE statement is approx. 1 msn (standardized microseconds).
‎2007 May 30 4:43 AM
Hi,
RESERVE the number of lines for the END-OF-PAGE event..
Thanks,
Naren
‎2007 May 30 4:43 AM
Hi Suresh,
Check this link,
https://forums.sdn.sap.com/click.jspa?searchID=2862689&messageID=586273
Thanks.
‎2007 May 30 4:53 AM
hi,
Effect
If there is not enough space left on the current page for at least n lines, this statement starts a new page. n can be a constant (1,2,3,...) or a variable.
Notes
Refer to this link
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/reserve.htm
‎2007 May 30 4:55 AM
hi
good
To program page breaks depending on the number of empty lines left on a page, use the RESERVE statement.
To execute a page break on the condition that less than a certain number of lines is left on a page, use the RESERVE statement:
Syntax
RESERVE n LINES.
This statement triggers a page break if less than nfree lines are left on the current list page between the last output and the page footer. n can be a variable. Before starting a new page, the system processes the END-OF-PAGE event. RESERVE only takes effect if output is written to the subsequent page (the system will not generate an empty page).
The RESERVE statement thus defines a block of lines that must be output as a whole. To find out which additional practical effects a block of lines may have, see Specifying a Relative Position.
REPORT demo_list_reserve LINE-SIZE 40 LINE-COUNT 8(2).
END-OF-PAGE.
ULINE.
START-OF-SELECTION.
DO 4 TIMES.
WRITE / sy-index.
ENDDO.
DO 2 TIMES.
WRITE / sy-index.
ENDDO.
RESERVE 3 LINES.
WRITE: / 'LINE 1',
/ 'LINE 2',
/ 'LINE 3'.
thanks
mrutyun^