Application Development 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: 

BADI or User Exit in 'MM01/MM02->Additional Data->Units of measure'

Former Member
0 Kudos

Hello, experts! I'm new to enhancement in ABAP.

My purpose is to calculate the value of EAN/UPC field automatically when a new alternate UOM (AUn) added to the list by selecting one UOM group from the drop-down box 'Units of measure grp'. Please refer to the picture below.

But I have no idea where to add my code. Could you tell me what the BADI or User Exit is? I will be appreciate it!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Shelwin,

I think you can use this badi BADI_GTIN_VARIANT,

Because you changes the MEINH where can change the values of EAN11 field.

8 REPLIES 8

Former Member
0 Kudos

Could anyone help me?

0 Kudos

CAn you please do as follow. Put a break point in MARA_EAN11 FM and check if control goes here. In debugging try to change the value of EAN11 and see if it populates. If yes then you can create an implicit enhancemnet in this FM and do the same

0 Kudos

Thank you very much, nabheet!

I does go here when I set the break point. But I cannot find which data structure contains 'BX, CS, LA, PAL, PK' as is shown in the picture above. I have to calculate the value of EAN/UPC field according to the value of alternate UOM field.

0 Kudos

P_MEINH will contain the input value and P_EAN11 you will fill. Check in debugging by passing it some value

Former Member
0 Kudos

Hi ,

Check this BADI   "BADI_MATERIAL_CHECK"

                Method "CHECK_DATA"

Use this Method parameter as per your requirement : WMEINH (Table for Units of Measure) .

Regard's

Smruti

Former Member
0 Kudos

Hello Shelwin,

I think you can use this badi BADI_GTIN_VARIANT,

Because you changes the MEINH where can change the values of EAN11 field.

0 Kudos

Hi Shelwin,

As per your requirement, you can use the BADI BADI_GTIN_VARIANT. The BADI will trigger for drop down of Unit Measure Group, Enter and Save as well.

Thanks,

Kiran.

raymond_giuseppi
Active Contributor
0 Kudos

Did you find/Analyze BAdI BADI_MATERIAL_REF (Purpose : create and copy default values)  ?

Regards,

Raymond