SAP Knowledge Base Article - Public

2518755 - Business rule for calculating remaining amount as per Calculated Amount

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

  1. 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
    1. SPAllowance = Calculated Amount of MonthlyCTC - (Calculated Amount of BasicSalary + Calculated Amount of CEA + Calculated Amount of HRA) 
  2. 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

  1. Create a pay component group that has the pay component MonthlyCTC.
  2. Create a second pay component that has pay components BasicSalary, CEA and HRA.
  3. 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

Product

SAP SuccessFactors HCM Core 1702 ; SAP SuccessFactors HCM Core 1705 ; SAP SuccessFactors HCM Core 1708