Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

wat is reserve command...

Former Member
0 Likes
648

Hi,

What is the reserve command?

Reg,

Suresh.V

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
602

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

5 REPLIES 5
Read only

Former Member
0 Likes
602

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).

Read only

Former Member
0 Likes
602

Hi,

RESERVE the number of lines for the END-OF-PAGE event..

Thanks,

Naren

Read only

Former Member
0 Likes
602
Read only

Former Member
0 Likes
603

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

Read only

Former Member
0 Likes
602

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^