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: 

Is there any event at abap like form_unload event of windows programming

Former Member
0 Kudos

I want to code some thing just before the user leaves the selection screen, etiher by clicking on back gui button(f3) or exit button.

Is there such an event?

Thanks in advance.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure, use the AT SELECTION-SCREEN ON EXIT-COMMAND event in your code.

report  zrich_0001.

parameters: p_check type c.

start-of-selection.

  write:/ 'Start-of-selection'.

at selection-screen on exit-command .

* Do whatever you need to do.

Regards,

Rich Heilman

2 REPLIES 2

Former Member
0 Kudos

well the evenet is calld Processes After Input. PAI.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure, use the AT SELECTION-SCREEN ON EXIT-COMMAND event in your code.

report  zrich_0001.

parameters: p_check type c.

start-of-selection.

  write:/ 'Start-of-selection'.

at selection-screen on exit-command .

* Do whatever you need to do.

Regards,

Rich Heilman