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

Display error message in BADI...

aris_hidalgo
Contributor
0 Likes
3,373

Hello Experts,

How do we throw an error message inside a BADI method? I am currently using BADI MRM_INVOICE_UPDATE

but when I check there are no exceptions or events to use or the message function like the one

found in ME_PROCESS_PO_CUST.

Please tell me on how to display an error message(E) inside the standard method of the BADI.

Thank you guys and take care!

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
1,039

first read the documentation of the BADI if error message or any sort of message raise is valid... if its not valid there is not point of using it as there will some side effects in doing so....

Check if this post helps u :

Hello Experts,

How do we throw an error message inside a BADI method? I am currently using BADI MRM_INVOICE_UPDATE

but when I check there are no exceptions or events to use or the message function like the one

found in ME_PROCESS_PO_CUST.

Please tell me on how to display an error message(E) inside the standard method of the BADI.

Thank you guys and take care!

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
1,040

first read the documentation of the BADI if error message or any sort of message raise is valid... if its not valid there is not point of using it as there will some side effects in doing so....

Check if this post helps u :

Read only

former_member182371
Active Contributor
0 Likes
1,039

Hi,

As explained in the above answer, in the documentation of this badi it says:

You should note that no system messages can be send in the methods. One exception here is the method CHANGE_AT_SAVE. Within this method, a system message can be issued if the exception ERROR_WITH_MESSAGE is triggered.

In order to issue a message you should do something like this:


MESSAGE e001(ZMESSAGECLASS) RAISING error_with_message.

Best regards

Edited by: Pablo Casamayor on Aug 18, 2009 8:08 AM