Symptom
An employee is picked up by the validation rule SBP_V2_XX_C045_VR_PY_PAY_LOG even though there are no errors in the current payroll process.
The payroll for the current payroll area completes successfully, but the validation rule still flags the employee.
Environment
- Human Capital Management (HCM)
- SAP enhancement package for SAP ERP
- SAP enhancement package for SAP ERP, version for SAP HANA
Reproducing the Issue
- Employee is transferred from Payroll Area A to Payroll Area B. (A is for weekly, B is for Monthly)
- Execute payroll for Payroll Area B.
- Payroll completes without any errors, but Validation rule SBP_V2_XX_C045_VR_PY_PAY_LOG unexpectedly picks up the employee.
Cause
The employee still has historical payroll log entries stored in database table PYC_D_PY_MSG from a previous payroll process in Payroll Area A. But the inperiod is same with current process period.
As a result, the employee is picked up due to obsolete payroll log records related to the old payroll area.
Resolution
Please Remove the outdated payroll log entry for the employee from table PYC_D_PY_MSG.
You can use PYC_SUPPORT_DEL_PY_LOG_STORAGE
This report allows deletion of payroll log entries related to a specific payroll area and period.
⚠️ Important Note:
The tool deletes the payroll log completely for the specified payroll area and period (e.g., Payroll Area A, Period ZZ).
Ensure the selected parameters are correct before execution.
Keywords
SAP Knowledge Base Article - Public