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.
Showing results for 
Search instead for 
Did you mean: 

Valication for custom fields introduced in MM01/MM02/MM03

Former Member
0 Kudos

Hi Experts,

        I have introduced couple of custom tab in MM01/02/03 and now I need to add validation logic for custom fields in exit MGA00001.

But as it is not expected to write warning messages, information or error messages  in an exit, can you please suggest the best way to trigger messages after validation of fields.

       Thanks in advance,


Active Contributor
0 Kudos

Please check documentation of function "EXIT_SAPLMGMU_001"

which is contained in MGA00001.

The customer exit contains the exception APPLICATION_ERROR for your self-defined error situations.

Using the language element MESSAGE .. RAISING APPLICATION_ERROR, you can terminate the current (logical) transaction and display your message in the log.


Active Contributor
0 Kudos

Did you first read Note 44410 - Integrating cust.-specific fields in matl master.

Else, BAdI BADI_MATERIAL_CHECK and enhancement MGA00001 allow return of an error, use a

MESSAGE ID <id> TYPE <type> NUMBER <number>
   WITH <v1> <v2> <v3> <v4>
   RAISING application_error.