cancel
Showing results for 
Search instead for 
Did you mean: 

getting page numbers in Sapscripts

Former Member
0 Kudos

Hi,

In my script, I want to display the page numbers on each page. For that, I have incorporated

Page &PAGE& of &SAPSCRIPT-FORMPAGES(C)& in a window called PAGE.

But in the output of 2 pages, it is showing 'page 1 of 2' in both the pages.

Can anyone give me the solution for it..

thanks

Rakesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Refer to this link...

Edited by: avinash kodarapu on Dec 19, 2008 3:02 PM

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Rakesh,

[Sapscript : Total Number of Pages|http://help.sap.com/saphelp_45b/helpdata/en/6c/897415dc4ad111950d0060b03c6b76/content.htm]

Regards,

Sravanthi

Former Member
0 Kudos

Hi all,

Still it is showing as Page 1 of 2 in both the pages...not showing as Page 2 of 2 in the second page..

I have defined this in a PAGE window..not in Main window..

Is this causing the problem..

Please let me know.

thanks

Former Member
0 Kudos

No, PAGE window will not cause issue.

In the Page attributes make sure the settings are as follows:

Page FIRST

Next page NEXT

Page counter Mode: 'Initialize counter'

Page NEXT

Next page NEXT

Page counter Mode: 'Increase counter'

Variables to be used are correct &PAGE& / &SAPSCRIPT-FORMPAGES(C)&

former_member585060
Active Contributor
0 Kudos

Hi,

Use

AS &PAGE& of &SAPSCRIPT-JOBPAGES&

It might solve your problem.

Regards

Bala Krishna

Former Member
0 Kudos

hi,

&SAPSCRIPT-FORMPAGES& --- Total Number of Script Pages

&PAGE& -- current Page no

&NEXTPAGE& -- next page no

hope it helps

Former Member
0 Kudos

Hi,

TRy doing like this:

&PAGE&/&SAPSCRIPT-FORMPAGES(C)&.

Also check that the page you are giving is the page window or the next page.i think you will have to mention the page as the next page.

Hope it helps.

Regards,

Rahul

Edited by: Rahul Kumar Sinha on Dec 19, 2008 10:48 AM