Symptom
Error when terminating employee due to the wrong custom adjustment posting done in the future date for employees
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to the Personnel Administration work center.
- Go to the Regular Tasks view.
- Select Terminate Relationship with Employee.
- Search an employee.
- Input mandatory information for the Last Working Day and Termination Category fields.
- Choose the Save button.
- Observe the error message: "Termination failed. Cannot delimit time file validity; employee times exist; cancel times."
Cause
- Employee terminations fail when Custom Time Account Adjustments are posted with a future date. Even after corrective uploads are performed to reverse or zero out the adjustments, the future-dated postings may still remain visible in the employee time profile. This can block termination processing and may also cause errors in downstream payroll integrations.
- The system does not allow the termination of employees with any active time transactions recorded after their termination date. Even if the adjustment is set to zero, the status remains active, preventing termination.
Resolution
Remove the incorrect future-dated Custom Time Account Adjustment using the same web service that was used to post the original adjustment.
Steps:
- Identify the Custom Time Account Adjustment posted with the incorrect future date.
- Use the EmployeeTimeAccountsCustomAdjustmentBundleMaintainRequest web service to remove the incorrect entry.
- In the payload, set actionCode = 05 to delete the custom adjustment posting.
- Perform the removal for one affected employee as a validation step.
- After removal, attempt to terminate the employee.
- If termination is successful, repeat the same steps for all affected employees.
Sample Payload for reference
The sample payload is below :
<n0:EmployeeTimeAccountsCustomAdjustmentBundleMaintainRequest_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<BasicMessageHeader>
</BasicMessageHeader>
<EmployeeTimeAccountCustomAdjustments actionCode="05">
<ObjectNodeSenderTechnicalID>Token 14</ObjectNodeSenderTechnicalID>
<ChangeStateID/>
<UUID/>
<EmployeeID>XXXX</EmployeeID>
<PostingDate>YYYY-MM-DD</PostingDate>
<TimeAccountTypeCode>AAAAA</TimeAccountTypeCode>
<Quantity unitCode ='HUR'>10</Quantity>
</EmployeeTimeAccountCustomAdjustments>
</n0:EmployeeTimeAccountsCustomAdjustmentBundleMaintainRequest_sync>
Note: XXXX - Employee ID, AAAAA - Time Account Typecode
See Also
Keywords
termination error, employee termination, custom adjustment, time account, active time transaction, future date adjustment, termination failed, cannot delimit time file validity, cancel times, action code 05, time account adjustment removal, SAP Business ByDesign , KBA , SRD-HR-TLM , Time and Labour Management , Problem
SAP Knowledge Base Article - Public