cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_ACC_DOCUMENT_POST error - Tax entered incorrect (code X2, amount 0.00), correct 8340.42 EUR

ManojYadav
Explorer
0 Kudos
1,222

Hi All,

I am using BAPI BAPI_ACC_DOCUMENT_POST to post document.

Below data is passed to BAPI interface:

Table: accountgl as

table 'currencyamout' as

getting error as 'Tax entered incorrect (code X2, amount 0.00), correct 8,340.42 EUR'.

Is something missing here?

Note: If i try manually using FB01, its working fine. see below document is created without issue using FB01.

Thanks in advance.

Regards,
Manoj

View Entire Topic
DominikTylczyn
SAP Champion
SAP Champion

Hello manoj_yadav

The note 626235 - Tax postings with accounting BAPIs details tax postings with BAPI_ACC_DOCUMENT_POST. Make sure to provide tax posting lines in the ACCOUNTTAX table.

Best regards

Dominik Tylczynski

ManojYadav
Explorer

Dear Dominik Tylczynski,

Thank you for your valuable time looking into this. I tried passing data to ACCOUNTTAX but getting error as "FI/CO Interface: Balance in Transaction Currency 64,157.06 (EUR)".

data for bapi as below:

Is something missing here?

Regards

Manoj

DominikTylczyn
SAP Champion
SAP Champion
0 Kudos

Hello manoj_yadav

Look at your posting items - debits marked in green, credits in red:

They don't balance. You have specified credit items twice.