Application Development and Automation 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: 
Read only

getting error while posting doc using BAPI BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
813

Hi,

I am passing the value for posting key in BAPI through TAX_CODE field in ACCOUNTGL (parameter name under tables).

It is giving error "Tax code 01 in procedure TAXR0 is invalid".

Can anyone help me to solve this .

4 REPLIES 4
Read only

Former Member
0 Likes
598

Try in these :

Regards

Neha

Read only

arjun_subhash
Active Participant
0 Likes
598

Hi,

Note that this bapi does not need a posting key to post. it identifies posting keys from the datas.

Also tax code is not posting key.so posting key shoud not be passed to tax code field.

find the tax code from your functional consultant or value table of tax field and pass it.

thanks

Arjun

Read only

0 Likes
598

Hi Arjun,

Thanks for your reply it was helpful .I have one more problem how to pass the G/L account in this BAPI . I have fetched the reconcillation account no. of that particular customer from KNB1 table and passing it as G/L account .

It is giving error like "Account & in company code & cannot be directly posted to " .

Can you please help me in this.

Read only

0 Likes
598

Hi,

Sorry i did't see ur query in the morning.

note that you should not pass the reconcillation account number of customer.just pass the customer number from KNA1 or KNB1.

pass actual gl account numbers only for entries in tables ACCOUNTGL and ACCOUNTTAX.

thanks and regards

Arjun