cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

hello all

what is the difference between 1) Constant Window

2) Variable Window

3) Main Window in SAP SCRIPT

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
former_member705122
Active Contributor
0 Kudos

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:

Regards

Adil

former_member181962
Active Contributor
0 Kudos

refer this thread: