Issue in posting multiple goods movement using BAPI_GOODSMVT_CREATE
i'm currently facing an issue whereby the BAPI_GOODSMVT_CREATE throwing me error M7-021 When i try to post 907Q after 321Q and 415Q.
The weird thing here is, i cant post 907Q in the 1st run of BAPI_GOODSMVT_CREATE, but when i re-run the BAPI_GOODSMVT_CREATE in debug mode (2nd time), it allow me to post 907Q successfully.
Scenario (i'm running wedynpro in debug mode) :
1 - post 321Q - success
2 - post 415Q - success
3 - post 907Q - failed for the 1st time by showing error M7-021. Then i rerun BAPI_GOODSMVT_CREATE and it allow me to post.
I'm calling BAPI_TRANSACTION_COMMIT after each BAPI_GOODSMVT_CREATE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
wait = 'X'.
Does anyone here having similiar issue?
Thanks in advance for all d help.