Application Development and Automation 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: 
Read only

module at-exit command

Former Member
0 Likes
441

Hi,

Inside this module I have logic for ok_code

WHEN 'EXIT'.

perform pop_up.

form pop_up.

function module: do you want to save the changes?

if yes.

" perform save_changes.

" leave program

for msave_changes.

perform incompletion_logic.

" save changes

endform.

when iam doing this I have error messages for incompletion inside the incompletion_logic routine.

and when i issue an error message

iam getting short dump saying 'error message inside module atexit command' invalid dynpro state'.

what is the correct process to do this.

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
388

Like the system message, you cannot throw a error message inside the AT_EXIT module.

You can call that module, in the PAI (Not at AT-EXIT command) and call the popup and do the required validations.

Regards,

Ravi

Note :Please mark the helpful answers

Read only

Former Member
0 Likes
388

Hi KP,

Remove the Functional type for your "exit and cancel buttons" as 'E'. and then write your code in a module without at exit command.

Regards,

Ravi