07-02-2012 11:05 AM
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
07-02-2012 11:16 AM
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.
07-02-2012 11:08 AM
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.
07-02-2012 11:12 AM
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 ?
07-02-2012 11:16 AM
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.
07-02-2012 12:25 PM
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.
07-02-2012 12:50 PM
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?
07-02-2012 12:54 PM
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.
07-02-2012 1:12 PM
Hi, Try the below way and see.
method IF_EX_MB_MIGO_BADI~POST_DOCUMENT.
BREAK-POINT.
endmethod.
07-02-2012 1:13 PM
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 ?
07-02-2012 1:35 PM
07-02-2012 1:55 PM
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 .