Application Development 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: 

regarding INITIALIZATION event (DOUBT)

Former Member
0 Kudos

hi all there

1.apart from asigning or initializing values to variables

of selection screen what we can do in the INITIALIZATION event?

2.which event other than INITIALIZATION can be used to

initialize the value of selection screen?if there is any event then what is the diff btw them?

thanxs & regards

sanjeev

8 REPLIES 8

Former Member
0 Kudos

at selection-screen output...this is like PBO of the selection screen.

anversha_s
Active Contributor
0 Kudos

hi sanjeev,

look this.

First event -

Initialization : triggered when the report is loaded in memory.

<b>At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.</b> ---> <b>here also u can do decalrations</b>

At selection-screen : before leaving the selection screen.

start-of-selection : the first event for displaying the report.

end-of-selection : after the start-of-selection is completed.

rgds

anver

if helped mark points

dani_mn
Active Contributor
0 Kudos

HI,

what else you are looking for this event. it is initialization event so it intialize the values.

AT selection-screen output is called every time some user command occurs in the screen. while 'INITIALIZATION' is called only once.

LOAD-OF-PROGRAM event is called before the 'INITIALIZATION' event and you can do the same in this.

REgards,

Former Member
0 Kudos

in ecc 5.0 you can use the event "load-of-program" also.This is the first event that fires prior to initialozation

Former Member
0 Kudos

Hi sanjeev,

1. apart from asigning or initializing values to variables

of selection screen what we can do in the INITIALIZATION event?

We can do anything, which we do in abap coding.

We can even update Z tables, select query, etc etc.

(BUT IT WILL BE DONE ONLY ONCE)

2.

which event other than INITIALIZATION can be used to

initialize the value of selection screen?if there is any event then what is the diff btw them?

eg. AT SELECTION-SCREEN OUTPUT

But we have to write some logic of IF condition,

so that our code for

defaulting the value

fires ONLY ONCE

(other wise, whenever the user press ENTER key,

the code will get fired,

and over write the values,

inputted by the user)

regards,

amit m.

former_member735409
Participant
0 Kudos

Hi Sanjeev,

Initialization is an Selection-screen events, this is the first events in the selection-screen events,

this event will trigger before displaying the screen,

Manily we r using to put the default values in the screen deponding on the calculation.

if it is useful , dont forget to give an point

Eg,

Initialization.

S_One-low = 'Sanjeev'

Append s_one.

Regards

Justin.

Message was edited by: justin jayaraj

Former Member
0 Kudos

1.

the name itself indicating initialization.

normally we initialize the variables,parameters... which we used to display the values as default on the selection -screen.

we dont take any other internal tables or any other fields here because we write them in START OF SELECTION EVENT,the actual event,we use for processing the program

Former Member
0 Kudos

Hi,

At selection-screen output is the event triggers twice.

i.e, before selection-screen and after selection-screen

triggers ,so u can use this this event