regarding MB_MIGO_BADI in FM bapi_goodsmvt_create
I have implemented method 'POST_DOCUMENT' of BADI 'MB_MIGO_BADI' as per business requirement. When user is doing GR using MIGO, this BADI is working as per requirement, but when I am using FM BAPI_GOODSMVT_CREATE for doing goods movement, this BADI is getting called though material document is getting generated and MKPF, MSEG are getting updated as per requirement.
Please help me on how to resolve this issue.
For the same reason I suggested to read the documentation of the BADI which mentions that this BADI is only called for MIGO transaction.
Instead you can try using BADI MB_DOCUMENT_BADI.
Hope this helps.