MIGO - Abort posting by using badi/exit
Transaction MIGO during posting goods receipt for a purchase order :
after clicking the save button (or Post button) i have to show a popup with all materials of the GR that satisfy some condition.
I did solve this by using badi MB_DOCUMENT_BADI - method MB_DOCUMENT_BEFORE_UPDATE.
But now a new requirement is to give the user the possibility on the popup to abort the complete saving/posting.
I can not do this in the above method.
Has anyone a clue how to solve this problem ?
rajkumar abbu replied
I think you can use badi - MB_MIGO_BADI method - POST_DOCUMENT. where you can access same structures and you can call a popup window and based on the option you can abort the transaction with message type E. It has given in the documentation that all error messages in this method will be converted to abort.