SAP Knowledge Base Article - Public

2567209 - Object Association: How to create a field that filters based on Termination Reason

Symptom

  • How do I configure a field to capture addition Termination Reason information during the Termination process, and filter the values by the Termination Event Reason that is selected in the Termination UI?
  • How to create a Sub Termination Reason field that filters on Termination Reason using Custom Foundation Objects

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

Resolution

  1. Create the Custom Foundation Object that will be the Child of Termination Reason

    First you must create a Custom Foundation object - make sure it has "Basic" Effective Dating - For guidance on creating Custom Foundation Objects, please refer to article 2285199 - How to create a Custom Foundation Object

  2. Add an association to Event Reason

    Next you need to edit the newly create Custom Foundation Object, and add an association to the "Event Reason Wrapper" object.

    Below is an example of correctly configured Custom Foundation Object for steps 1 and 2 -:

    SubReasonObjectConfig.jpg

  3. Configure the new field for Termination UI

    1. Navigate to Admin Center > Manage Business Configuration
    2. Select the HRIS Element "employmentInfo".
    3. Add a new custom-string field (As explained in the Object Tables Handbook - this can be between custom-string 16 to 20, and custom-string 66 to 90)
    4. Click "Details" for the new field and set -:
      1. Type of Reference Object = Foundation Object
      2. Reference Object = Add the "Code" of the new Custom Foundation Object you had created in step 1
      3. Field Criteria -:
        1. Destination Field Value = The parent field (in this case, set the value to "jobInfo.event-reason")
        2. Source Field Value = The name of the Association on the Custom Foundation Object and .externalCode for example given the above configuration - "cust_toEventReason.externalCode"
    5. Click "Done" and click "Save" to save the configuration. See the below for an example -:

     

    BCUI_config.jpg

  4. Create the Data for the Custom Foundation Object, and then test the filtering works

    Validate that when using the new field, that the expected values are returned.

    Result.jpg

     

See Also

  • 2315265 - Employee Central - Foundation Objects FAQ
  • 2285199 - How to create a Custom Foundation Object
  • 2287729 - Employee Central - Object Association

Keywords

termination reason, termination ui, event reason, association, value help, link, employee central, ec, Custom Foundation Objects, mdf object, custom mdf, employmentInfo, bcui , KBA , LOD-SF-EC-TER , Termination Details , LOD-SF-EC-JOB , Job Information , LOD-SF-EC-FOO , Foundation Objects (Organisation, Pay and Job Structures) , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions