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: 

Event Triggered?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

You right. Simply method - set break-point in both events and tested

Former Member
0 Kudos

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.