Skip to Content

This blog explains how to reuse Cost Center IDs while replicating Cost Center from SAP ERP to SuccessFactors Employee Central.

 

Scenario

You use SAP ERP system to manage Cost Center information. This might be a separated SAP ERP FIN system or an unified SAP ERP instance.

You configure SAP SuccessFactors Employee Central system (SF EC) to manage employee data.

You need to synchronise the Cost Center information between SAP ERP system and SF EC system.

Optional: You assign Cost Center, replicated from SAP ERP,  to Employee in SF EC and post  this assignment to SAP ERP.

 

Prerequisites

You use the pre-packaged integration “SAP ERP to EC Cost Center Replication” for replication of Cost Center information from SAP ERP to SF EC system.

Optional: You use the pre-packaged integration  for Employee master data replication “EC to EC Payroll Employee Replication” and for the Employee Organizational assignment “EC to ERP Organizational Management” to  replicate Employee data  and Cost Center assignment to SAP ERP.

 

Main Steps

  1. SF EC: check Settings in Cost Center MDF (Metadata Framework) object
  2. SAP ERR: field mapping in IDoc ODTF_CCTR
  3. BOOMI middleware:  set flag in Process Properties
  4. Optional: Replication of EC Cost Center assignment with Employee data.

 

1. SF EC: check Settings in Cost Center object

 

  1. 1.    In SF EC system go to Administration Tools -> Configure Object Definitions.

/wp-content/uploads/2015/07/1_747266.png

  1. 2.    Search for “Object Definition” and “Cost Center”.

/wp-content/uploads/2015/07/2_747267.png

  1. 3.    There are two ID fields “externalCode” and  “costCenterExternalObjectId”.

/wp-content/uploads/2015/07/3_747205.png

  1. 4.    Go to Details of the field

 

If you use  field “costCenterExternalObjectId” check that it is visible.

2.  SAP ERR: field mapping in IDoc ODTF_CCTR

 

The pre-packaged integration uses ERP IDoc (intermediate document)  ODTF_CCTR for replicating  Cost Center. The IDoc is delivered with  AddOn ODTFINCC 600.

The Cost Center IDs are processed in IDoc structure E101ODTF_S_COST_CENTER_DATA.

 

ERP field

IDoc field

EC field

KOSTL (Cost Center)

REMOTE_EXTERNAL_OBJECT_ID

External Object ID (costCenterExternalObjectId)

KOKRS (Controlling area) and

KOSTL (Cost Center)

REMOTE_OBJECT_ID

*is concatenated  from the ERP field KOKRS and ERP field KOSTL

Code (externalCode)

 

Cost Center in SAP ERP:

/wp-content/uploads/2015/07/5_747273.png

IDoc structure E101ODTF_S_COST_CENTER_DATA with data of Cost Center 328:

/wp-content/uploads/2015/07/6_747275.png

You can use the Business Add-Ins (BAdIs) ODTF_CO_REPL_IDOC_COST_CENTERS to modify the fields of the IDoc  e.g. add your logic for field REMOTE_EXTERNAL_OBJECT_ID.

 

3. BOOMI middleware:  set flag in Process Properties

 

If you want to replicate the field  External Object ID (MDF field costCenterExternalObjectId)  you need to set the parameter USE_EXTERNAL_COST_CENTER_ID in BOOMI middleware iFlow “SAP ERP to EC Cost Center Replication”. The field External Object ID is not replicated with Default setting. The field Code (MDF field externalCode) is replicated per Default.

/wp-content/uploads/2015/07/7_747276.png

The field External Object ID will be also replicated to SF EC.

Replicated Cost Center in SF EC:

/wp-content/uploads/2015/07/8_747277.png

4. Optional: Replication of EC Cost Center assignment with Employee data

 

You may assign Cost Center  to Employee in EC Job Info. If you configured the pre-packaged integration  for Employee master data replication “EC to EC Payroll Employee Replication” and for the Employee Organizational assignment “EC to ERP Organizational Management” you have two options to specify what EC field will be used by the integration as a Cost Center ID:

  • EC field External Object ID
  • EC field Code.

If you want to use EC field External Object ID you should change the Parameter in Process Properties  in BOOMI middleware. The default setting uses EC field “Code” as a Cost Center ID.

 

Process “EC to EC Payroll Employee Replication”:

/wp-content/uploads/2015/07/9_747350.png

Process “EC to ERP Organizational Management”:

/wp-content/uploads/2015/07/10_747351.png

Cost Center assignment in Employee Job Information in SF EC:

/wp-content/uploads/2015/07/11_747352.png

In this example I set the BOOMI Parameter to process the External Object ID.

 

The field External Object ID is processed in ERP inbound message:

/wp-content/uploads/2015/07/12_747356.png

If the length of the remote costCenter ID is exactly 14 characters, the integration assumes that the first four characters represent a controlling area (field KOKRS) and the other ten characters represent the Cost Center ID (field KOSTL).

In these cases no additional mapping in table “Cost Centre Key Mapping”  (PAOCFEC_KMAPCOSC)  is required.

 

The inbound processing posts Cost Center assignment in ERP PA (Infotype 0001) and OM (Infotype 1001).

 

Cost Center assignment in SAP ERP Infotype 0001:

/wp-content/uploads/2015/07/13_747357.png

Cost Center assignment in SAP ERP Infotype 1001:

/wp-content/uploads/2015/07/14_747358.png

Please also refer to Integration Guide „Replicating Cost Centers from SAP ERP to Employee Central” on the SAP Help Portal at http://help.sap.com/hr_ec/ -> Integration Content -> SuccessFactors and SAP ERP: Full Cloud HCM.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply