Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript page number

Former Member
0 Kudos
89

Hello guys,

I have a sapscript form, wich let you choose how many copies you want to print. I need to know wich page is being printed, is there any variable that give this information, like sy- ???

Thanks a lot guys !

Javier.

4 REPLIES 4

JozsefSzikszai
Active Contributor
0 Kudos
56

hi javier,

you can use &PAGE&.

ec

Former Member
0 Kudos
56

Hello,

&PAGE& will give the current page

&SAPSCRIPT-FORMPAGES& will give the total page.

Cheers,

Vasanth

Former Member
0 Kudos
56

I was trying what you said, but it always print 1 - 1. Should print 1 -2 , and 2 -2.

I think it is becasuse my document is 1 page long, but this 1 page document I need to print twice. So each time the document start on the firt page (only page), the counter start again.

I changed counter mode on first page to INC, but it prints always 1 -1 (on both pages).

Is there anything else I can do?

Thanks

0 Kudos
56

I think you have to define a variable in the print program, which you modify acc. to number of the current printout and use that variable in the script.