I need to calculate tax for a previous date in SalesTaxII.
SalesTaxII holds the current and previous tax rates as well as the effective date of the current rate in its database.
The parameter PIDAT, which is entered in CCYYMMDD format and is passed to the tax calculation engine TCALC, is compared with the effective date to decide which rate to use.
Simply pass the transaction date that you wish to calculate tax for in PIDAT and SalesTaxIIwil return the appropriate rate.
PIDAT should not be confused with the parameter POPER which is the transaction period. POPER is not used in tax calculation and can be different from the period that would be determined from PIDAT.