Application Development 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: 

MIGO BADI/USER EXIT for PO balance quantity

former_member193464
Contributor
0 Kudos

hi all,
       I have a requirement where once a GR is done i have to send a mail to some custom ids with the left over quantity in PO. I tried MB_MIGO_BADI-POST_DOCUMENT but it does not trigger ( may be because no custom screen initialization is done) also i checked MB_DOCUMENT_BADI , In it the BEFORE_UPDATE method is being executed whereas the DOCUMENT_UPDATE is not being triggered , can i write my code in BEFORE_UPDATE ( coz may be the GR fails afterwards but the mail would have been sent till then ) . Please help , any other badi or user exit that can be used for this purpose..

Thanks,
Manoj

1 ACCEPTED SOLUTION

former_member200345
Contributor
0 Kudos

Hi, I guess the same requirement can be fulfilled by configuring the NACE output type for the GR.

I have also checked the method POST_DOCUMENT of the BADI MB_MIGO_BADI. My break point is triggered while doing MIGO for the Purchase Order.

10 REPLIES 10

Former Member
0 Kudos

MB_MIGO_BADI-POST_DOCUMENT should trigger. check if your BADI implementation is active.

I had used it in my earlier project, and it gets triggered every time.

0 Kudos

Hi ,
     yes the BADI is active , when i am putting a breakpoint in INIT method the debugger comes to the point but in the same implementation  i have put a breakpoint in POST_DOCUMENT but it does not stop there... Is it something to do with the PO for which i am doing GR ?

former_member200345
Contributor
0 Kudos

Hi, I guess the same requirement can be fulfilled by configuring the NACE output type for the GR.

I have also checked the method POST_DOCUMENT of the BADI MB_MIGO_BADI. My break point is triggered while doing MIGO for the Purchase Order.

0 Kudos

Hi vijaymadhur,
                         How exactly in NACE ,sorry  dont have much idea on that , how the output type gets triggered for a GR ?
You did not give anything on other methods ? my all other methods are empty , i have just implemented the badi and hardcoded a breakpoint for my user but it still not triggers, the method is activated , BADI implementation is active , can you suggest why this might happen ?

Thanks.

0 Kudos

Hi, Go through the below link for NACE configuration.

http://wiki.sdn.sap.com/wiki/display/ERPSCM/Output+Determination+in+Inventory+Management+(IM)

Regarding the BADI implementation, I have just implemented the mehod POST_DOCUMENT like below. I did not implement any other methods.

method IF_EX_MB_MIGO_BADI~POST_DOCUMENT.
BREAK-POINT.
endmethod.

May be there are few errors in the Material document. are you able to post the material document?

0 Kudos

yes the Material document is being created , i even checked it after posting ....
how can i go about checking what exactly is happening in the BADI why isnt the method triggering.... i also see an old implementation(standard one) which is active for that BADI and still POST_DOCUMENT was not triggering...
Thanks for the help.

0 Kudos

Hi, Try the below way and see.

method IF_EX_MB_MIGO_BADI~POST_DOCUMENT.
BREAK-POINT.
endmethod.

0 Kudos

Hi,
     I have tried the same way you have written.
     Actually there is one information message when i click on post , which states "Movement type 101 has been changed to 103 for these item lines " , is this the reason of the method not being triggered ?

0 Kudos

Try to post a GR with movement type 101.

0 Kudos

Hi
     it triggered , but still i didnt get ,the previous PO's also i was trying to post under 101 only , but it was automatically changing it to 103 .