cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_ACC_DOCUMENT_POST and automatic Tax calculation

Former Member
0 Kudos
1,241

Hi,

Does anyone know if it´s possible that the BAPI_ACC_DOCUMENT_POST calculate the tax itself. So that you only assign the tax code in the income statement account or in the expense account.

Thanks

Nuno Ferreira

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Nuno, have you the solution to your answer?

At this moment I have the same problem

Former Member
0 Kudos

Hi Fernando

You can use one of the following function modules:

CALCULATE_TAX_FROM_GROSSAMOUNT

CALCULATE_TAX_FROM_NET_AMOUNT

These function modules look at your tax accounts and will give you the correct entries in the internal table <b>"t_mwdat"</b>, even if you have multiple lines for the tax calculation. This is based on the tax codes you defined in transaction <b>FTXP</b>. You can then loop at the internal table <b>"t_mwdat"</b> and map your tax structure <b>"accounttax"</b> in BAPI_ACC_DOCUMENT_POST from this internal table.

You can also run program RF_STEUERINFO to display what you are supposed to post. Hope this helps.

Kind Regards

Gustav Coleske

imichi
Newcomer
0 Kudos

Hi,

I always use the function 'RECP_FI_TAX_CALCULATE' to calculate the tax.

Regards,

Michael