Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issue in posting multiple goods movement using BAPI_GOODSMVT_CREATE

Hi All,

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'

     EXPORTING

       wait = 'X'.

Does anyone here having similiar issue?

Thanks in advance for all d help.

Regards,

Sham.

Former Member
Not what you were looking for? View more on this topic or Ask a question