SAP Knowledge Base Article - Public

3803197 - How To Add a Custom Field To Event Reason Foundation Object

Symptom

  • Requirement to add an additional field in the "Event Reason" object and clarification whether this is possible via Corporate Data Model upload/download

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 Employee Central
  • Foundation Objects (Organisation, Pay and Job Structures)
  • SAP SuccessFactors Employee Central - Foundation Object

Reproducing the Issue

  1. Identify the need to add an additional field to the Event Reason foundation object.
  2. Update the Corporate Data Model to include a new HRIS-field for the Event Reason.
  3. Upload the updated Corporate Data Model.

Cause

Resolution

Adding a custom field to a Foundation Object via the Corporate Data Model is supported.

Example Custom String field:

<hris-field max-length="256" id="custom-string1" visibility="none">

    <label>Custom String1</label>

   <label xml:lang="en-GB">Custom String 1</label>

    <label xml:lang="en-DEBUG">Custom String 1_Lbl#8</label>

</hris-field>

Step 1: Export Corporate Data Model Using: 3066117 - How to export Data Models?

Step 2: Add custom Field

Scroll down to <hris-element id="eventReason"> and add below code

hris-field max-length="256" id="custom-string1" visibility="both">

      <label>Add custom field for event reasons</label>

     <label xml:lang="en-GB">Add custom field for event reasons</label>

     <label xml:lang="en-DEBUG">Add custom field for event reasons</label>

     <label xml:lang="en-US">Add custom field for event reasons</label>

  </hris-field>

Step 3: Import Export Corporate Data Model Using: 3066117 - How to export Data Models?

Step 3: check result under Manage Organization, Pay and Job Structures

  • Go to Manage Organization, Pay and Job Structures
  • check event reason

View Result:

FAQ - Additional Information

Q) Where can I get Guide?

A) Guide: SAP SuccessFactors Data Model Reference Guide

Chapter: Working with Corporate Data Model and country/region-specific Corporate Data Model in Admin Center

Q) Where can I get Employee Central Master Data Models?

A) Employee Central Master Data Models

This zip file contains the Corporate Data Model, country/region-specific Data Model, Succession Data Model, and the country/region-specific Succession Data Model

See Also

  • 0002274816: How to Create An Event Reason
  • 0002285199: How to create a Custom Foundation Object
  • 0002567209: Object Association: How to create a field that filters based on Termination Reason
  • 0002245063: Rename Field to change display name does not take affect 
  • 2080801 - How to update Foundation Objects, and the respective Employee Data - Employee Central
  • 2551350 - How to Update Generic Objects and the Respective Employee Data - Employee Central
  • 2079466 - Managing Foundation Object Translations - Employee Central
  • 2740031 - Label remains with old value on Employee Export after being changed on Manage Data.- Employee Central
  •  3153500 - How to Download Data Models, Picklists and other configuration files for Employee Central - SAP SuccessFactors 

Keywords

event reason, custom field, foundation object, corporate data model, hris-field, employee central, xml import, data model upload, data model error, event reason category, organisation pay and job structures, ec foundation objects, configuration, manage organization pay and job structures , KBA , LOD-SF-EC-FOO , Foundation Objects (Organisation, Pay and Job Structures) , How To

Product

SAP SuccessFactors Employee Central all versions