on 12-11-2007 7:41 PM
Hi Gurus,
i am working on SRM 5.0 server 5.5 sp10, standalone scenario.
my requriement is to calculate tax in Shopping cart. We hv a ztable with orgid, tax code, country, % and tax amount. Now i need to calculate tax based on the ztable in the SC. Kindly guide me... its very urgent.. points will be rewarded.
Pl also specify what spro setting has to be maintained to get the ztable values inside the SC. like the defining system for tax calculaltion. Since i dont hv a backend system and they are not using external tax or tte. So i am left with only one option of customer specific implemetation. kindly help me out..
i tried in the po send xml badi
SELECT *
INTO TABLE i_ztax
FROM ztax.
IF sy-subrc = 0.
SORT i_ztax BY zorg_id ztax_code zcountry.
ENDIF.
READ TABLE lt_item
INTO wa_pitem
WITH KEY number_int = wa-item_number.
READ TABLE i_tax INTO wa_tax WITH KEY guid = wa_pitem-guid.
READ TABLE i_ztax INTO wa_ztax WITH KEY zorg_id = orgdata-proc_org_id
ztax_code = wa_pitem-tax_code
zcountry = wa_tax-tax_country.
IF sy-subrc = 0.
cust_item-zztax_code = wa_ztax-ztax_code.
v_itemprice = wa_pitem-quantity * wa_pitem-price.
cust_item-zztax_amt = ( ( v_itemprice * wa_ztax-ztax_amt ) / 100 ).
ENDIF.
Hi,
You can try to carry out customer-specific tax calculation by replacing the function module NOR3_TAX_CALCULATION with your own function module in table BBP_FUNCTION_MAP in the row TAX , Calculate_NOR3, LOCAL, NOR3_TAX_CALCULATION. Note that the interfaces have to correspond.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.