cancel
Showing results for 
Search instead for 
Did you mean: 

Saving of different Material code in the system while Creating material

former_member220444
Participant
0 Kudos

Hi,

Anyone can help me in following .

While creating material number, there should be some User exit which is going to change the logic for saving of material number in the system.

Example:

Division and material Group should be added into the predefined number range. Number range defined for raw material is 100000 to 199999. If division is 1A, and Material group is M01. The first number generated by system is 100000 , where as during saving into the table NUMBER SHOULD BE saved as 1AM01100000 & we must be able to work on the new number.

If any query pl .revert.

MG.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi manish,

This is possible using enhancement.

Use the User Exit MGA00001

and code the below like :

cmara-matnr = cmara-matnr+7(11).

CONCATENATE cmara-matkl cmara-spart cmara-matnr into cmara-matnr.

set PARAMETER ID 'MAT' field cmara-matnr.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = cmara-matnr

IMPORTING

OUTPUT = cmara-matnr

.

Hope it will solve your problem.

Former Member
0 Kudos

Hi,

This User Exit is triggered during the initial screen of creation. How do we add division or any other characteristic based on the entry by user to the item code after we click on Save button?

regards,

JP

Former Member
0 Kudos

Dear JPNAIDU,

The user exit MGA00002 is triggering before inserting any values so in this requirement it is of no work.

But you can use the exit MGA00001 for that and it will work absolutely fine.

Hope it will solve the problem.

Thanks

Former Member
0 Kudos

Hi Sanku,

What you said is right. I tried this & its working. Thank you.

regards,

JP

Edited by: jpnaidu on Nov 30, 2009 12:21 PM

Answers (1)

Answers (1)

JL23
Active Contributor
0 Kudos

enhancement MGA00002 can be used for this requirement