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: 

Messages in user exit getting to sap inbox

Former Member
0 Kudos

Hi All,

I have written a message in the user exit for the Tcode ME22n. But when the user exit is executed,the message is going into sap inbox. i want the message to be displayed either as information message or error message using type I or E..please let me know how to avoid the messages getting into sap inbox.

Thanks.

2 REPLIES 2

Former Member
0 Kudos

Hi Kavya,

Welcome to the SDN Forums!

Can you please elaborate on the problem? What is the code you are using to display the message?

To display an error message (type E), use the following syntax:


MESSAGE E001(ZA) with 'This is an error message'. 
* Here, E indicates error message
* ZA is a message class, and 001 is the first message in this class

For a detailed description on the MESSAGE keyword syntax, use this [Link|http://help.sap.com/SAPhelp_nw04/helpdata/en/9f/dbaaaf35c111d1829f0000e829fbfe/content.htm].

I am not sure why the error message is going into the SAP inbox. Are you using workflows?

Cheers,

Shailesh.

Always provide feedback for helpful answers!

Former Member
0 Kudos

Raise the error message using

Message 'test message' type 'E'.

Regards

Vinod