Skip to Content
0

BAPI call is successful but the document is not created in database

Jul 24, 2017 at 06:02 PM

53

avatar image
Former Member

In one of our custom programs, we are calling BAPI - BAPI_SALESORDER_CREATEFROMDAT2 to create Sales Document. The BAPI call is successful and returns the Service Order number.

In the next step, we call BAPI-BAPI_TRANSACTION_COMMIT (with WAIT = “X”), which is also successful.

But there is no record for the Sales Order in the database tables (VBAK/VBAP).

We are not able to consistently replicate the issue, hence it is difficult to pinpoint the root cause. I would appreciate if anyone in the group share their thoughts or experience on this.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Ram Burugu Jul 25, 2017 at 03:30 AM
0

Check any short dumps at that time, especially from your output programs. If you can try to change the output control to process gby background job, so it will eliminate any issue due to print/edi programs.

Also check SM21/SM13 for any update errors etc.

Share
10 |10000 characters needed characters left characters exceeded
Avik Mazumder Jul 25, 2017 at 04:09 AM
0

Hi,

You need to check in t-code ST22 the update termination reason. There could be numerous cause,it can be caused by duplicate key insert or any other conversion failure etc.

Regards,

Avik

Share
10 |10000 characters needed characters left characters exceeded