cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in printing Total no of pages in SCript output

Former Member
0 Kudos

Hi all,

I got stuck up with simple issue i.e. printing total no of pages on script output.

I have used the following code

MH <H>Lilly Delivery No. :,,&VBCO3-VBELN&</>,,Page: &page(C)&/

&sapscript-formpages(C)&

It is working fine when Total no of pages are less than 10 . that mens printing like 1/10,2/10,3/10…..etc. But when total no of pages are more than 10 it is showing different behavior .For example say there are 12 pages to print , it is printing 1/1, 2/1, 3/1, 4/1, 5/1, till 10/1 and the 11/12 , 12/12 .

This may be a simple change but hard to crack for me . Please advise me

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

&page(C)&/

&sapscript-formpages(C)& it should be upper case

Try to use like this and you will get exact results &PAGE(C)&/ &SAPSCRIPT-JOBPAGES(C)&

Reward Points if it is helpful

Thanks

Seshu

Former Member
0 Kudos

Hi seshu ,

It has not worked . Still the problem persists . This window type is CONST ( we are working ECC 6.0) . Can it be a reason? . I I tried to change the window type . But window type and Description fields are grayed out .

Please any more ideas ..

Dhrama .

Former Member
0 Kudos

I tried with using const and variable window,it does not work.

when i remove (C) and it is working..

page &PAGE&/ &SAPSCRIPT-FORMPAGES& and it works for both var and const window.

Answers (1)

Answers (1)

Former Member
0 Kudos

Use &sapscript-jobpages& / &sapscript-formpages&