cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_GOODSMVT_CREATE could not create GR document

Former Member
0 Kudos

Hi Guys,

We used BAPI_GOODSMVT_CREATE in webdynpro(java) to create gr document,

and the bapi returned doc number correctly,then we called BAPI_TRANSACTION_COMMIT to commit the whole job, and there was no error returned, but we could not find the GR doc in sap R/3, it seemed that the document was not created in fact.What could cause this? thanks!

Pole

Accepted Solutions (1)

Accepted Solutions (1)

former_member720137
Active Participant
0 Kudos

HI

Make sure u are importing both the BAPI's in same model... then only committing of data will be done...

Hope this will solve ur problem...

Reward points if helpful!

Thanks

Puneet

Answers (2)

Answers (2)

Former Member
0 Kudos

yes, I think the problem for session, maybe you write a ZWEBGR0002 for me.

Thoujean

Former Member
0 Kudos

Hi,

As you said, it is returning Document number back to you, means first BAPI is executed properly. Now, You are calling BAPI_TRANSACTION_COMMIT BAPI to commit your work.

Check the TYPE parameter in output table. If, it is giving "S" then it means it is successful.

Otherwise, it will give error message also in the same output table. try to get this message.

Regards,

Bhavik