2010 Mar 16 10:38 AM
Hello Experts,
In ME22N , suppose i tick Delievery Completed for one line item.
My requirement is while doing MIGO , it will not allow MIGO for that PO line item.
Plz suggest which user exit , i will go for.
Thanks & Regards,
Aastha
Hello Experts,
In ME22N , suppose i tick Delievery Completed for one line item.
My requirement is while doing MIGO , it will not allow MIGO for that PO line item.
Plz suggest which user exit , i will go for.
Thanks & Regards,
Aastha
2010 Mar 16 10:41 AM
You may want to look at Badi ME_PROCESS_PO_CUST, specifically method PROCESS_ITEM.
Hope this helps.
With kind regards,
Roel van den Berge
2010 Mar 16 12:43 PM
2010 Mar 17 7:51 PM
2010 Mar 20 4:48 AM
I got a solution.
User Exit : XMBCU02.
Add in Include ZXMBCU02
&----
*& Include ZXMBCU02 *
&----
data: begin of wa_mseg.
include structure mseg.
data: end of wa_mseg.
data: wa_elikz type ekpo-elikz,
msg_str type string.
move-corresponding i_mseg to wa_mseg.
clear wa_elikz.
select single elikz from ekpo into wa_elikz where ebeln = wa_mseg-ebeln and ebelp = wa_mseg-ebelp.
if wa_elikz = 'X'.
concatenate 'Purcahse Order' wa_mseg-ebeln 'Line Item' wa_mseg-ebelp 'has already delivery completed' into msg_str separated by space
.
message msg_str type 'E'.
endif.
Regards ,
Aastha