SAP Message 5G667 - P45 tax paid could not be validated due to errors in tax calculation

Diagnosis
The amount of previous tax paid copied from form P45 needs to bevalidated. However, the check could not be perfomed due to an error intax calculation.
The error is caused by an incorrect or missing setup of the taxcalculation system in tables T511K, T5GT2 or to the usage of an unknownpayroll type, i.e. different form weekly, monthly, lunar, ...

System Response
The system does not validate the amount of previous tax paid copiedfrom form P45.

Procedure
In order to enable a correct validation as well as a correct taxcalculation in payroll, check your system settings in tables T511K andT5GT2 as well as the type of payroll used.