I m using message type E. for that i should get an error message in red color in the status bar.
But i m not getting like that.For me an information message is raised with stop symbol & the program exits.
I want to diaplay an error message in the status bar.
I m writing the message in the exception handling.
i.e after execution of the FM i m checking the sy-subrc. if sy-subrc is one of the exception number in FM i want to write the error message in red color.
Can any one solve this issue.
Thanks in advance.
Hello,
If the FM raises an exception then the system itself will give a error message.
For that u need to uncomment the following
<b> IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.</b>
If this also doesn't solves ur problem then paste ur code where u r calling that FM
If useful reward.
Vasanth
hi,
Check report demo_messages
this is also available from transaction ABAPDOCU.
Kind regards, Rob dielemans
Add a comment