Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Scripts

Former Member
0 Likes
542

hi

What is Secondary window?

What is Main window?

4 REPLIES 4
Read only

Former Member
0 Likes
527

Hi

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.

REWARD points for useful Answers

regards

Anji

Read only

Former Member
0 Likes
527

Hi,

Main window and variable or secondary windows..

Main difference is that main window is extendable ...it increases and even data extends to a next page

u use main window for table printing...like line item details..etc,which varies from order to order...

But the secondary windows are fixed... you define specific dimension attributes to them.. Any data crossing the length will be truncated..

Regards

vasu

Read only

Former Member
0 Likes
527

Hi,

<u><b>Main Windows (MAIN)</b></u>

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.

Regards,

Bhaskar

Read only

Former Member
0 Likes
527

All these are basic questions if one takes abap training

Main window is the one where u will put the data in a page usually an item data.

Secondary window is the window other than main where u can put additional data

It is possible to have a main window in smart forms

But it is mandatory in scripts.

sonali