2008 Aug 11 11:20 AM
Hi experts,
how can I break the execution and leave the to the initial screen with an error message?
2008 Aug 11 11:26 AM
Hi...
Call POP_TO_INFORM function module with an error message to display...
then code... LEAVE TO SCREEN 0 or LEAVE TO SCREEN -1.
2008 Aug 11 11:25 AM
Hi,
you can use LEAVE SCREEN or LEAVE TO SCREEN n
and for the message, you can use
MESSAGE ID mid TYPE mtype NUMBER num.
where mtype is 'E' or 'A'
Read the documentation for these instructions.
2008 Aug 11 11:26 AM
Hi...
Call POP_TO_INFORM function module with an error message to display...
then code... LEAVE TO SCREEN 0 or LEAVE TO SCREEN -1.
2008 Aug 11 11:27 AM
Hi,
Set some global flag (variable available to both calling and called screen).
leave to screen 0.
Check the flag in called screen and give error message in called screen.
Regards,
Mohaiyuddin
2008 Aug 11 11:27 AM
Issuing an error message will always stop the execution of the program. Its better to use an information message and use LEAVE TO SCREEN 0.