cancel
Showing results for 
Search instead for 
Did you mean: 

Employee Central Payroll Replication with Legal entities as filter

former_member110706
Participant
0 Kudos

Hi All,

In our organization, we have two legal entities A and B, we are replicating only users of Legal Entity A to the EC Payroll system.

However, we have a few employees, who are initially hired in Legal Entity B, terminated for some reason and then rehired in Legal entity A.

The issue here is, we are maintaining payroll-related data in Job information for only Legal entity A employees to replicate them to the payroll system.

For Legal entity B employees, there is no data maintained in these fields and it's totally irrelevant for Legal entity B employees.

Now when replication takes place, the system is showing up errors, asking us to fill in the data even for those periods when the employee worked under Legal entity B.

Can anyone suggest how to overcome this issue.?

Our expectation is the system should only replicate those Job information records when the user is under Legal Entity A.

Kindly advice.

Accepted Solutions (0)

Answers (3)

Answers (3)

nlgro023
Active Contributor

I fear that restricts your options a lot as your screenshot also indicates the limited amount of fields to select from.
The issue is then in fact that, even though you are filtering on 160000000000, you are also getting the records from the unwanted entity on top of that (as the compound API commonly queries on person?
If that is the case, unless you get some severe customization on the back-end potentially via the regular GUI even, I don't see an easy way of dealing with that unless you go for rehires with new ID's.

former_member110706
Participant
0 Kudos

Dear Jasper,

Thanks for your response.

Per our company policy, we are not supposed to rehire employees with different IDs

So, can you please let me know where exactly should we add the customizations so that the system queries only required employee records filtering the unwanted Job info entries?

Do we need an ABAPer for this and where exactly should we add the logic?

Kindly advice.

nlgro023
Active Contributor

Changing the query as shown here: SAP SuccessFactors EC-ECP Employee Data Replications – Part IV | SAP Blogs doesn't do the trick for you?
Because at first glance it would sound like you may need to change that query (or maybe also review the way you deal with those users in the system, i.e. instead of transfer do a termination and then a rehire).

former_member110706
Participant
0 Kudos

Hi Jasper,

Thanks for your response,

Yes, that is exactly what we have done, we have first terminated the employee and then rehired them.

The employee moves from unwanted Legal entity B to our main Legal entity A from where his records should get replicated. But here the system shows up error.

Also,I have not added any codes as mentioned in the blog post that you shared.

I have added my Legal entity under Configure Compunt Employee API query

We are using PTP replication framework.

sanjaykwadhwani
Participant
0 Kudos

Hi Hari,

You need the first hiring action in ECP.

In EC

  • Hiring action is for Legal Entity B
  • Rehiring action is for legal entity A.

In ECP

  • you are not replicating data for legal entity B
  • And there is no hiring action for legal entity A.

In your case when employee is rehired in EC it is basically a hiring action in ECP because employee was not hired earlier in ECP.

Suggestion - In addition to existing one; create a new event reason which is a rehiring in EC. In P2P mapping table map this new rehire event in EC as a hiring action in ECP. Use the new rehiring event reason in EC only for such instance.

Hope it helps!

Regards

Sanjay

former_member110706
Participant
0 Kudos

Dear Sanjay,

Thanks for your response.

I have already mapped my rehire event of EC to Hire event of ECP.