cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with main windows in Script

Former Member
0 Kudos

Hi all

I hav a script which has windows one for <b>scope of work</b> and other is for <b>item details</b> Now my problem is both the windows r to be <b>expandable</b> and the second window(item details) has to come only after the first window is completed with the content of scope of work which may be more than a page sometimes .

pls help me out .

points will be rewarded

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

goto original language of the Script and modify the windows according to your requirement.... note: change made in original language is reflected in all languages...

to identify original language, give SAPscript name and goto header details and see the original language and goto SE71 give script name and orignal language and do your changes.

Regards,

SaiRam

Former Member
0 Kudos

Hi

Use only one Main Window for both of them

First write all the Scope of Work details in it and then write the Item details

it will print correctly one after the other

see the doc on Script Windows

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.

Regards

Anji