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

initialization & at selection-screen (difference)

Former Member
0 Likes
1,605

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,443

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,444

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.

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,443

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

Read only

Former Member
0 Likes
1,443

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.

Read only

Former Member
0 Likes
1,443

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,443

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

Read only

Former Member
0 Likes
1,443

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.

Read only

0 Likes
1,443

hi amit,

what it means. plz explain? with one example

Read only

Former Member
0 Likes
1,443

thanks for ur answer

Read only

Former Member
0 Likes
1,443

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.