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: 

No tax rate defined for company code 1000 transaction FTXP Z1

sourav2117
Participant
0 Kudos

Hi All,

i m getting this error when i m trying to post a credit memo from bapi_acc_document_post .

i have successfully posted the document without taxes but with taxes i m getting this error.No tax rate defined for company code 1000 transaction FTXP Z1.

I have created 3 entries in GL_ACCOUNT TABLE : 1 for debtor, 2 for tax ( cgst and sgst separately).

in currency table i m making 4 entries : 1 for gl , 2 for tax entry and 1 for customer.

in Account tax : i m making 2 entries for taxes .

the same doc is working fine with fb75 transaction.

I am attaching debug values in word doc..and thanks in advance any suggestions would be valuable.

1 ACCEPTED SOLUTION

MarekTurczynski
Contributor
0 Kudos

The error is not withing BAPI call but in FTXP customizing. In your tax code 'Z1' you must maintain the percentage 2,5 for lines with account key 'JOC' and 'JOS'. Atherwards this error will be gone.

Moreover - you do not need to pass the percentage / GL account in the Tax Segment. Tax code and account key are enough.

The tax lines (3 and 4 according to your BAPI Currency values) should not be delivered in 'ACCOUNTGL' segment. It is enough to pass them in 'ACCOUNTTAX' and their values in 'CURRENCYAMOUNT'.

Regards,

Marek Turczyński

4 REPLIES 4

ziolkowskib
Active Contributor

Hi sourav2117,
I can't see any attachment...
Regards,
Bartosz

sourav2117
Participant
0 Kudos

Sorry ,

The attachment failed that time so i am adding it for your reference..

MarekTurczynski
Contributor
0 Kudos

The error is not withing BAPI call but in FTXP customizing. In your tax code 'Z1' you must maintain the percentage 2,5 for lines with account key 'JOC' and 'JOS'. Atherwards this error will be gone.

Moreover - you do not need to pass the percentage / GL account in the Tax Segment. Tax code and account key are enough.

The tax lines (3 and 4 according to your BAPI Currency values) should not be delivered in 'ACCOUNTGL' segment. It is enough to pass them in 'ACCOUNTTAX' and their values in 'CURRENCYAMOUNT'.

Regards,

Marek Turczyński

0 Kudos

OK , i will just look into it..but i have question everything is working fine when i m trying to post via fb75.

Thank your very much for your response Marek Turczyński.