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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Taxes with BAPI_ACC_BILLING_POST

Former Member
0 Kudos

Hi everybody,

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!

Regards,

Pablo

4 REPLIES 4

Former Member
0 Kudos

hi

good

check these links,hope this would give you some idea to get the knowledge on work this particular BAPI.

http://www.experts-exchange.com/Database/Software/ERP/SAP/Q_20953691.html

http://translate.google.com/translate?hl=en&sl=es&u=http://www.mundosap.com/foro/showthread.php%3Ft%...

THANKS

MRUTYUN^

0 Kudos

I've corrected the Issue. Although I'm sending tax data the BAPI is calculating it again. I've searched notes and found note 333424. I added the entry SD00 IDOC * STAND X to table TAX_APPLI, and put 'IDOC' in field AWTYP of the header structure of the BAPI. This causes the system to bypass the tax calculation and my IDocs started to post normally.

Thanks for reading.

regards,

Pablo

Former Member
0 Kudos

Hi, I'm  getting the same message, but I'm calling this BAPI from  a Program that reads a text file. and the account  key is there but every time the taxes are apply, i mean they different from zero, it does not post the document, any idea? of what can be worong?...

I'm sending Tax account, Tax code, Tax jur. Code and account key in AccountTAX table.

Help Please...

0 Kudos

Hi

See this post: http://scn.sap.com/thread/2012942

Regards

Eduardo