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

Valication for custom fields introduced in MM01/MM02/MM03

Former Member
0 Kudos
1,109

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,

2 REPLIES 2
Read only

former_member188827
Active Contributor
0 Kudos
708

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.

Regards

Read only

RaymondGiuseppi
Active Contributor
0 Kudos
708

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.

Regards,

Raymond