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

tax calculation issue in bapi upload

Former Member
0 Kudos

Hi Friends,

I have developed one bapi upload program where in Iam using function module ' BAPI_ACC_DOCUMENT_POST '.

This should upload data into the transaction F-02. In this transaction, we have ' calculate tax ' check box in the second screen.

My requirement : I need to make this 'calculate tax' check box selected while uploading itself. For this I have prepared one excel flat file with calculate tax field (xmwst) and passed the value 'X' for all the records in the flat file.

But in bapi structures (import parameters), Iam unable to find the tax_calculation field for assigning the flat file field.

Can anybody give me an idea of how to approach.

Thanking you,


Murali Krishna . T


Former Member
0 Kudos

Hi all,

In bapi UPLOAD for 'BAPI_ACC_DOCUMENT_POST', I had a requirement where I need to calculate the tax and upload the tax value.

for calculating the tax, iam using zcalculate_tax_from_net_amount. And iam picking the calculated tax value.

I have assigned the calculated tax value to the bapi structure 'bapiaccr09-AMT_BASE' . Is this the exact field for which we need

to assign the calculated value?

Please help me to resolve the issue.



Murali Krishna T