Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MB31 - material document creation

Former Member
0 Likes
699

Hi,

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
604

Hi,

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 ...

Thanks

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
605

Hi,

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 ...

Thanks

Naren

Read only

0 Likes
604

They make sense. I will give them a try and give full points. Thanks.