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

windows

Former Member
0 Likes
620

what are the windows in sapscript?

what is the difference between constant window and variable window?

what is the difference between main window and variable window?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
597

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.

if it helps rewards.

3 REPLIES 3
Read only

Former Member
0 Likes
598

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.

if it helps rewards.

Read only

Former Member
0 Likes
597

Hi,

Various parts of the output document can be conveniently organised on the pages using windows. Thus the data stream coming from the ABAP program can be logically grouped into various parts and can be placed on different locations on a page

There are 2 main types of windows that can be used in a layout set:

MAIN - A layout set can have only one MAIN window which is created by default. This window can flow over multiple pages.

CONSTANT - A layout set can have any number of constant windows. A constant window can be used once per page

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
597

Hi,

*****************************************************************

*****************************************************************

<b>1.what are the windows in sapscript?</b>

SAPScript usually consist of different areas containing different texts (date, address, and so on). SAPscript calls such an output area <b>window</b>.

These windows can later be positioned on different pages. Filling the different windows with the corresponding texts, is controlled by the print program or the composer, respectively.

<b>2. what is the difference between constant window and variable window?</b>

CONST and VAR windows are same. 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>VAR Window</b> - 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.

<b>The only difference between CONST and VAR window</b> is that, unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.

<b>3. what is the difference between main window and variable window?</b>

<b>MAIN Window</b>: Each form must have one window of type MAIN.

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

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.

*****************************************************************

*****************************************************************

I hope i clarify your doubt.

Please ferer to these links for more information about SapScript.

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Introduction.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Introduction%20-%20II.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Layout%20Sets.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Symbols.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Control%20Commands.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Exercise.pdf

Let me know if you need any other information.

Regards,

RS