SAP Message 5I038 - Payroll area & cannot be changed before & because advance payment exists

Diagnosis
Check if date is not before end-date of latest date paid in advance.

Procedure
The payroll area cannot be changed before theend-date of latest date paid in advance. Change the payroll area, oncethe advance payment is run and payroll exited.