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_member329386
Participant
0 Likes
311

Hi all

Can anyone tell me 4 types of windows used in smartforms with example. i know

main , secondary , final & copy . but i want to know really which window occupy what ?

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
292

Here are the details about Windows in Smartform

Main Window Locate the document in its SAP Library structure

You can identify only one window of a form as main window. You use the main window to spread output over several print pages, which is a prerequisite for printing tables. The output control of the main window triggers an automatic page break as soon as the main window is full, that is as soon as in the main window no space is left for printing outout.

However, the main window "keeps in mind" the exact location at which the output was interrupted. On the next page, the output control resumes printing at exactly this position as soon as in the processing tree the main window is reached again. The subsequent print pages may also include other windows or output areas; they are printed unless a condition suppresses them.

Depending on your needs, it may make sense to use the main window either only on one draft page or on several draft pages.

Eg: Usually it is used to Print Order Item details.

<b>

The main difference between main and secondary window is the page break behavior: While in a main window a page break automatically occurs as soon as the end of the window is reached, in a secondary window the remaining output is truncated; there is no page break.</b>

Copies Window Locate the document in its SAP Library structure

Use

You use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed.

This helps you to mark Original / Copy in the printed document.

Final Window Locate the document in its SAP Library structure

Use

You may want to display or query values on the first page that are determined only during processing. For example, you may want to name the grand total in the letter text of an invoice. However, this amount is determined only after listing all individual items. Or you may want to query on the first page within a condition the total number of pages, which the system calculates only after processing all pages.

In such a case, you use the final window: Processing first skips all windows of this type in the tree and works its way to the end of the tree. Only after the actual processing is finished, the final windows are processed in the order in which they appear in the tree (from top to bottom). Now any information is available that is known only at the end of the form processing.

Please check this link for more details.

http://help.sap.com/saphelp_nw2004s/helpdata/en/b1/243fe0beee11d4b633006094192fe3/frameset.htm

1 REPLY 1
Read only

Former Member
0 Likes
293

Here are the details about Windows in Smartform

Main Window Locate the document in its SAP Library structure

You can identify only one window of a form as main window. You use the main window to spread output over several print pages, which is a prerequisite for printing tables. The output control of the main window triggers an automatic page break as soon as the main window is full, that is as soon as in the main window no space is left for printing outout.

However, the main window "keeps in mind" the exact location at which the output was interrupted. On the next page, the output control resumes printing at exactly this position as soon as in the processing tree the main window is reached again. The subsequent print pages may also include other windows or output areas; they are printed unless a condition suppresses them.

Depending on your needs, it may make sense to use the main window either only on one draft page or on several draft pages.

Eg: Usually it is used to Print Order Item details.

<b>

The main difference between main and secondary window is the page break behavior: While in a main window a page break automatically occurs as soon as the end of the window is reached, in a secondary window the remaining output is truncated; there is no page break.</b>

Copies Window Locate the document in its SAP Library structure

Use

You use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed.

This helps you to mark Original / Copy in the printed document.

Final Window Locate the document in its SAP Library structure

Use

You may want to display or query values on the first page that are determined only during processing. For example, you may want to name the grand total in the letter text of an invoice. However, this amount is determined only after listing all individual items. Or you may want to query on the first page within a condition the total number of pages, which the system calculates only after processing all pages.

In such a case, you use the final window: Processing first skips all windows of this type in the tree and works its way to the end of the tree. Only after the actual processing is finished, the final windows are processed in the order in which they appear in the tree (from top to bottom). Now any information is available that is known only at the end of the form processing.

Please check this link for more details.

http://help.sap.com/saphelp_nw2004s/helpdata/en/b1/243fe0beee11d4b633006094192fe3/frameset.htm