‎2007 May 25 1:52 PM
hi
difference between initialization event and mentioning default values in select options.
‎2007 May 25 1:56 PM
Hi Jyothsna ,
There is no diffrence between them when it comes to initial value of varaibles/selection screen objects.
But initialization event is generally used when you want to do some processing once at the beginning of the program ,e,g, in a program check if a varaint exists and give the option to select that varaint.
This is just a very generic example .
Hope this helps.
Regards
Arun
‎2007 May 25 1:59 PM
say if you want select some data and then populate to select-option based on another parameter on selection-screen, then you cannot give it by default
parameters : p_matnr like mara-matnr.
select-options : s_xxxx for ztab-xxxx.
initialization.
select * from ztable into table itab where matnr eq <b>p_matnr.</b>
loop at itab.
*populate the select option.
endloop.
Message was edited by:
Chandrasekhar Jagarlamudi
‎2007 May 25 3:15 PM
Hi,
Default : can set just values to the parameters/select-options.
In some situation , u cannot assign default values , in that case we go for initialization event.
In INitaialisation : u can write some select queries and basedon someconditions , u can pass the values to the selection-screen.
Revert back if anyissues.
Reward with points if helpful.
Regards,
Naveen
‎2007 May 25 3:31 PM
Hi jyothsna,
1. The DIFFERENCE lies in the sequence.
2. First the default values specified at the time of declaring select optinos,
are considered.
3. Then, if,
in INTIALIZATION event,
again some values, are given, then these are finally considered.
regards,
amit m.