Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Calculate direct tax using bapi bapi_acc_document_post

sunil_mani
Active Participant
0 Likes
6,386

Hi Experts,

          I have to calculate tax directly using bapi_acc_document_post. In order to this, I have populated direct_tax field in the account tax table. Still I'm not able to create tax directly. Can you please assist in this regard?

Thanks in Advance!!

5 REPLIES 5
Read only

Former Member
0 Likes
3,133

Hi ,

        Check this link "http://wiki.sdn.sap.com/wiki/display/ERPFI/Accounting+Interface+Architecture"

Regard's

Smruti

Read only

Former Member
0 Likes
3,133

Check this Note :

Note 626235 - Tax postings with accounting BAPIs

Regard's

Smruti

Read only

0 Likes
3,133

Hi Smruti,

    PFA.. I have to check the calculate tax option using the above bapi. Let me know the sample code. I have tried filling 'X' in direct tax of account tax internal table. Still it is not working.

Read only

0 Likes
3,133

Hi Sunil,

              As per your Screen Shot for Calculate tax field use "ENTER_TAXES " FM .

              If you Run this FM Using SE37  without any Input value u got below Screen .

              then you know how to use this FM with your Existing BAPI , mean "bapi_acc_document_post" + "ENTER_TAXES"  solve your current issue.

Regard's

Smruti

Read only

0 Likes
3,133

Hi Everyone,

     SAP has suggested to calculate tax amount manually within our own program and then we have to pass the values to our BAPI. As there is no provision to calculate tax automatically via this BAPI. And SAP does not allow us to check this check box via BAPI.