Skip to Content
avatar image
Former Member

Variable Window

Hi All,

can any one explain Variable Window in scrpts..

and its pupose.

regards,

Vijay.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 22, 2007 at 03:27 PM

    Hi Vijay,

    Variable 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.

    Regards,

    Ferry Lianto

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Starting with Release 4.0, the system internally processes windows of type CONST similar to windows of type VAR

      For example:

      F110_PRENUM_CHCK is the SAP script used for printing check..

      In that script, you will find addresses, amount in words etc printed as variable windows..

  • avatar image
    Former Member
    May 22, 2007 at 03:29 PM

    Hi,

    The contents of variable window are being regenerated everytime page-break happens.

    Ashven

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 23, 2007 at 09:23 AM

    Hi Vijay

    The contents of variable windows is processed 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.

    Also I would like to tell you one important difference between main window and variable window of a sap script from the perspective of WRITE_FORM function module. In print program when we call WRITE_FORM function module for the main window, data is mapped to script immediately.

    But in print program when we call WRITE_FORM function module for the variable window, data is not mapped to script immediately but at the time when CLOSE_FORM or END_FORM function module is called. So it is difficult to print some internal table in a variable window, but the same is very easy to do for main window.

    Award points if found useful.

    Regards

    Indrajit

    Add comment
    10|10000 characters needed characters exceeded