MB31 - material document creation
In MB31 when we do a goods receipt, a material document gets created in MKPF. My requirement is some where inside this MB31(may be in a User-Exit), I would like to trigger an event if material document was created successfully. There are some User-Exits avaialble for MB31 but not sure which one to use as I am not sure at what point the material document is being created in MB31. Any help appreciated. Thanks.
Try using the BADI MB_DOCUMENT_BADI and use the method MB_DOCUMENT_UPDATE
OR the user exit.EXIT_SAPLMBMB_001..
Both are called in the FM MB_POST_DOCUMENT..You will have the material document number available ...