SAP Knowledge Base Article - Public

2950496 - How to add a custom association from a generic object to a Wrapper object as a navigation property in the OData entity - SuccessFactors

Symptom

  1. You've created a custom association from a generic object (such as CostCenter) to a wrapper object (such as Location Wrapper):



  2. It does not appear in the FOCostCenter entity's OData dictionary as a navigation field.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP SuccessFactors HXM Suite
    • OData
    • MDF

Cause

If an association to an FO Wrapper object is defined in an EC2MDF entity such as cost center, the system will hide the navigation for this association by default.

Resolution

The solution is to define the element type mapping for the entity in which the association is defined (we'll keep CostCenter as example).

  1. Make sure you have the correct permissions to view, edit and create (if needed) element type maps (see Employee Central OData API: Reference Guide - Viewing the Element Type Mapping):
  2. Go to Manage Data -> Element Type Map for EC Migration -> costCenter (if no entry is found, create a new Element Type Map):


  3. Add the custom association as defined under the Cost Center object definition:


  4. Perform a metadata refresh and verify that the navigation now appears in the OData dictionary:

See Also

SAP SuccessFactors Employee Central OData API: Reference Guide - Associations

Implementing the Metadata Framework (MDF) - MDF OData API

Keywords

mdf, nav, cust, custom, successfactors, ec, employee central, fields, entities, dictionary, not appearing, doesn't appear, missing , KBA , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , LOD-SF-INT , Integrations , LOD-SF-MDF-API , OData APIs & Integrations , LOD-SF-INT-MDF , Metadata Framework API (MDF) , Problem

Product

SAP SuccessFactors HXM Suite all versions