Multiple page printing in sap scripts
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.