‎2011 Dec 02 4:08 PM
Hello,
We have external material number format, example : X-XXX-XXX-XXX, so any material created should have the said format.
So we used user exit in "conversion exits of matnr: CONVERSION_EXIT_MATN1_INPUT ' to validate material no & throw error message .
These conversion exits are called whenever material is created thru tcode: MM01, changed in MM02.
But when any material created using BAPI / Idoc, these conversion exits are not called.
Please let me know the solution such that material number format is validated when created thru all means.
Thanks,
Sridhar
‎2011 Dec 02 4:14 PM
Hi
CONVERSION_EXIT_MATN1_INPUT (and CONVERSION_EXIT_MATN1_OUTPUT) are called only for input/output convertion, so it means only when a material is displayed in a abap list or in a screen.
This exit is not triggered internally a program, that mean you need to call it by yourself, so you should call it to convert material numbaer before calling the BAPI or IDOC
Max
‎2011 Dec 03 1:08 PM
Hello Max,
Thanks for your reply.
I do agree, but some external systems are using BAPI_MATERIAL_SAVEDATA to create material.
They create material with wrong format...
Some how need to restrict / validate material no format before created thru any method(MM01/Idoc/BAPI etc)...
Plz share your knowledge.
Thanks,
Sridhar
‎2011 Dec 03 1:21 PM
Hi
The material code should be transfered as Material External Code in oreder to convert it as internal one
Max
‎2011 Dec 04 5:09 PM
‎2011 Dec 05 11:58 AM