Just thought of another way: At the end of the main window, check if current page = sapscript-formpages. Loren -----Original Message----- From: saphelp@xxxxxxxxxxxxx [mailto:saphelp@xxxxxxxxxxxxx] Sent: 29 July 2002 12:51 To: saphelp@xxxxxxxxxxxxx Subject: [saphelp] Re: Sapscript Question. Hi Max. I know it will be done Automatically. But I actually want to call a LAST page basically. After all line items are printed, a Last page should be called containing Hard coded text. This is so easily done in Smartforms. *sigh* Thanks. -----Original Message----- From: saphelp@xxxxxxxxxxxxx [mailto:saphelp@xxxxxxxxxxxxx] Sent: 29 July 2002 12:46 To: saphelp@xxxxxxxxxxxxx Subject: [saphelp] Re: Sapscript Question. Sorry my sapscript is rusty, but a new-page command will be executed when the end of the main window is reached i.e. the are more line items than can fit into the main window. In forms all windows are fixed sizes and cannot be dynamically resized. Max Merolla ABAP Developer 011 809 2199 072 384 4955 saphelp@freelists .org To: <saphelp@xxxxxxxxxxxxx> Sent by: cc: saphelp-bounce@fr Subject: [saphelp] Re: Sapscript Question. eelists.org 2002-07-29 12:41 Please respond to saphelp I Don't really want to touch the print program just for this. (I was hoping I could do it in the Form itself) -----Original Message----- From: saphelp@xxxxxxxxxxxxx [mailto:saphelp@xxxxxxxxxxxxx] Sent: 29 July 2002 12:36 To: saphelp@xxxxxxxxxxxxx Subject: [saphelp] Re: Sapscript Question. why not just use a at last command in your loop of your internal table in the print program. Max Merolla ABAP Developer 011 809 2199 072 384 4955 saphelp@freelists .org To: <saphelp@xxxxxxxxxxxxx> Sent by: cc: saphelp-bounce@fr Subject: [saphelp] Sapscript Question. eelists.org 2002-07-29 12:30 Please respond to saphelp Hi. Does anyone know how to tell if you are at the end of your main window or not. (in sapscript) I want to use the NEW-PAGE command but only when all line items in main have been printed. Thanks. (See attached file: InterScan_Disclaimer.txt) (See attached file: InterScan_Disclaimer.txt) ********************************************************************** This e-mail and its attachments, if any, are intended only for use by the named addressee(s) and may contain information that is legally privileged, confidential, or both. If you are not the intended recipient of this e-mail, you are strictly prohibited from disseminating, distributing or copying this email and its attachments, if any. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copies of this e-mail, its attachments, and any printed copies of any of them. ********************************************************************** ====================================================== To Subscribe to SAPhelp mailing list send an email to saphelp-request@xxxxxxxxxxxxx with 'subscribe' in the Subject field. ------------------------------------------------------ To post on the SAPhelp list, simply send email to saphelp@xxxxxxxxxxxxxx ======================================================