‎2008 Jun 30 7:35 AM
experts,
when i have used exit MGA00002 and the corresponding function module EXIT_SAPLMG02_001 to assign the default values of mbrsh and mtart to the material number created during the course of the transaction mm01 i have written the following code in the INCLUDE ZXMG0U03
matnr+3 = matnr.
matnr+0(1) = mbrsh.
matnr+1(2) = mtart.
concatenate matnr0(1) matnr1(2) matnr+3 into matnr.
but default value is not getting assigned.
with regards.
‎2008 Jun 30 7:37 AM
hi,
try to use SHDO transaction to get default values to ur transaction.
there r lot of posts regarding SHDO. plz check.
‎2008 Jun 30 7:44 AM
you just want to concatenate the mat type and indus sect to ur material num.
if it is then do this
go for MGA00001
in that u use
data: field1(18) type c,
concatenate the three fields using wmara like
wmara-matnr wmara-mbrsh wmara-mtart
into ur field field1
now write
cmara-matnr = field1.
if useful rewars
regards
Prakash Varun