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

MIGO:User Exit

Former Member
0 Likes
888

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

4 REPLIES 4
Read only

Former Member
0 Likes
687

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

Read only

Pranay_Panchbha
Participant
0 Likes
687

This message was moderated.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
687

Check badi MB_CHECK_LINE_BADI.

Check the field MSEG-ELIKZ

Read only

Former Member
0 Likes
687

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