2006 Dec 18 11:28 AM
I was told that initialization is only executed once, but when I did a program to test, I found that's not true. if I output nothing in start-of-selection, then the program return to selection screen, and the initialization is executed again.
now I don't want the initialization to be executed again, how can I do that?
I was told that initialization is only executed once, but when I did a program to test, I found that's not true. if I output nothing in start-of-selection, then the program return to selection screen, and the initialization is executed again.
now I don't want the initialization to be executed again, how can I do that?
2006 Dec 18 11:31 AM
Hi,
Initilization event is used to set default values only.so don't bother whther it s triggered second time.
Regards
Nagaraj
2006 Dec 18 11:34 AM
Hello Peter,
INITALIZATION is called only once. per internal mode of course. Your case seems to target the login/user session. In this case you may use set/get Parameter.
Regards,
Klaus
2006 Dec 18 11:39 AM
I did not get your query completely but what I can make out is that for sure Initialization is executed only once but as you said you are writing anything to output and hence it displays the selection-screen again on completion of the run and that time it does execute initialization event but that is for run 2 and not the first run as that is already complete.
Regards
Anurag
2006 Dec 18 11:42 AM
initialization is an event which gets triggered as many times as selection screen gets triggered....So, when u return to selection screen then initialization gets triggered....If u want other way write ur code in At selection screen.
2006 Dec 18 11:48 AM
Hi Peter ,
The event is trigger each time the selction -screen is displayed .
Yes when you come back to the selection screen after diaplying some thing the event is triggered but i do not think i makes any chnages to the already existing values in the selection screen,
Regards
Arun
2006 Dec 18 4:25 PM
Initialization event is used to design the screen, before the program is executed.
It is not possible to control its execution in exe programs.
Where as 'Process before output' is also very similar to 'initialization' event in report.
Here the code we generate should repeat every time for the action happened on screen. If we need to write a select statement in PBO event, we need to see that, it should be executed only once. Otherwise it executes for every action in PAI.
PBO.
if itab is initial.
select * from mara into table itab.
endif.
then PAI follows.
Hope It helps.
Cheers.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |