Symptom
- It is not being possible to replicate an employee due to error message:
- Error activating employee assignment at position; see detailed messages
- Save failed
- Employee X (X represents the name of the employee) has more than one position assignment per time frame.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to Master Data Replication Work Center.
- Go to Employees view.
- Search for the employee to be replicated and click Edit.
- Click the Replicate Button.
- Once the replication is processed, the error message appears.
Cause
This might be occurring because already a position assigned for a period exists, and system currently cannot also create this employee as an internal employee at the same time for overlapping period.
Example a) Overlapping time frames as employee and service agent:
The employee had been a service agent for period DD.MM.YYYY-Unlimited and had also been staffed under Cost Center: XYZ (XYT represents Cost Center ID). This has internally created a position for this employee for this period.
With new replication request, the system is now trying to staff this employee as an internal employee again for this period which also created a position but this time it overlaps with the existing one (as a service agent).
In order to check it, please follow the steps below:
- Go to Master Data Replication work center.
- Enter the Employees view.
- Search for the employee and check if there are more than 1 record.
- If yes, select the Last Successful Replication Request.
- Click Edit.
- Go to Organizational Assignment Tab and check the Organizational Assignment validities assigned.
- Go to Employment Tab and check the Work Agreement validities.
- After that come back to Employees view in Master Data Replication work center.
- Search for the employee again and select Last Failed Replication Request.
- Go to Employment Tab and check the Work Agreement validities.
- Here you will see that times are overlapping.
Such issues might also appear, if the stored in the backend does not match the replication.
Example b) Overlapping time frames as employee:
The following situation is found for an employee:
Last Successful Replication:
- Work Agreement End Date: 31.12.2021
Latest Replication Error:
- Work Agreement End Date: 31.12.9999
The backend currently maintains a work agreement date range from e.g. 01.01.2020 to 31.12.2021. However, in the latest replication record, the work agreement End Date of 31.12.9999 has been registered, leading to an error state in the replication process.
Resolution
This is the expected system behavior.
a) Employment and Organizational Assignments information should be such that it does not overlap with the existing one for Service Agent and delimits it first.
b) Ensure that workagreement info is consistent. Ideally and for the given example, the work agreement record in the backend should reflect either an End Date of 31.12.9999 instead of 31.12.2021 or alternatively, a second record with a Start Date of 01.01.2022 and an End Date of 31.12.9999 should exist.
Keywords
Replication, AP-HMD-RPL, HCM , KBA , AP-HMD-RPL , HCM-Master Data Replication , How To