2010 Dec 24 6:08 AM
Hi expert,
I am using calculate_tax_item function module for calculating tax for purchase order in item wise. If the purchase order having only one item means its showing result correctly...but if the purchase order having two item means it takes 1st item also after i refreshed that internal table... i don't know how to reset that function module but option is there to reset...its not working after i gave reset = 'X'. Guide me to solve this issue...
Regards,
Rathish
2010 Dec 24 6:45 AM
Use FM 'REFRESH_TAX_TABLES' which belongs to the same Function Group 'TAX1' to which FM 'CALCULATE_TAX_ITEM' belongs. Call FM 'REFRESH_TAX_TABLES' before calling FM 'CALCULATE_TAX_ITEM' so that all the internal tables used by the Function Group are refreshed and new set of item details are used.
2010 Dec 24 6:14 AM
Hi,
Refer the below link
http://wiki.sdn.sap.com/wiki/display/Snippets/FunctionModuletoCalculateTaxinPurchaseorderbasedoncondition+type
2010 Dec 24 6:35 AM
i wrote on that way of coding but my problem is calculate_tax_item function module having buffer of previous values so my result went wrong..i used refresh to clear the entries in internal table but when looping for second item in purchase order i get the first item also with second item in internal table..
2010 Dec 24 6:45 AM
Use FM 'REFRESH_TAX_TABLES' which belongs to the same Function Group 'TAX1' to which FM 'CALCULATE_TAX_ITEM' belongs. Call FM 'REFRESH_TAX_TABLES' before calling FM 'CALCULATE_TAX_ITEM' so that all the internal tables used by the Function Group are refreshed and new set of item details are used.
2010 Dec 24 6:56 AM