Application Development and Automation 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: 
Read only

SAPSCRIPT Page total on form

Former Member
0 Likes
843

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
711

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

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.

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
712

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

Read only

0 Likes
711

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

Read only

0 Likes
711

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