SAP Knowledge Base Article - Public

3695204 - Error "Termination failed: Cannot delimit time file validity; employee times exist; cancel times" when terminating an employee

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

  1. Go to the Personnel Administration work center.
  2. Go to the Regular Tasks view.
  3. Select Terminate Relationship with Employee.
  4. Search an employee.
  5. Input mandatory information for the Last Working Day and Termination Category fields.
  6. Choose the Save button.
  7. 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:

  1. Identify the Custom Time Account Adjustment posted with the incorrect future date.
  2. Use the EmployeeTimeAccountsCustomAdjustmentBundleMaintainRequest web service to remove the incorrect entry.
  3. In the payload, set actionCode = 05 to delete the custom adjustment posting.
  4. Perform the removal for one affected employee as a validation step.
  5. After removal, attempt to terminate the employee.
  6. 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

Refer to: error message "cannot delimit time file validity; employee times exist; cancel times" while terminating an employee.

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

Product

SAP Business ByDesign all versions