05-21-2008 5:58 AM
Hi all
Please tell me in the below code i mentioned which is the first event that gets triggered.I think its AT-SELECTION-SCREEn event.
REPORT ZPRE_5 .
tables:s026.
parameters:wrbtr1 type bseg-wrbtr.
at selection-screen .
if wrbtr1 is initial.
MESSAGE 'Please enter a value' TYPE 'E'.
endif.
START-OF-SELECTION.
Write:/ 'Hi1'.
Write:/ 'Hi2'.
END-OF-SELECTION.
With Regards
Vijay G
05-21-2008 6:17 AM
Hi Vijay,
Yes, At selection-screen will triggered.
For your references see the below event sequences triggered.
Flow of the Executable Program
The SUBMIT statement loads the called program in a separate session internal session and starts the series of processes in the ABAP routine environment that trigger events of actions in the called program in the following order.
1. Program constructor event LOAD-OF-PROGREAM.
2. Setting the Default values of the PARAMETERS and SELECT-OPTIONS.
3. Reporting Event INITIALIZATION.
4. AT SELECTION-SCRENN OUTPUT.
(Order triggering of at selection-screen)
-> At selection-screen output.
-> At selection-screen on <f1>
-> At selection-screen on <f2> ...
-> At selection-screen on <fn>
-> At selection screen on end of <f1>
-> At selection screen on block <b1>
-> At selection screen on radio button group <rbg1>
-> At selection screen.
5. Report event START-OF-SELECTION.
6. GET: If the called program linked with the LDB's.
7. Reporting event END-OF-SELECTION.
Regards,
Vishvesh
if helpful, rewards it.
05-21-2008 6:14 AM
You right. Simply method - set break-point in both events and tested
05-21-2008 6:17 AM
Hi Vijay,
Yes, At selection-screen will triggered.
For your references see the below event sequences triggered.
Flow of the Executable Program
The SUBMIT statement loads the called program in a separate session internal session and starts the series of processes in the ABAP routine environment that trigger events of actions in the called program in the following order.
1. Program constructor event LOAD-OF-PROGREAM.
2. Setting the Default values of the PARAMETERS and SELECT-OPTIONS.
3. Reporting Event INITIALIZATION.
4. AT SELECTION-SCRENN OUTPUT.
(Order triggering of at selection-screen)
-> At selection-screen output.
-> At selection-screen on <f1>
-> At selection-screen on <f2> ...
-> At selection-screen on <fn>
-> At selection screen on end of <f1>
-> At selection screen on block <b1>
-> At selection screen on radio button group <rbg1>
-> At selection screen.
5. Report event START-OF-SELECTION.
6. GET: If the called program linked with the LDB's.
7. Reporting event END-OF-SELECTION.
Regards,
Vishvesh
if helpful, rewards it.