Symptom
You wish to calculate a Service Length Using a Custom Field and maintain this information in the Employment Detail Information Portlet
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
Employee Central - Business Rules
SAP SuccessFactors HCM Suite
Resolution
This kind of calculation is possible with Employee Central, on instances without Employee Central such calculation will not be possible.
Step 1:
- Go to Manage Business Configuration
- Click on employmentInfo
- Select Custom-double
- Save
As seen below
Step 2: Grant a Permission
- Open the Permission Role for user whom you like to grant access to all jobs.
- Click on Permission
- Under Employee Data: Grant Permission
- Click on Save Changes.
Step 3:
- Create Rule - View in Edit Mode
View Rule
Step: Add Rule to Manage Business configuration or BCUI
- Go to Manage Business Configuration
- Click on employmentInfo
- Select above rule
- Save
View Code in Succession Data Model XML
<hris-element id="employmentInfo">
<label>Employment Details</label>
<label xml:lang="en-US">Employment Details</label>
<trigger-rule event="onView" rule="Calculate_length_in_Service"/>
Example:
- Hire date: 24/05/2013
- Length of service Today:19/03/2018
PS: Do not use model rules, please use employmentInfo (Employment Details) base object.
See Also
- 2345108 - How to - Creating a Business Rule to Calculate Age
- 2577292 - How to calculate age on a specific event date in Online Report Designer?
- 2283381 : Calculated / Transient fields are inconsistent or blank in reporting.
- 3003502 : MDF object Transient Field is not Reportable in Adhoc Report and Advance Reporting (Report Canvas) Reports.
- 2339132 - Is it possible to create a report on "Compa Ratio and Range Penetration" - Report Table
- 2559179 - Compa Ratio and Range Penetration report - Advanced Reporting
- 2283381 - Calculated / Transient fields are inconsistent or blank in reporting
- 2602486 - Rule trace not capturing logs for all rules
- 2472648 - Check Tool: How to check your SuccessFactors configuration
- 3319018 - How To Enable Feature Data Inspector
- 3091459 - Service Layer Logger FAQ
Keywords
Business Rules, Calculate Service Length, Custom Field, custom-double, Employment Detail, Years of service, seniority, Age, Calculated , Transient fields , KBA , LOD-SF-EC-EMP , Employment Information (Employment Details) , LOD-SF-PLT , Platform Foundational Capabilities , LOD-SF-EC-PER , Person Data (All Person Data Types) , LOD-SF-EC-ROD , Advanced Reporting (Employee Central ODS/ORD) , How To
SAP Knowledge Base Article - Public