Symptom
How to Assign Business Rules For Foundation Object Fields in Corporate Data Model
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
Resolution
In This example We Used : <hris-element id="payGrade">
Step 1: Create a rule:
Rule Configuration : Some general quick reference guidelines - please always refer to the Business Rules section in the Employee Central Core Guide found here:
- View KBA:2277956 - How to create a Business Rule
- Example: rule="PayGrade_onSave_setGradeTxt
Step 2: Add Rule in Corporate Data Model from Via UI using: 3066117 - How to export Data Models?
- Export Corporate Data Model
- Add Your rule under payGrade as seen below in corporate data Model
- Import Corporate Data Model
Example
<hris-element id="payGrade">
<label>Pay Grade</label>
<trigger-rule event="onSave" rule="PayGrade_onSave_setGradeTxt"/>
Important Note: The use of onChange business rules isn't supported for foundation objects > See the relevant section of the help portal here:
Help Portal: Characteristics of Foundation Objects
FAQ - Additional Information
Q) Where can I get information on this from the Guide?
A) Guide: Setting Up Data Models and Managing Configuration
Chapter: Characteristics of Foundation Objects
Guide: Data Model Field Information for Employee Central
Guide- Working with Corporate Data Model and Country/Region-Specific Corporate Data Model in Admin Center
Guide EC Core - Chapter: Rule Scenarios for Employee Central Core
See Also
- 3066117 - How to export Data Models?
- 2315265 - Employee Central - Foundation Objects - FAQ
- 2080139 - How To Import Foundation Objects or Foundation Data - Employee Central
- 2753871 - How to Add Custom Field to a Foundation Object via Corporate Data Model
- 3630218 - Business rule is not working with Foundation Object - Employee Central
-
2449503 - onChange rule in Foundation Object
-
2946429 - Is it possible to attach a rule in Wrapper Objects?
- 2315202 - Employee Central - Data Model XML & UI
- 2753871 - How to Add Custom Field to a Foundation Object via Corporate Data Model
- 2472648 - Using the Check Tool to Check a SuccessFactors Configuration
Keywords
Business Rule, location, pay grade, Foundation Object Fields, Corporate Data Model, Foundation Objects, Custom Objects, Foundation Data, Employee Central, event="onSave" , KBA , LOD-SF-EC-FOO , Foundation Objects (Organisation, Pay and Job Structures) , How To
SAP Knowledge Base Article - Public