cancel
Showing results for 
Search instead for 
Did you mean: 

Script page number (Urgent)

0 Kudos

Hi,

When I try to print page numbers like:<b>Page 1 of 10</b> by using below statement

<S>Page &PAGE(C)& of &SAPSCRIPT-FORMPAGES(C)&</>

Upto 10 pages it is printing as

1 of 1

2 of 1

........

10 of 1

From 11 to 13 it is giving correctly like

11 of 13

12 of 13

13 of 13

Where I went wrong.

Regards,

Cheritha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

/ Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&

Thanks,

Anitha

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

It seems the command you are using is right only

/ Page &PAGE& of &SAPSCRIPT-FORMPAGES&

It purely the problem of the window space where you are displaying this.

Move this command little left side of the page and see so that it displays the correct format

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos

Hi,

Since the expected o/p is like 1 of 10 then 2 of 10 etc. etc....Please check if there is sufficient space available to print '10' if space for only one character is available it will just print '1' instead of 10. Just for testing see it by printing at the left-most character on the line i.e. say 1st character, IF it print correctly =>problem is because of the fact that there is just not sufficient space availalbe on the page to print 2 characters.

I hope this helps,

Regards

Raju Chitale