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

Tax problem in BAPI_ACC_DOCUMENT_POST - Help

Former Member
0 Likes
2,895

Hi

I am having problems with catering to the Tax scenario with the bapi BAPI_ACC_DOCUMENT_POST.

My scenario is as follows:

doctype = SA

key = 19

Customer =1000000796

special GL indicator =T

wrbtr =1350-

baseline date = 30112007

Tax code = O3

business area = 1202

-


Now the problem is with this line; Tax code 03 is 15% for vendor. In this is case it will be 202.5 or 203.

BUT the business process is such that the tax code only exists for informational purposes- no tax amount is calculated or placed in.

It gives a warning which we ignore and continue.

And if no tax code is entered, it gives an error -no tax code entered.

-


Now if fill the ACCOUNTRECEIVABLE

without the tax code- it gives an error-.

If i fill the tax code it gives the error = Tax code O3 does not appear in any G/L account item

without filling the ACCOUNTTAX

-


When i fill the tax line :

ACCOUNTTAX

ITEMNO_ACC = 0000000030

GL_ACCOUNT = 0002381029

COND_KEY = MWAS

ACCT_KEY = MWS

TAX_CODE = O3

TAX_RATE = 15.000

CURRENCYAMOUNT

ITEMNO_ACC = 0000000030

CURRENCY = PKR

AMT_DOCCUR = 0

AMT_BASE = 1350-

TAX_AMT =0

--

At this it gives the error : Foreign currency translation not supported for tax calculation

-


I searched the forums and have looked around. I changed the business transaction to RMRP

and it returns to

Tax code O3 does not appear in any G/L account item

-


Can anyone please help with this scenario.

Points will be rewarded

Thank you very much

7 REPLIES 7
Read only

Former Member
0 Likes
1,439

copy this and try



ACCOUNTTAX
ITEMNO_ACC = 0000000030
GL_ACCOUNT = 0002381029
COND_KEY = MWAS
ACCT_KEY = MWS
TAX_CODE = 03
TAX_RATE = 15.000

CURRENCYAMOUNT
ITEMNO_ACC = 0000000030
CURRENCY = PKR
AMT_DOCCUR = 0
AMT_BASE = 1350-
TAX_AMT =0

Read only

0 Likes
1,439

Sir i mentioned that I had already tried that

I retried anyway:

error: Foreign currency translation not supported for tax calculation

Read only

0 Likes
1,439

I have been searching around for a similar problem but cant seem to find one~ there was one case where the special gl indicator did not require an entry in the ACCOUNTTAX table but even that did not work

anyone have an idea for this?

Read only

0 Likes
1,439

An update to this:

I found that the

Foreign currency translation not supported for tax calculation

It was because the currency type field was being taken as 00 as 10. 10 is used as our currtype.

The document is still in error though. resolving

Edited by: Zeeshan Shah on Jun 4, 2008 3:30 PM

Read only

0 Likes
1,439

It seems the problem with message id FF753 is extensive. I have searched around on sapnotes and found some notes related to inconsistencies in BSET and BSEG

Could anyone tell me how the field DIRECT_TAX in ACCOUNTTAX works? Maybe that would help me

Read only

0 Likes
1,439

Well i finally identified the error location:

its in CALCULATE_TAX_DOCUMENT

which is in SAPLTAX1

line664

It tries to check a value in BSET but fails and gives the error

if i_xsimu = space

and i_xnoms = space.

loop at skftabn.

if skftabn-mwskz ne '**'.

loop at xbset where mwskz = skftabn-mwskz.

exit.

endloop.

if sy-subrc ne 0.

call function 'CUSTOMIZED_MESSAGE'

exporting

i_arbgb = 'FF'

* i_dtype = 'W' "n877942

i_dtype = 'E' "n877942

i_msgnr = '753'

i_var01 = skftabn-mwskz.

exit.

endif.

endif.

endloop.

if anyone have had this scenario, please help

thanks

Read only

Former Member
0 Likes
1,439

I couldnt use this scenario. Replaced it with a background bdc recording