Skip to Content
avatar image
Former Member

Posting vendor invoices with automatic tax calculation using BAPI_ACC_DOCUMENT_POST

We are trying to post vendor invoices using BAPI_ACC_DOCUMENT_POST and want to enable the automatic tax calculation, similar to calculate tax option available in FB60.

We are unable to do it.

We have tried the option of calculating taxes using CALCULATE_TAX_FROM_GROSSAMOUNT and CALCULATE_TAX_FROM_NET_AMOUNT and passing the values to ACCOUNTTAX and CURRENCYAMOUNT parameters.

Tax Conditions and % are maintained in FV13 and we want the calculation according to it. These FM calculate the tax according to the % maintain in Tax classification option correctly but for other options are returning 0 values.

Any pointers would be really helpful.

capture.png (9.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 30, 2017 at 12:26 PM

    System will always take the value from table A003 for direct FI invoice posting. Please check the KBA 2483249 - GST IN: FB60/FB70 not working for MM/SD access sequence

    Also raised SAP for the same and got the reply:

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 07, 2017 at 06:56 PM

    Thanks for your response Divyendu.

    We have dropped the option of BAPI and used BDC for FB60 instead. It has resolved the issue.

    Add comment
    10|10000 characters needed characters exceeded