‎2006 Sep 25 8:28 AM
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
‎2006 Sep 25 8:31 AM
at selection-screen output...this is like PBO of the selection screen.
‎2006 Sep 25 8:33 AM
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
‎2006 Sep 25 8:34 AM
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,
‎2006 Sep 25 8:35 AM
in ecc 5.0 you can use the event "load-of-program" also.This is the first event that fires prior to initialozation
‎2006 Sep 25 8:35 AM
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.
‎2006 Sep 25 8:40 AM
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
‎2006 Sep 25 8:46 AM
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
‎2006 Sep 25 8:50 AM
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