I was working on project : Replicating Employee Master Data from Employee Central to SAP ERP HCM via CPI.
For this purpose I have used the Standard package available in CPI named: SAP SuccessFactors Employee Central to ERP Employee and Organizational Data. You can simply find them in discovery tab of CPI, And particularly for Employee Master data replication we have to use the Artifact 1 available in this package named: SAP SuccessFactors Employee Central to ERP Employee Data and Organizational Assignment.
For complete configuration step for Replicating Employee Master Data from Employee Central to SAP ERP HCM via CPI https://help.sap.com/viewer/a7f164924edd4dfe817b7bdc2fc4927a/2005/en-US you can follow this configuration guide. I have also taken reference from this configuration guide.
Now I am telling You the common steps which needs to be followed while replicating employee master data from EC to ERP Later in this blog post I will tell you complete configuration steps which is needed to be done in SPRO(SAP ERP HCM) system for the same.
For Replicating Employee Master Data from EC To SAP ERP HCM We have to follow the following steps:
- Prepare the system connectivity of SAP ERP HCM System We need to do the Configurations in Transaction SOAMANAGER for activating inbound and outbound web services.(Generally configurations are done in web service configurations and Simplified Web Service Configuration).
- Install all the root certificates in Transaction STRUST.
- In CPI in Monitoring tab in keystore install all security related certificates and in Security materal tab add all the user credentials for SAP ERP HCM system as well as for SuccessFactors system.
- Open the artifact and do all the configurations like adding the endpoint Urls ,adding credentials and all the other required information.
- Open SuccessFactors and in Manage permission roles ,give access to all the required permissions necessary for replication of Employee master Data from the system.
- In SuccessFactors Create replication Target system object.
- In SAP ERP HCM system do all the customizing activity in Transaction SPRO.(In details discussed below )
- Run the Query( ECPAO_EE_ORG_REPL_QUERY) in Transaction SE38 if connectivity and everything goes well you can see the logs in transaction SLG1 with the required data otherwise you can see the error logs.
All these things are not discussed in details, I will post more blog posts discussing these steps in details.
This Blog post is Particularly about Configurations which are done in SPRO(Integration perspective) T-Code which i think is most essential part in this whole configuration and most of us find this part little difficult and challenging.
Configuration Steps done in Transaction SPRO:
STEP 1: How and where to reach the path where configurations are done.
a.In SAP Easy Access Screen type Transaction SPRO
b. Navigate to path SAP Reference IMG > SAP Customizing Implementation Guide >Personnal Management> Integration with SuccessFactors Employee Central >Business Integration Builder > Basic Settings and Employee Data Integration.
Most of the configuration are done in Basic settings and Employee Data Integration.
STEP 2: System prepratory Steps:
1. Use Decoupled and Not Decoupled IT Framework
This is the system prepratory step.
a. Go to Transaction SPRO
.b. In Group Column add CCURE
c. In Sem. abbr. add PC_UI
d. In Value abbr. Set value to x.
e.In Description add anything relatable (for eg. UI Main Switch)
Reference Resource: https://help.sap.com/viewer/9893854eff274a77b29fc02d3b19b116/1911/en-US/7b686d018ad244d9a957cbf6f108ec1d.html .
2. Activating BIB(Bisuness Integration Builder)
If we want to use this integration it is essential to activate Business Integration Builder Mode
- In your SAP ERP HCM system, go to Customizing for Personnel Management and choose
- In the Constant Name field choose. Activate BIB for EC to ERP Employee Replication.
- In the Constant Value field, enter X.
Reference Resource: https://help.sap.com/viewer/a7f164924edd4dfe817b7bdc2fc4927a/2005/en-US/b1013e17774944158e13ab6dcaf15412.html
3: Allowing replication for payroll areas(optional step)
1. In your SAP ERP HCM system, go to Customizing for Personnel Management and choose 2. In the Constant Name field choose: EC to ERP (BIB / Non-BIB): Allow Replic. in Correction Phase
3. In the Constant Value field, enter X.
Reference Resource: https://help.sap.com/viewer/a7f164924edd4dfe817b7bdc2fc4927a/2005/en-US/4102505ddd0546618e307a6dc2cf4f15.html
STEP 3:This step shows setting up your employee Central Instance
- In your SAP ERP HCM system, go to Customizing for Personnel Management and choose Specify Employee Central Instance ID
2. Enter the ID of your Employee Central Instance and Description.
Reference Resource : https://help.sap.com/viewer/a7f164924edd4dfe817b7bdc2fc4927a/2005/en-US/3f1bfeb350d946a18cb6d01324e8a877.html
STEP 4:Importing Metadata from Employee Central
- First, export the metadata file from the Employee Central System and save it to your desktop.
- In your SAP ERP HCM System go to Customizing for Personnel Management and choose
3. a. Enter your EC Instance
b.Select the EC Entities for which you want to update the MetaData. You can select multiple entries at once also.
c.Select the path of your EC MetaData file from your computer.
In Action Type you can Select the various options:
a.Test Run : To sample run this activity without affecting the Existing MetaData.
b. To update the currently available MetaData.
c. To delete the MetaData.
Note: List of Mandatory Templates and infotypes Required for a Successful Replication of Employee Master Data:(web service based)
WS_2 (Biographical Info Template) WS_3 (Employment Info Template)
WS_4 (Job Info Template)
WS_5 (Personal Info Template)
WS_11(Compensation Template)
Mandatory SAP ERP Infotypes: IT0000(Events and Event reasons) IT0001( organizational assignments) IT0002(personal information)
Reference Resource : https://help.sap.com/viewer/a7f164924edd4dfe817b7bdc2fc4927a/2005/en-US/e5e1e49e32bb4151ac391002d03b5b89.html
STEP 5: In this step we will do all the configuration which is to be done to define Value mapping.
This step maps the field or values of EC Employee Central keys to corresponding keys or values of SAP ERP HCM system. For Example : In EC lets say one Divsion is Highway and in SAP ERP HCM key 0000 is assigned to Division Highway so here in this step we define all the steps to map these keys.
This step replaces the Employee Central field values or keys to corresponding SAP ERP HCM keys.
- In your SAP ERP HCM System go to Customizing for Personnel Management and choose
A. For using Picklist Value From EC you can import the picklist file from your EC System to your SAP ERP HCM System.
1. First Export Picklist from Employee Central. 2. In your SAP ERP HCM System go to Customizing for Personnel Management and choose
a. Select your EC Instance.
b. choose your EC Picklist File from your local computer.
c. Enter the locale of the picklist labels that you want to import.
d. Select the Update Picklist checkbox .
e. Execute it and picklist will be uploaded.
B. Defining Value Mapping Entities:
- In your SAP ERP HCM System go to Customizing for Personnel Management and choose Defining Value Mapping Entities.
- You can copy the sample content for your convenience.
You will get all standard entries and you can modify and adjust according to the needs.
CREATING VALUE MAPPING ENTITIES FROM SCRATCH:
- Enter Name and description of value mapping Entity.
- In value mapping Type Enter weather it is foundation object or picklist lable, option id and so on.
- To use the picklist values that you have imported to SAP ERP HCM from EC you can select from the EC Picklist Id field dropdown.
4. To use available input help values from an infotype field in the value mapping details, specify the SAP ERP HCM value help.
This field is a combination of technical name of the infotype table (such as PA0002) and the technical name of the infotype field (such as GESCH), connected with a hyphen (as in PA0002-GESCH).
- In your SAP ERP HCM System go to Customizing for Personnel Management and choose
- Enter your EC Instance and Value mapping entity you defined in Define value mapping step.
3.Map SAP ERP HCM keys and the corresponding Employee Central keys.
If the value mapping entity has a picklist ID and a SAP ERP HCM value help assigned, you can select suitable picklist values in the EC Key field and corresponding input help values in the ERP Key field.
NOTE: Ask your HCM and EC Consultant to provide you with the list of SAP ERP HCM Keys and corresponding EC keys.
HCM Keys you can get from dropdown and EC Keys if you used picklist and picklist is available you can see it in dropdown values otherwise you can add keys as provided by your consultant.
We will be using these value mapping entities further in our field mapping.
Reference Resources: https://help.sap.com/viewer/a7f164924edd4dfe817b7bdc2fc4927a/2005/en-US/cc35c9ed784645168482b147dc423f64.html
STEP 6:IN THIS STEP WE WILL BE DOING ALL THE FIELD MAPPING:
1. Creating a Transformation Template Group :
A template group bundles all field mappings that you want to use when transferring data from Employee Central to SAP ERP HCM.
- To define template groups, In your SAP ERP HCM System go to Customizing for Personnel Management and choose Employee Data Integration > Define Field Mapping for Employee Data.
2. Go to Define Transformation template group option
3. Enter Name and Description of your transformation template group.
4. In basic Settings:
EC Instance: Enter your EC Instance
Communication Channel: Web Service Transfer
Sample Content: From the dropdown choose your suitable Sample Content for example:EE_WS_2 in above.
5. In ERP/EC Integration :
Define an earliest transfer date:
You can specify this date to start employee data replication at a specific point in time. This prevents the complete history of data records being replicated from Employee Central to SAP ERP HCM. If you define an earliest transfer date for a transformation template group, this date influences effective-dated and non-effective dated templates in different ways.
Check the Enable for Delta Replication Checkbox if you want to use this integration to reflect Delta Changes.
Reference Resource: https://help.sap.com/viewer/a7f164924edd4dfe817b7bdc2fc4927a/2005/en-US/05df545384f840f9a87a342d6c0ea70d.html
2. Defining Templates in Template Group:
You can map fields from the transformation template to fields from the assigned Employee Central entity.
- To define template groups, In your SAP ERP HCM System go to Customizing for Personnel Management and choose Employee Data Integration > Define Field Mapping for Employee Data.
- Go to Transformation Template option.

- To define template groups, In your SAP ERP HCM System go to Customizing for Personnel Management and choose Employee Data Integration > Define Field Mapping for Employee Data.
- Go to Transformation template and select transformation template for which you want to create the primary field mapping.
An easy way to to define your field mapping is to copy the sample content.




- To define template groups, In your SAP ERP HCM System go to Customizing for Personnel Management and choose Employee Data Integration > Define Filtering of Infotype and Subtype for Employee Central
- Enter the infotype field.
- Enter the subtype.
- Enter the country grouping.
- Enter the work-force category.
-
STEP 9: Defining Parameters for the Employee Master Data and Organizational Assignment QueryThis is important step as here we define the parameters for querying the program(ECPAO_EE_ORG_REPL_QUERY) Go to Customizing for Personnel Management and choose
