07-03-2013 7:43 AM
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,
07-03-2013 8:55 AM
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
07-03-2013 9:43 AM
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