‎2007 May 17 8:59 AM
Hello,
I tried to implement the user exit EXIT_SAPLMGMU_001 to create a new ean code automatically when press the save button in material transaction MM02.
I filled the table SMEAN_ME_TAB with new ean codes, but when the execution of save in the MM02 finalize, the new values I introduce don't appear in master material.
I don't know if this user exit I can do it, or I need a Badi,which one?. In the case I need a badi to do it, where can call it?. in the same user exit?
Thanks in advance,
Jordi
‎2007 May 17 9:28 AM
You can use BADI BADI_EAN_SYSTEMATIC. Please check interface document for the same.
‎2007 May 17 9:28 AM
You can use BADI BADI_EAN_SYSTEMATIC. Please check interface document for the same.
‎2007 May 17 1:10 PM
Thanks Sanjay,
But my problem persist because I not only have an EAN Code. I'm in AFS SAP that I have of each material a lot of EANs Code. In MM02 --> Additional Data --> Additionals EANs. There I have multiple size of my material (shoes), and I need to fill all EANs code for each size of these material. I use the BADI BADI_EAN_SYSTEMATIC but only fill the first one EAN code.
Anybody have another solution?
‎2007 May 17 1:42 PM
Thee is one more BADI - BADI_MATERIAL_REF where you can propose all EANs.
‎2007 May 17 6:01 PM
OK,
But the BADI 'BADI_MATERIAL_REF' only executes when we create a material, and not when we modify it. Do you know if I can execute it when I modify a material and not only when I create it?
A lot of thanks with your time,
Jordi
‎2007 May 18 6:52 AM
I've not used it but as per interface document and BADI document, it can be used for create as well change. I think you will have to try it out.
When a material master record is created or extended in the standard R/3 System, default data is essentially determined from Customizing tables and from a reference material (if one has been specified).
‎2007 May 21 11:54 AM