cancel
Showing results for 
Search instead for 
Did you mean: 

Page Numbering in SapScript

0 Kudos

I have an Invoice document that I need to number the pages, I have done &PAGE& / &SAPSCRIPT-FORMPAGES&. But I need to print something on only that last page if it has 2 pages, and on the first page if there is only 1 page. I have another question as well, When I print the page numbers on an Invoice that has Terms on the back of the pages it puts the &PAGE& / &SAPSCRIPT-FORMPAGES& equal to 1 / 3 instead of 1 / 2? Please help. Thanks you in advance...

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Jan 21, 2009 4:39 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

That didn't help, I am trying to print a payment terms window. I have a manufact window with this code in it.

SF Payment Terms: &tmp_payterms&

/*

SF manufacturer:

/: include Z_manufacturer_tki object text id st paragraph SF.

I added the if statement around that code and it doesn't print for 1 page or 2 pages. Any other options would be appreciated.

Also the page counter the MODE is currently 'HOLD'.

thanks.

joginder_singh
Active Participant
0 Kudos

Hi

For the first issue use the below code

/: if &nextpage(ZC)& EQ ' '.

  • &PAGE& /&SAPSCRPIT-FORMPAGES&

/: ENDIF.

And for the second issue .On the Terms Page -> Under the page Counter Select the MODE as 'HOLD'.

I Hope this hint help you to resolve the issue.

Cheers

Joginder