Application Development 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: 

Page number in SapScipt

Former Member
0 Kudos

Hi experts,

Good Day to you.

I would like to ask regarding SAPscript. If you have 1 main window and declare a code like this: Page &page&. does it automatically generate page number? if there are condition in the code that would dynamicaly change the page, does &page& would also change?

Thank you so much.

2 REPLIES 2

Former Member
0 Kudos

Hi Don,

Welcome to SDN....

The &PAGE& will implicitly increment by 1 after filling the content in main window or with NEW-PAGE control command.

Thanks,

Vinay

Clemenss
Active Contributor
0 Kudos

Hi Don,

&PAGE&

You can use this symbol to insert into the text the page number that the current page will have when printed. You can specify the formatting option for the page number in the form for each page type.

It will always give the page number of the page you are actually in. That means, if you trigger a page using /: NEW-PAGE command, it will increment the page count.

Note: &NEXTPAGE&

This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .

Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.

Regards,

Clemens

P.S.: All this is from SE71, HELP->Application Help; system Symbols.