‎2008 May 22 8:48 AM
what exactly is the diff between main window and variable window in SAP script?
‎2008 May 22 9:08 AM
Hi,
MAIN window in which continuous text is printed. This is the window used by dialog users of a print program and form. For example, the body text of a letter would be entered in MAIN. The text in the main window can extend over several pages. If the text fills one page, output continues in the window of the next and subsequent pages, as long as MAIN has been defined for these pages.
VAR Window with variable contents. The text can vary on each page in which the window is positioned. Variable windows are formatted for each page. To every window you can assign text, which is printed in the corresponding window when the form is formatted. To assign text, use text elements, which are stored with the form. To create and maintain text elements with the SAPscript Editor, choose Text elements. Should the text selected for the window exceed the window size, then the text is cut off.
CONST Window with constant contents that is formatted only once. Currently, CONST windows are processed in the same way as VAR windows. You should only use windows of type VAR.
Refer to the below related thread
Regards
Kiran Sure
‎2008 May 22 9:07 AM
hi,
MAIN WINDOW :- In a main window you display text and data, which can cover several pages (flow text). As soon as a main window is completely filled with text and data, the system continues displaying the text in the main window of the next page. It automatically triggers the page break.
You can define only have one window in a form as main window.
The main window must have the same width on each page, but can differ in height.
A page without main window must not call itself as next page, since this would trigger an endless loop. In such a case, the system automatically terminates after three pages.
VARIABLE WINDOW :- The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the form.
hope this will be useful.
If useful then reward points.
with regards,
Syed
‎2008 May 22 9:08 AM
Hi,
MAIN window in which continuous text is printed. This is the window used by dialog users of a print program and form. For example, the body text of a letter would be entered in MAIN. The text in the main window can extend over several pages. If the text fills one page, output continues in the window of the next and subsequent pages, as long as MAIN has been defined for these pages.
VAR Window with variable contents. The text can vary on each page in which the window is positioned. Variable windows are formatted for each page. To every window you can assign text, which is printed in the corresponding window when the form is formatted. To assign text, use text elements, which are stored with the form. To create and maintain text elements with the SAPscript Editor, choose Text elements. Should the text selected for the window exceed the window size, then the text is cut off.
CONST Window with constant contents that is formatted only once. Currently, CONST windows are processed in the same way as VAR windows. You should only use windows of type VAR.
Refer to the below related thread
Regards
Kiran Sure