SAP Knowledge Base Article - Public

3220180 - Employee termination not replicating from Success factor to C4C

Symptom

An employee which Is terminated in Successfactor  still remains active in C4C. We have to manually terminate the same employee in C4C. The employment validity end date sent from Success factor via web service is not getting assigned in C4C validity period and it shows unlimited even after successful termination.

Environment

  • SAP Hybris Cloud for Customer Add-ins

Reproducing the Issue

  1. In Employee Central , Terminate Employee ABC  (where ABC is the Employee ID).
  2. Replicate the Employee to C4C.
  3. In C4C go to the Administrator work center.
  4. Go to the General Settings View.
  5. Click on Employees.
  6. Filter based on Active Employees and search for Employee ABC.


Result: Employee ABC will appear as an active Employee.

Cause

In C4C, we rely on Job Information data to decide whether to terminate the Employee or not.

<JobInformation>
  <ValidityPeriod>
  <StartDate>YYYY-MM-DD</StartDate>
  <EndDate>YYYY-MM-DD</EndDate>
   </ValidityPeriod>
 </JobInformation>

As long as there is Jobinformation coming from CPI the C4C will generate unlimited time in the EmployeeReplicationRequest.

Resolution

- In C4C, we rely on Job Information data to decide whether to terminate the Employee or not.

- This is why the internal Interface EmployeeReplicationIn takes the validity data from JobInformation node not the Employment node.

- It's always required to update and deploy the Value Mapping iFlow (Value Mapping for Integration between SAP Cloud for Customer with SAP SuccessFactors Employee Central).

- C4C will terminate the employee only when you do not send any JobInformation data in the payload.

- This happens only when you have required value mappings in CPI for the valuemappinggroup EmployeeStatus.

This is an intended/expected system behavior.

In summary, if the Employee has any active Job Information in SF, then that employee will not be terminated in C4C so validity end date would be picked from that particular Job information node.

Keywords

employee replication, terminated employee, inactive , active employee, employee central, validity, validity dates , C4C , KBA , LOD-CRM-INT-EC , Integration of C4C with Employee Central , LOD-CRM-INT-ERP , Integration of C4C with ERP , How To

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions