‎2006 Apr 21 3:36 PM
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
‎2006 Apr 21 3:40 PM
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
‎2006 Apr 21 3:45 PM
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