‎2015 May 08 1:54 PM
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
‎2015 May 08 3:24 PM
Hi,
write a select query to fetch the old status and compare it with wmara-mstae.
Best Regards,
Noufal P
‎2015 May 08 3:24 PM
Hi,
write a select query to fetch the old status and compare it with wmara-mstae.
Best Regards,
Noufal P
‎2015 May 08 3:30 PM
Hi Noufal,
What kind of select query would you recommend? Can you elaborate your suggestion please?
Thanks,
Cholen
‎2015 May 08 3:48 PM
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
‎2015 May 08 4:03 PM