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

User-exit for material number assignment

Former Member
0 Likes
2,315

Hi,

Can you please tell me the logic for the external number assignemt for the enhancement MGA00002 of material master.

Thanks,

Mallika

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,428

Hi Mallika,

with this exit you can change the material number set externally, like adding a prefix.

Let's say you create a material in TC MM01 with the manually set material number 123. That exit can add a prefix and set the material number to A123.

It might be more easy to see an advantage if materials are created by an IDOC or web service from an external system.

regards,

Edgar

4 REPLIES 4
Read only

Former Member
0 Likes
1,429

Hi Mallika,

with this exit you can change the material number set externally, like adding a prefix.

Let's say you create a material in TC MM01 with the manually set material number 123. That exit can add a prefix and set the material number to A123.

It might be more easy to see an advantage if materials are created by an IDOC or web service from an external system.

regards,

Edgar

Read only

0 Likes
1,428

thank u so much for the reply..could u pls let me know how to code?

Read only

0 Likes
1,428

ok, this is a simple example to add a prefix to kanban recipients:


IF mmue1-mtart = 'CONT'    "kanban
   AND NOT matnr(1) = 'A'.
  CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' "remove leading zeros
    EXPORTING
      input  = matnr
    IMPORTING
      output = matnr.
  matnr(1) = 'A'. "prefix
ENDIF.

regards,

Edgar

Read only

0 Likes
1,428

thank u..