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

MM02 - Import / Export parameters

Former Member
0 Likes
781

Hi,

I have a requirement to send a message when a material with x-plant status AB is changed in MM02. How is it possible to import the old status AB in user exit ZXMG0U02? Within the exit, the value for wmara-mstae is already the new value.

I have seen export/import from memory ID from the forums but it's not very clear to me how that works. Can anyone please share how it's used?

Thanks,

Cholen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
725

Hi,

write a select query to fetch the old status and compare it with wmara-mstae.

Best Regards,

Noufal P

4 REPLIES 4
Read only

Former Member
0 Likes
726

Hi,

write a select query to fetch the old status and compare it with wmara-mstae.

Best Regards,

Noufal P

Read only

0 Likes
725

Hi Noufal,

What kind of select query would you recommend? Can you elaborate your suggestion please?

Thanks,

Cholen

Read only

0 Likes
725

hi cholen,

write the following select query.

data lv_mstae type mara-mstae.

select single  mstae from mara into lv_mstae where matnr = wmara-matnr.

if sy-subrc = o and lv_mstae <> wmara-mstae.

***write you logic here

endif.

Regards,

Noufal

Read only

0 Likes
725

Got it. Thank you Noufal!