cancel
Showing results for 
Search instead for 
Did you mean: 

Material Master User Exit

Former Member
0 Kudos

Hi,

I want to assign internal number range for materials being created in MM01. For this I am using MGA00002 & EXIT_SAPLMG02_001 component.

With this I am able to create materials as per the logic I have written in the user exit.

When ever I extend the code to other plant, then also this user exit is triggered & a new number is being assigned from this user exit. How to over come this problem? Like my requirement is if material is same & being used across plants then item code must be same across the plants.

Please help me in resolving this problem.

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

You have to take care about this issue in your coding yourself.

You have to know whether it is a new creation or an extension to an existing material.

Best you check on table MSTA (status info to material views) or you check just the existence of your material in table MARA

Former Member
0 Kudos

Hi,

As you said if I check from msta or mara table I will only know existence of the item. But how will I know which code to be assigned to this material being extended.

Because parameters being passed to this used exit is only material type & industry & number range.

regards.

JP

JL23
Active Contributor
0 Kudos

The user has to enter the material number when he extends a material to another plant, sales org or storage location.

the user does not enter the material number if he creates a new material

Answers (0)