I need someone who has worked with bapi BAPI_ACC_BILLING_POST. First of all, I'm an ABAPer, I know very little of FI. I'm in an Upgrade project from 4.6C to ECC 6.0.
I'm using that BAPI to post an IDoc but the document is not posted, the process ends with message "Tax code CX requires ZZA as the account key" (FF761). The thing is that I'm sending account key ZZA in structure ACCOUNTTAX of the BAPI, but after debugging a lot it calculates $ -0,07 as the amount of that tax. This happens because the system calculates the total tax as $0,23 but the IDoc sends $0,16 ($-0,07 seems to be the difference).
FI analysts tried to post the same document manually, checking the field (BKPF-XMWST) that calculates taxes automatically and they couldn't do it either! And if they don't check BKPF-XMWST and specify the tax manually, there is another error. So they are unable to post the document.
The strangest thing is that this IDoc is correctly posted in PRD system 4.6C (all our test are being done in test system ECC 6.0).
What I'd like to know if this BAPI calculates the taxes automatically (looks like it does it, because it calculates $0,23 instead of the $0,16 that I send) and if it's possible to turn it off.
And last but not least, any idea of why the document was posted correctly in PRD but we are unable to post in in ECC 6.0 DEV ?
Thanks a lot!