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

Material Master User Exit

Former Member
0 Likes
468

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

hi,

Try this,

place your logic inside condition where you check if the material is created (new entry) in your userexit.

IF t180-trtyp EQ 'H'. -


Add New record

Your logic

ENDIF.

Hope this helps you

regards

padma

1 REPLY 1
Read only

Former Member
0 Likes
382

hi,

Try this,

place your logic inside condition where you check if the material is created (new entry) in your userexit.

IF t180-trtyp EQ 'H'. -


Add New record

Your logic

ENDIF.

Hope this helps you

regards

padma