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

Error message in MB_DOCUMENT_BADI

Former Member
0 Likes
534

Hi,

I am using MB_DOCUMENT_BADI to do some checking of the material document before saving.

How do I stop the transaction from saving if there is an error? I have tried using an error message, but it short dumps.

Thanks

Lindy

3 REPLIES 3
Read only

Former Member
0 Likes
485

Can u post ur code here? Ur req wil be clear with the code

Read only

Sougata
Active Contributor
0 Likes
485

Which method of this interface are you using? You cannot use error message in all methods. Read the definition documentation and also the method documentation.

Read only

Former Member
0 Likes
485

Hi Lindy,

Try this exit.

Function -> exit_saplmbmb_001

Project -> MB_CF001.

It is called after its BADI, and can itself be used messages.

B.H.

MarcusFarias