Symptom
How to configure a business rule for calculating remaining amount based on Calculated Amount of a pay component in Compensation Information portlet
Environment
- SAP SuccessFactors HCM Suite
- SAP SuccessFactors Employee Central
Reproducing the Issue
You have the following pay components: AnnualCTC, MonthlyCTC, BasicSalary, CEA, SPAllowance, HRA
All these pay components are with Monthly frequency and HRA is calculated based on Basic amount (50% of Basic)
The amount for MonthlyCTC is calculated by an onSave business rule on Compensation Information portlet and it works fine
- Now a business rule for to calculate the pay component amount is added as an onSave rule on Compensation Information portlet with the following expression
- SPAllowance = Calculated Amount of MonthlyCTC - (Calculated Amount of BasicSalary + Calculated Amount of CEA + Calculated Amount of HRA)
- On changing amounts/entering new values for pay components for any user and saving it, we see that even though HRA is calculated correctly the value was not considered for the second rule
Cause
At present it is not possible to use business rules which are based on the field calculatedAmount of the recurring/nonRecurring pay components. This field is recalculated only when the pay components are saved, i.e, which is after all rules are processed.
Resolution
- Create a pay component group that has the pay component MonthlyCTC.
- Create a second pay component that has pay components BasicSalary, CEA and HRA.
- SPAllowance = (first pay component - second pay component) / 12. We divide by 12 because pay component groups are calculated annually.
Keywords
pay_component, pay comp, paycomponentrecurring, compensation, compinfo, comp, calculation, calculus, rule, wrong, incorrect, fail, issue , KBA , LOD-SF-EC-CMP , Compensation Information & One-Time Bonus , LOD-SF-EC , Employee Central , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , How To
SAP Knowledge Base Article - Public