Types Of Windows in Smartforms

There are mainly four types of Window in Smartforms :-

1. Main Window :-

  • Main window is the default window, which you will see each time you will create any smartform.
  • Main window is used for the continuous output such as table output. That means when you have continuous flow of data you can use main window, It will automtaically shift the data to next page, If the amount of data will increase.

2. Secondary Window :-

  • This window is mainly used to display the output for a fixed length.

  • For example, displaying output in form of template we can use secondary window.

    Note :- We should never use secondary window, if we have continuous flow of data.

3. Copies Window :-

  • It is also a kind of special secondary window which is used for making pages as copy or original.

4. Final Window :-

  • This window will process at the last of your smartform.
  • This window will get executed only when all your smartform process gets completed.

1. Practical Part on dynamic sizing of Main Window :-

  • Suppose, If I reduce the height of my main window, then what will I see.



    • We can see we have basically, 2 pages in the smartforms, where rest of my data of main window got shifted.


    Q. Can we have smartform without main window ?

    • Yes we can have a smartform, without a main window.
    • So, when you will delete any main window and will try to execute your smartform, you will see the below error.


    • To remove this, we will simply remove the next page, as there will not be any next page, If we don’t have main window.



    • Now activate it, and you will see no error.




2. Secondary Window :-

  • Secondary windows are mainly used for storing the static data.

  • We have already seen how we can use templates in secondary windows.




3. Copies Window :-

  • These windows are used to identify the original copy of a form and the repeatedly printed copies of the same form.
  • We will see how can we use this window to identify the original form and their copies.

Program Lines :-

  • These are use to write any logic or calculation in any window.

Implementing Copies Window :-

  • For this purpose, we can use system variable.

    • SFSY-COPYCOUNT to count the copy of smartform.





4. Final Window :-

  • Suppose, you want to display something on the smartform, when the entire processing gets completed.

    • Then, in that scenario we can use the Final window.




Comments

Popular posts from this blog

Understanding Different Types of SAP Function Modules: Normal, RFC, and Update

Unlocking SAP ABAP Secrets: Interactive Classical Reports with GET CURSOR, At User Command, and a Comparison of HIDE Statements

Mastering ABAP: A Step-by-Step Guide to Function Modules and Groups for Modularized Programming