Hi Experts,
I am using CALCULATE_TAX_ITEM' FM to get the Invoice tab tax details in Smartforms for printing Purchase Order.
When iam trying to see print preview, some time it is giving correct values and some times not.
I have used FM REFRESH_TAX_TABLES to refresh the tax Internal Table but still unable to get the correct values.
if i debug the form then its giving correct values and the same PO im executing directly its not giving correct value.
I have cleared all local variable, structures and internal tables.
Please let me know if anyone faced the same issue in smartforms,
Regards
SK
hi Shaik Basha
Please make sure dat u are using :
RV_PRICE_PRINT_ITEM' and 'J_1B_NF_PO_DISCOUNTS' prior to CALCULATE_TAX_ITEM' It makes the necessary arrangements regarding the Company code and other details .
Or you could refer the standard coding for the Calculation of Taxes for the line items it also usually follws the same sequesnce .
Hope it helps .
Regrards
Swapnil
Hi,
U can get the conditon valuse using FM this will give give correct figures always. ( Make sure that Your conditions are not statistical).
wa_komp-kposn = wa-ebelp.
wa_komp-werks = wa-werks.
wa_komp-matnr = wa-matnr.
wa_komp-matkl = wa-matkl.
wa_komp-meins = wa-meins.
wa_komp-mglme = wa-menge.
wa_komp-wrbtr = wa-netwr.
wa_komp-mwskz = wa-mwskz.
wa_komp-mtart = wa-mtart.
wa_komk-txjcd = wa-txjcd.
wa_komk-mwskz = wa-mwskz.
wa_komk-mandt = ekko-mandt.
wa_komk-knumv = ekko-knumv.
wa_komk-aland = ekko-lands.
wa_komk-bukrs = ekko-bukrs.
wa_komk-hwaer = ekko-waers.
wa_komk-waerk = ekko-waers.
wa_komk-lifnr = ekko-lifnr.
IF ekko-bsart NE 'ZNB4'.
wa_komk-kappl = 'TX'.
ELSE.
wa_komk-kappl = 'M'.
ENDIF.
IF ekko-bsart NE 'ZNB4'.
wa_komk-kalsm = t005-kalsm.
ELSE.
wa_komk-kalsm = ekko-kalsm.
ENDIF.
wa_komk-prsdt = ekko-bedat.
wa_komk-ekorg = ekko-ekorg.
SELECT SINGLE j_1ichid
FROM j_1imtchid
INTO wa_komp-steuc
WHERE matnr = wa_komp-matnr
AND werks = wa_komp-werks.
CALL FUNCTION 'PRICING'
EXPORTING
calculation_type = 'B'
comm_head_i = wa_komk
comm_item_i = wa_komp
IMPORTING
comm_head_e = wa_komk
comm_item_e = wa_komp
TABLES
tkomv = i_komv.
Hi Shaik,
I am stuck with the same issue can you please gimme the solution for FM CALCULATE_ITEM_TAX.
This function module is giving the wrong answer.
Have gone through the number of links but none of them gave the solution
Any help would be appreciable.
Thanks & Regards,
Akshay Ruia
Add a comment