Skip to Content
author's profile photo Former Member
Former Member

BAPI_ACC_DOCUMENT_POST function nothing posts


I am trying to post a document of type DR (simulating transaction FB70) using BAPI_ACC_DOCUMENT_POST function.

The function returns success code (605) and the message that document was successfully posted but indeed it is not in the database. I have tried to call this BAPI from ABAP program and from non-SAP system using RFC enabled wrapper function that calls this BAPI. I need this wrapper function in order to perform some checking routines before calling BAPI. The result was the same. I have tried to debug the code. There are a lot of calls to functions in update mode in BAPI_ACC_DOCUMENT_POST function logic but I was unable to find the commit work statement. It seems, that changes were not committed to the database.

Any help would be very appreciated.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Mar 03, 2004 at 06:23 PM

    In most BAPIs you have to implicitly trigger the Commit Work by calling BAPI_TRANSACTION_COMMIT. The following is from the online help for this function:



    Short text

    Execute external Commit when using BAPIs


    This method executes a COMMIT WORK command. It is required for transactions developed externally to the R/3 System that change data in the R/3 System via BAPI calls.

    When you call BAPIs in your program that change data in the R/3 System, afterwards you must call this method to write the changes to the database.


    Messages are returned in the parameter 'return'. This parameter documentation contains the return codes and their descriptions.

    Further Information

    Use the method BapiService.TransactionRollback to prevent changes to the database being committed.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.