Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 25, 2017 at 03:30 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 25, 2017 at 04:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded