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 exits for mm01 to assign default value

Former Member
0 Likes
1,315

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.

2 REPLIES 2
Read only

GauthamV
Active Contributor
0 Likes
730

hi,

try to use SHDO transaction to get default values to ur transaction.

there r lot of posts regarding SHDO. plz check.

Read only

Former Member
0 Likes
730

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