cancel
Showing results for 
Search instead for 
Did you mean: 

Issue while using sapscript-formpages(C) in SAP-script

Former Member
0 Kudos

Dear ABAPers,

I am using the SAP standard variables to display page numbers in SAP-script.

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

Statement (C) had been used to condense the spaces coming between page number and total formpages. E.g ( 1/      1).

This statement is displaying wrong page numbers for the spools of pages more than 10.

It displays page numbers as 1/1, 2/1 till 10/1 and then displays page numbers as 11/15, 12/15 till 15/15 for a spool of 15 pages.

Kindly let me know if anyone has faces this issue and possible solution.

Also please specify the reason why this statement is working in this way.

Thanks in advance for your help.

Regards,
Rajesh Kumar

Accepted Solutions (1)

Accepted Solutions (1)

tobiaskugelmann
Explorer
0 Kudos

Hello,

this is a know issue. Please move the variable to a internal variable in SAPScript before or see SAP note https://service.sap.com/sap/support/notes/836270 and implement the output similar to the correction instruction.

BR

Tobias

Answers (4)

Answers (4)

Former Member

Hi Rajesh,

Try following option -

&PAGE&/&SAPSCRIPT-FORMPAGES(3ZC)&

Br,

Nikhil Patil

0 Kudos

Hey,

Please use this.

Page &SAPSCRIPT-COUNTER_0(+)& / &SAPSCRIPT-JOBPAGES&

Former Member
0 Kudos

Hi,

try the following option -

&PAGE&/&SAPSCRIPT-FORMPAGES(3ZC)&

and check the pages option :-

under page counter check if Mode is "INC" and output length is "00".

Thanks and regards,

Chirag

former_member585060
Active Contributor
0 Kudos

Hi,

   Use &PAGE&/&SAPSCRIPT-FORMPAGES(3)&

or use JOBPAGES

&PAGE&/&SAPSCRIPT-JOBPAGES(3)&

Thanks & Regards

Bala Krishna

0 Kudos

warks perfect