cancel
Showing results for 
Search instead for 
Did you mean: 

doubts's in form

Former Member
0 Kudos

Hi,

Please clarify my 2 doubts:

1. What is differance between Final Window and copy window

in smartform. when we use this window.

2. What is differance between VAR and CONST window in SAPSCRIPT. what is use of this.

Regards

Mohit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

As per my knowledge, there is no difference in VAR and CONST window scripts. Both have the same functionality.

Bye

Former Member
0 Kudos

Hi Mohit,

Please check this link

/people/vinod.chandran/blog/2005/08/23/using-final-window-in-smartforms

The window types final window and copies window have the same characteristics as a secondary window. Final windows are processed only after all the nodes in the tree have been processed. Copies windows can be used to explicitly print a particular content only on the copy or only on the original.

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.

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.

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.

Best regards,

raam