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 total on form

0 Kudos

Hi:

I have a dilemma on how to get the total number of pages of a SAPSCRIPT form document when printing. I need to print on the second and subsequent pages the text: Page 2 of 6. I need a routine in the SAPSCRIPT form to calculate the 6 which is the total number of pages of the document and this could vary depending on the data of each document/invoice.. Any suggestions?

Thanks,

Nick F.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

This functionality is already done for you.

AS   Page: &PAGE& of &SAPSCRIPT-FORMPAGES&  

&PAGE& and &SAPSCRIPT-FORMPAGES& are reserved for your use.

Regards,

Rich Heilman

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

This functionality is already done for you.

AS   Page: &PAGE& of &SAPSCRIPT-FORMPAGES&  

&PAGE& and &SAPSCRIPT-FORMPAGES& are reserved for your use.

Regards,

Rich Heilman

0 Kudos

Nick, has this solved your problem. If so, please don't forget to award points accordingly and mark this post as solved. Thanks.

Regards,

Rich Heilman

0 Kudos

Thanks for the TIP.. It worked like a charm!!!