‎2006 Nov 15 10:44 AM
hi all,
we can also initialize the value of selection screen in at selection screen.
so what is the difference in initializing the value of selection screen in Initialization
& at selection screen?
‎2006 Nov 15 10:47 AM
Hi
At selection screen is the event which is used to validate the entries of the selection screen data, there how can you initialize the values. That should be done in initilization event.
Regards
Haritha.
‎2006 Nov 15 10:47 AM
Hi
At selection screen is the event which is used to validate the entries of the selection screen data, there how can you initialize the values. That should be done in initilization event.
Regards
Haritha.
‎2006 Nov 15 10:48 AM
Hi,
The order of events is the key here,
The first event is INITILIZATION and then you get the selection-screen
and then you will AT SELECTION-SCREEN.
SO initially on the selectoin screen if you want to display some default values then you code them in INITILIZATION. Basically you will do GET PARAMETER stuff here. And these values will be there only for the first display of the screen once you change them you can not retain them as INITILIZATION is excuted only once.
AT SELECTION-SCREEN is PAI of the selection screen.
AT SELECTION-SCREEN ON OUTPUT can be used to give default values.
Regards,
Sesh
‎2006 Nov 15 10:50 AM
INITIALIZATION
Before the standard selection screen is displayed
This event occurs before the standard selection screen is called. During this event block, the input fields of the standard selection screen can only be initialized once after the program has been started.
AT SELECTION-SCREEN
After user input on a selection screen has been processed, but while the selection screen is still active.
The event AT SELECTION-SCREEN is the basic form of a whole series of events that occur while the selection screen is being processed.
‎2006 Nov 15 10:53 AM
Sanjeev...
Initialization value is like default value.
at selection screen value you can decide on some condtions and give or change the value of parameter or select-option.
like you can change the value depend on the other value.
-Anu
‎2006 Nov 15 10:53 AM
Hello Sanjeev
Another important difference is that event INITIALIZATION will be passed only <b>once</b> when you start your report. However, AT SELECTION-SCREEN can be passed several times.
Regards
Uwe
‎2006 Nov 15 10:56 AM
Hi sanjeev,
1. U are right.
2. But the problem will arise,
when the user press ENTER once or many times.
3. When the user presses ENTER,
AT selection screen
will be fired once again,
and again initialize the value of the variable.
(If the value is going to remain same, then its ok, then no problem)
4. But if the value is supposed to be changed by user,
then it won't serve our purpose.
INITIALIZATION is called ONLY ONCE.
AT SELECTION-SCREEN is called AS MANY TIMES ENTER IS PESSED (OR some fcode happens)
regards,
amit m.
‎2006 Nov 15 11:02 AM
‎2006 Nov 15 11:20 AM
‎2006 Nov 15 11:39 AM
INITIALIZATION
Before the standard selection screen is displayed
This event occurs before the standard selection screen is called. During this event block, the input fields of the standard selection screen can only be initialized once after the program has been started.
AT SELECTION-SCREEN
After user input on a selection screen has been processed, but while the selection screen is still active.
The event AT SELECTION-SCREEN is the basic form of a whole series of events that occur while the selection screen is being processed.