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: 

User-exit for material number assignment

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

thank u..