Problem using CALCULATE_TAX_FROM_GROSSAMOUNT
I am using standard function module "CALCULATE_TAX_FROM_GROSSAMOUNT" and using following data as input:
I_MWSKZ U1 --> Tax code U1 is having invoice tax as 6% and Tax Accrual as 60%
After giving above input and executing function module I am getting following out put in tables T_MWDAT
WMWST MSATZ KTO TXJCD KNUMH KBETR KAWRT HKONT KSCH TXJCD_DEEP T
116,51 6,000 NVV PA0000000 0000030146 60,00 1.941,75 JP1I PA0000000 1
58,26- 50,000- MW1 PA0000000 0000030147 500,00- 116,51 154001 JP1U PA0000000 1
So, My question is if my input amount is 2000 then why tax is calculated on 1941.75? and where from amount 1941.75 is coming? I did some debugging and found that internally this function module calls standard function module "PRICING". Once call return from "PRICING" the KAWRT is set to 1941.75.
As per the inputs following results are expected:
6% tax on 2000 = 120
out of 120 60% will be accrued = 72 will be accrued so amount of 48 is sent with gross amount
But as KAWRT is set to 1941.75 the expected result is not achived.
Please help as what's going wrong? or any settings missing? or Is it expected because of some other settings?