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

difference between initialization event and mentioning default values

Former Member
0 Likes
625

hi

difference between initialization event and mentioning default values in select options.

4 REPLIES 4
Read only

Former Member
0 Likes
582

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

Read only

Former Member
0 Likes
582

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

Read only

Former Member
0 Likes
582

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

Read only

Former Member
0 Likes
582

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.