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: 

AT EXIT-COMMAND in ABAP OO

Former Member
0 Kudos

Hi everyone!

I need to execute some instructions when user exit from the program.

Something like AT EXIT-COMMAND in PAI.

But i dont have any PAI module or declared flow logic in my screen definition,

becouse screen is calling automaticly by abap, i cant change anything there.

Structure of my program is similiar to this: [http://help-abap.blogspot.com/2008/10/dispaly-alv-report-output-in-same.html|http://help-abap.blogspot.com/2008/10/dispaly-alv-report-output-in-same.html]

How i should run some code when user leave the program?

EDIT:

ok, i got solved it

i needed this one:

AT SELECTION-SCREEN ON EXIT-COMMAND .
PERFORM EXIT_PRG.

Best regards,

Przemek

Edited by: hamsterman on Jul 26, 2010 11:15 AM

1 REPLY 1

Former Member
0 Kudos

Try the event:


AT SELECTION-SCREEN ON EXIT-COMMAND .