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

Ean code automatically in MM02

Former Member
0 Likes
1,950

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,554

You can use BADI BADI_EAN_SYSTEMATIC. Please check interface document for the same.

6 REPLIES 6
Read only

Former Member
0 Likes
1,555

You can use BADI BADI_EAN_SYSTEMATIC. Please check interface document for the same.

Read only

0 Likes
1,554

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?

Read only

0 Likes
1,554

Thee is one more BADI - BADI_MATERIAL_REF where you can propose all EANs.

Read only

0 Likes
1,554

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

Read only

0 Likes
1,554

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).

Read only

0 Likes
1,554

Ok, a lot of thanks.