Skip to Content
avatar image
Former Member

what is the difference between Constant Window, Variable Window,Main Window

hello all

what is the difference between 1) Constant Window

2) Variable Window

3) Main Window in SAP SCRIPT

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jun 13, 2008 at 05:33 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2008 at 05:44 PM

    Hi,

    Window Types

    When defining a form window, you must select a window type for the window.

    You can choose between three types:

    Constant Windows (CONST)

    Variable Windows (VAR)

    Main Windows (MAIN)

    Constant Windows (CONST)

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

    Therefore, if you create a new window, always use type VAR.

    Variable Windows (VAR)

    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.

    Main Windows (MAIN)

    Each form must have one window of type MAIN. Such a window is called the main window of the form.

    For SAPscript forms, the main window has a central meaning:

    It controls the page break.

    It contains the text body that may cover several pages.

    It allows to fix text elements at the upper and lower margins of the allocated page window (for example, for column headings).

    As soon as a window of type MAIN is full, SAPscript automatically triggers a page break and continues to

    output the remaining text in the main window of the subsequent page. Page windows of type MAIN have the same width throughout the form.

    The SAPscript composer thus avoids reformatting of the text after each page break.

    If a page does not have a main window, the system implicitly processes all other windows of the page and continues with the subsequent page.

    This page must not call itself as subsequent page (recursive call), since this would produce an endless loop.

    In such a case, SAPscript terminates the output after three subsequent pages.

    For printing header lines or totals, the different output areas of the main window are of special importance.

    go through this links:

    in-scripts-variable-window-and-constant-wind-diffe

    main-window

    main-window-in-sap-script

    what-is-the-difference-between-constant-window-and

    Regards

    Adil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2008 at 05:45 PM
    Add comment
    10|10000 characters needed characters exceeded