Dear All,
On ECC6, TCode VL01N, Pgm SAPMV50A, Include MV50AFZ1, User Exit USEREXIT_SAVE_DOCUMENT.
We are trying to post additionnal good movement with BAPI_GOODSMVT_CREATE :
1) In Background task :
It works fine, SD doc flow is correctly fed but we can not get return and therefore can not control potential errors.
2) In Foregroung task :
If we leave DELIV_NUMB and DELIV_ITEM, we get DUMP with err msg VL302 saying that delivery does not exist yet. If we clear DELIV_NUMB and DELIV_ITEM then it works, but SD Doc flow is not fed.
We tried tricky things such as Commit before and/or after calling Bapi but no success. We tried also to call BAPI in foreground-test to get potential error msg, but for an unknown reason, then next call in background failed.
help appreciated,
Regards,
Francois