cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT-FORMPAGES (to display the total no. of pages)

Former Member
0 Kudos

Hi all,

When using SAPSCRIPT-FORMPAGES to display the total no. of pages ,although it is working fine with the invoice with less than 10 pages, but in case the invoice runs into more than 10 pages the numbering on the printout is not reflected correctly for first 10 pages and from 11th page onwards the numbering comes correctly. For eg : Say an invoice is of 18 pages then first 10 pages on the printout shall bear number as 1 of 1 , 2 of 1 , 3 of 1 ,...., 10 of 1 ( instead of 1 of 18 , 2 of 18, 3 of 18) and so on. And then from 11th Page it will come correctly as 11 of 18 , 12 of 18 etc.

Please tell how to rectify this.

Anuj .

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Thanks for reply..

But, when I compared the values of

SAPSCRIPT-FORMPAGES and

SAPSCRIPT-FORMPAGES(4ZCR) in Deugging (in Production System, since I dont have example in Testing System),

then I found them equal (at all times).For eg:

When SAPSCRIPT-FORMPAGES(C) = 4

then SAPSCRIPT-FORMPAGES(4ZCR) = 4

and they were equal at all times ...

So, I dont think by replacing SAPSCRIPT-FORMPAGES by

SAPSCRIPT-FORMPAGES(4ZCR) in Development System and moving this change to Production System will rectify this problem ????

Former Member
0 Kudos

Its not about the value but the format.

your original code is correct in terms of value, the addition of 4zcr is for the format.

Tyken

Former Member
0 Kudos

Hi,

This issue is resolved now.

Thanks a lot for helping !!!

Former Member
0 Kudos

Hi,

Please close the thread.

Thanks in advance for your kind cooperation.

Warm Regards.

Abhijit.

Former Member
0 Kudos

hi,

try using this instead SAPSCRIPT-FORMPAGES(4ZCR).