cancel
Showing results for 
Search instead for 
Did you mean: 

what is the use of MAIN WINDOW in SCRIPTS

Former Member
0 Kudos

what is the use of MAIN WINDOW in SCRIPTS, y we con't create a script w/o main window.

Title was edited by:

Alvaro Tejada Galindo

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

In SAPscripts, main window will have the control of printing the data in how many pages... it is the one it take the control to next page automatically when data in main window of one page is completely filled.

Note: we can trigger next page by using new-page also.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

In scripts it is must to have a main window.

First your main window will execute and then the rest of the windows. Main window defines the script.

ashish

Former Member
0 Kudos

Hi

See this

What are the different types of windows in SAP Scripts?

Windows are defined in the Layout sets which define the position and the text to displayed.

The different types of windows are:

MAIN - Main Window

The main window is a continous window which can extend over several pages. If the text in the main window fills up a page, a new page is created.

Only one main window can be defined in the SAP Script whereas upto 100 instances of main window can be created in a page.

VAR - Variable Window

This window can have the variable contents displayed on them. The contents of the window cannot exceed the window size. The content can be formatted for each page.

CONST - Constant Window

The constant window can have a fixed content and is formatted only once.

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.

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.

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.

<b><REMOVED BY MODERATOR></b>

Anji

Message was edited by:

Alvaro Tejada Galindo