Skip to Content
0
Former Member
Feb 19, 2009 at 02:05 PM

Issue with total no of pages in Sap Acript -- &SAPSCRIPT-FORMPAGES(C)&

27 Views

Hi,

I am using the command &SAPSCRIPT-FORMPAGES(C)& to get the total number of pages.But for the first 9 pages it is displaying only one digit and from the 10th page it is displaying the correct value.

Example : I have a total number of 26 pages for the first 9 pages the output is displaying as

Page 1 of 2

Page 2 of 2

-


Page 9 of 2

Page 10 of 26

Page 11 of 26

-


Page 26 of 26

Currently i have done it this way in my program

P4 <b2>Print Date:</>&v_prtdat&,,,,,,,, Page &page& of

= &SAPSCRIPT-FORMPAGES&

I have gone through the earlier Posts,but i could not right solution.

Please help me in this regard.