Create at least one transformation template group in SAP S∕4HANA to group transformation templates for different object types, which in turn contain the actual field mappings.
Prerequisites
You've created an Employee Central instance in SAP S∕4HANA.
Create Transformation Template Groups for Organizational Object Replication from Employee Central
You can create one template group if you want to replicate all object types together, or several template groups if you want to replicate the object types separately.
The transformation template group is the entity that you specify on the selection screen of the Create and Execute Organizational Object Replication Query (RH_SFIOM_ORG_OBJ_REPL_QUERY) program. From the template group, the program determines all information it must extract data from Employee Central fields and map it to SAP S∕4HANA fields.
Create Transformation Templates for Organizational Object Replication from Employee Central
The transformation template is the SAP S∕4HANA counterpart of the Employee Central entity. It groups fields from SAP S∕4HANA and mappings of these fields to Employee Central fields.
- Go to Customizing for the Business Integration Builder and choose Data Replication from Employee Central→Organizational Objects→Field Mapping for Organizational Object Replication from Employee Central→Define Field Mapping for Organizational Data.
- Select your transformation template group and choose Transformation Template.
- Optional: If you want to have the transformation templates for the default Employee Central entities created automatically, choose Copy Sample Content.
- Optional: To make the sample mappings show up in the Primary Mapping and Secondary Mapping views, choose Save.
- Choose New Entries to create a transformation template manually.
- Enter an ID and a name.
Transformation templates aren't self-contained objects. They only exist within a transformation template group. We recommend that you use the same name for transformation templates created within different template groups if they refer to the same entity. For example, if you create two template groups that both have a transformation template for Department, use the same template ID (such as ERP_DEP) in both template groups.
- To enable your transformation template, select Is Active.
- Select the Employee Central entity that corresponds to the transformation template.
Adding the Employee Central entity enables you to choose the Employee Central fields of the corresponding object type, which you've imported as metadata from Employee Central. You can map these fields to SAP S∕4HANA fields. If you create a transformation template for one of the default object types, assign the standard Employee Central entity provided for the corresponding object type. For all other transformation templates, use the custom Employee Central entity that you've created before.
Use the same Employee Central entity (or rather the same transformation template to which you assigned the Employee Central entity) in only one transformation template group. If you use a transformation template and Employee Central entity in multiple template groups, queries of the Last Modified Query type run into an error. The error message is: "Query for EC instance <Employee Central instance>, EC entity <Employee Central entity> already sent for templ. grp <transformation template group>"
- To populate the Communication Channel, Entity Name in EC, and Effective Dated fields, press Enter. These fields are automatically filled in with information that comes from the Employee Central entity you've selected.
- Save your entries.
- Choose New Entries again and repeat the same steps to create more transformation templates.
Create a template for each object type that you want to include in the replication.