Skip to Content
0
Former Member
Jan 09, 2006 at 10:26 AM

Stopping the normal update using MB_DOCUMENT_BADI

438 Views

Hi Everybody,

One of our requirement is to trigger a popup screen with 'Advance License number'( India CIN implementation ) whenever GR or GI is done in SAP, this will inturn update the custom table with the advance license number provided for each item from MIGO/VL01N/VL02N transactions and also deplete the quantity in the custom table, the same should be updated when the document reversal happens from MIGO/MBST/VL09 transactions as well. To achieve this functionality we have used MB_DOCUMENT_BADI, and written the code in the method 'MB_DOCUMENT_BEFORE_UPDATE',this is working fine for all the scenarios, however when the user tries to cancel the Advance license number popup in the above said transactions, the standard tables are getting updated with the material documents, this shouldnt happen, the entire update process should stop, and there shouldnt be any update, is there any ways one can control the update process using this BADI, any help would be highly appreciated,

Rgds,