cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between Main and Variable Windows,,

Former Member
0 Kudos

Pls give me the Difference between Main and Variable windows.. in SAP SCRIPT ...

wat is the use of variable windows..

....

thnks in adv..

Accepted Solutions (0)

Answers (9)

Answers (9)

Former Member
0 Kudos

hi,

Windows are defined in the layoutsets which define the position and the text to be displayed.

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.

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.

prasanth_kasturi
Active Contributor
0 Kudos

wat is the use of variable windows..

MAIN

Main window in which continuous text is printed. This is the window used by dialog users of a print program and form. For example, the body text of a letter would be entered in MAIN.

The text in the main window can extend over several pages. If the text fills one page, output continues in the window of the next and subsequent pages, as long as MAIN has been defined for these pages.

VAR

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.

var window is generally used to print data that varys

REWARD IF HELPFUL

Former Member
0 Kudos

Hi,

The difference between Variable And Main Window is just as if writing into a Notebook or the Register.

See Its this way,

Consider a Fullscape book like we have for our notes during acads..

So we write the main data that is the notes on teh single line area of the book.....that is the main window in this case....

And we too write the other relevant information to the main data that is the Page number, Topic name, Date etc...on the space provided by the Book publisher (Navneet, Apsara)....

So in this case the Variable Window is the area that is filled as the relevant data to the main data......that is the Notes....

And we enter the relevant data before goin to the next page....

So it is the same as in the case of Scripts.....

Regards,

Abhinay

Former Member
0 Kudos

Window types

MAIN Window

Window in which continuous text is printed. This window can extend over several pages. If the text fills one page, output continues in the window of the next and subsequent pages, as long as MAIN has been defined for these pages.

VAR Window

Window with variable contents. The text can vary on each page in which the window is positioned. Variable windows are formatted for each page.

CONST Window

Window with constant contents that is formatted only once.

if helpful pls reward

regards

palak

Former Member
0 Kudos

hi,

Windows are defined in form maintenance. They represent areas that are positioned on pages – as page windows – and in which at a later time text is printed. You must define at least one window for each form. Otherwise, SAPscript cannot format the text.

You can assign window names and window types. However, note that you can define only one main window per form.

Use one of these window types:

MAIN ::

Main window in which continuous text is printed. This is the window used by dialog users of a print program and form. For example, the body text of a letter would be entered in MAIN.

The text in the main window can extend over several pages. If the text fills one page, output continues in the window of the next and subsequent pages, as long as MAIN has been defined for these pages.

VAR::

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.

CONST::

Window with constant contents that is formatted only once.

Currently, CONST windows are processed in the same way as VAR windows. You should only use windows of type VAR.

thanks reward if useful

Former Member
0 Kudos

Main Window is Scrollable.

Variable window is not scrollable.

Data over flows in Main

Data gets truncated in Variable window

former_member187457
Active Contributor
0 Kudos

in main windows if space is not suficient for the large data then main window will continue to next page ,with that data ll flow to next page too....

whereas in veriable window data will get truncated...

Former Member
0 Kudos

Hi,

WINDOW TYPES

When defining a layout set 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)

MAIN WINDOW

Each layout set must have one window of type MAIN. Such a window is called the main window of the layout set. For SAPscript layout sets, 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 layout set. 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.

Window MAIN controls the actual layout set flow. When the MAIN window is full, a new layout set page is started.

VARIABLE WINDOW

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 layout set 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 layout set.

CONSTANT WINDOW

A window of type CONST has the same contents and size on all layout set pages, on which a corresponding page window is defined. This allows the processing of the window contents to be optimized internally.

Page windows whose allocated window is of type CONST must have the same size throughout the layout set. If a window of type CONST is full, all remaining text the application program wants to output in this window, is lost. Constant windows do not trigger a page break. In other words: all text exceeding the window size is simply truncated.

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

Former Member
0 Kudos

Hi Shaik,

Main window is mainly used for displaying a number of records.

In this window,even if the data overflows,it will extend to the next page,but that is not the case with a variable window.

Normally we use VAR window for address,logo,headers,standard texts etc.

If the size of the VAR window is not sufficient for the data,its size doesnt get extended,the remaining data doesnt get printed.That too,the data will not b extended to next page.....

Hope u can understand this....

Dont forget to reward points if useful......

Pavan.

Former Member
0 Kudos

Hiii

Main window is used to display ur o/p which covers several pages

where as variable window is used to display data like displaying address,putting Logo,Displaying Header data

y can get more documentation on this try 2 explore

regards

Jaipal