The requirement is to update the Qty & Status during POSTing in MIGO if the material is Kanban managed.
Scrapping using 551/ 552 should accordingly increase/ decrease the Kanban Qty and modify the status (visible in PK31 and PKPS table)
1. Implemented BADI "MB_MIGO_BADI" & called the FM to update Kanban status & Qty. But got the error of COMMIT_IN_POSTING.
2. Used EXIT_SAPMM07M_001 to call FM "BAPI_KANBANCC_WITHDRAWQUANTITY" but still the same error
3. Implemented BADI "MB_DOCUMENT_BADI" but faced the same error.
Any pointers to user-exit/badi which would help to fulfill the above requirement.
Also let me know, if the approach should be changed.