2189891 - How to upsert multiple LegalEntities to a cost center using the FO_CostCenter API

SAP Knowledge Base Article - Public

2189891 - How to upsert multiple LegalEntities to a cost center using the FO_CostCenter API

Symptom

1. Cost Centre is associated to multiple Legal Entities. Where LE-1(01) and LE-2(11) are two legal entities associated to Cost Centre.

     CC_Multiple_LE.png

2. When an upsert call is made to a SFAPI entity FO_costCenter, the existing Legal Entities are wiped off and the Legal Entity LE-3(63) which is sent in the SFAPI call is upserted successfully.

   Updated_CC.png

  

Environment

Successfactors Employee Central

Cause

  • Logon to successfactors system,
  • Go to admin tools-> Integration tool->SFAPI audit logs
  • Check the corresponding SOAP Request.
  • We can see from the below log that, only one Legal Entity is being sent in the request and the parameter used is incremental purge:

  upsert_req.png  

This is the Root Cause for the issue.   

Resolution

This is expected product behaviour.

To Upsert the new value without wiping off the current Legal Entities, the request should be sent in the following format.

Provide 3 value for the field with '|' as the separator.

For Example:
'01|11|63' should be the correct value.

 Correct Req.png

 

CostCenter Upserted Successfully.

 upsereted_succ.png

Keywords

KBA , LOD-SF-INT-EC , EC SF API/OData Entities , Problem

Product

SAP SuccessFactors HCM Core all versions