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



I am trying to implement the posting of accounting documents via BAPI_ACC_DOCUMENT_POST, and struggling to get the tax postings to work properly.

The process requires me to produce the same outcome as a user manually posting the document via FB01 where tax items are automatically generated. So I need to confirm how to calculate and post the tax items.

I need more information on how to retrieve the data to pass to the ACCOUNTTAX parameter of the bapi and the mapping of the data to the ACCOUNTAX fields. And also the corresponding CURRENCYAMOUNT parameter, I am interested to know if I have to populate the base amount fields as well as the document amount field.

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Apr 27, 2006 at 10:51 PM

    Hi Murray,

    I recently faced the same problem with tax for this BAPI and found the solution here at the good old SAP Fans forum:

    [RESOLVED" target="_blank">☆t=0&postdays=0&postorder=asc&highlight=">[RESOLVED] BAPI_ACC_DOCUMENT_POST - Posting tax amount

    This post then leads to this one:">** RESOLVED ** Problem with G/L Posting BAPI

    Please have a look at the User-Exit usage in the bottom of this thread. I found this info by Google searching.

    It should not be to difficult for you to solve your problem with this info, I guess.

    Regards, Johan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      I have a function module that can be helpful for you:


      You need to pass only the Company Code, Tax Code, Currency and the amount to have the tax value calculated.

      After using it, you can call the BAPI_ACC_DOCUMENT_POST.


      Daniel Carvalho.