Skip to Content
Technical Articles
Author's profile photo Prakash Bellamkonda

Exclusion of Employees in Core hybrid Replication

In SAP Standard Employee master data replication from SF EC to SAP HCM using report ECPAO_EE_ORG_REPL_QUERY we have an option to filter employees based on company code or country or Employee Class while sending query to SF EC as shown below,

Query%20Parameters

Query Parameters

But if there is a requirement to filter replication based on PERNR and USER_ID. Find below the approach.

Create a Custom Table ZHR_EMP_REP_FLTR like below.

Table%3A%20ZHR_EMP_REP_FLTR

Table: ZHR_EMP_REP_FLTR

Create a maintenance view ZHR_EMP_REP_FLTV as shown below.

Maintenance%20view%20%3A%20ZHR_EMP_REP_FLTV%20fields%20info

Maintenance view : ZHR_EMP_REP_FLTV fields info

 

Maintenance%20view%3A%20ZHR_EMP_REP_FLTV%20Status%20info

Maintenance view: ZHR_EMP_REP_FLTV Status info

Generate a Table maintenance Dialog with no recording routine as below.

Table%20Maintenance%20Dialog%20%3A%20ZHR_EMP_REP_FLTR

Table Maintenance Dialog : ZHR_EMP_REP_FLTR

 

Create a Transaction code for maintaining the Entries in the Filter table as below.

Transaction%20code%20%3A%20ZHR_EE_FLTR

Transaction code : ZHR_EE_FLTR

Now assign above Transaction code ZHR_EE_FLTR to Master data team as per need.

Master data team will enter employees info needs to filter as part of Employee master data replication in above view using transaction ZHR_EE_FLTR.

We need to create an implicit enhancement ZENH_FILTER_PERNRS in method  GET_BASIC_PERNR_DATA_TAB of SAP standard Class CL_ECPAO_IN_PERNR_OF_EMPLOYEE to do actual employee filter.

Enhancement%20ZENH_FILTER_PERNRS

Enhancement ZENH_FILTER_PERNRS

Filter employee and Populate a message in the code as below to pass info back to SF EC Data replication monitor as below.

Code%20to%20Filter%20and%20Populate%20message

Code to Filter and Populate message

SLG1 Sample log looks like below.

SLG1%20Sample%20log

SLG1 Sample log

So in this way we can exclude employees from replication to SAP HCM as per business need in Core hybrid scenario..

 

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.