Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Multiple page printing in sap scripts

Hi,

I have a requirement in scripts like how to print footer windows only after the end of main window.

Likewise in smartforms we check a option to print footer windows only after end of main window,but such option is not available in scripts.

I have even used the system defined variable PAGE(which stores present page number) and SAPSCRIPTS-FORMPAGES(which stores total number of pages) by comparing them with a if condition but it was unsuccessful because total number of pages is triggering at end of page printing.

So i need suggestions regarding that as i was working on a PO print form . If a PO has multiple line items amount in words,tax conditions,remarks and signature should be printed only after the end of all line items.

Regards.

Former Member
replied

Hi again

IF &PAGE& = &SAPSCRIPT-FORMPAGES&

should work

or you could check if &NEXTPAGE& = 0

both should work ... and actually by search on NEXTPAGE you will find lot of statements like this.

Best regards

Thomas

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question