Skip to Content

Posting vendor invoices with automatic tax calculation using BAPI_ACC_DOCUMENT_POST

Jul 27, 2017 at 11:04 AM


avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Dibyendu Patra 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:

10 |10000 characters needed characters left characters exceeded
mohit johri 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.

10 |10000 characters needed characters left characters exceeded