SAP Knowledge Base Article - Public

2420396 - How to set the Amount of one Pay Component, based on the combined Amount of 2 other Pay Components

Symptom

How do I set the amount of one Pay Component, to be equal to the combined amount of 2 other Pay Components?

Environment

Employee Central 2.0

Pay Scales

Reproducing the Issue

The requirement is that we use Pay Scales feature to set 2 of the Pay Components and then we calculate the combined amount of these 2 Pay Components and set it as the amount in a 3rd Pay Component

Resolution

To achieve this requirement, you will need to also add the 3rd Pay Component using the Pay Scales feature (same way as you are adding the other 2 Pay Components) as it makes it easier to propagate the Amount, Frequency and Currency. Ensure you set the Amount of this 3rd Pay Component to 0 (do not leave it NULL).

Then you need to create a Business Rule that will have Base Object "Compensation Information" (compInfo element) and the onSave trigger be set on the compInfo element configuration in the Business Configuration UI (Admin Center > Manage Business Configuration).

The logic of the rule is to make sure we accurately identy the amount of the Pay Component we need to adjust, and also the amount that is related to the 2 other Pay Components we need to combine. Therefore we need to make use of the "Select where" function in the rule. Note: You will not see this function if you use the Base Object "Compensation" (payComponentRecurring element) which is expected behaviour, and why we set the Base Object of this rule to Compensation Information (compInfo).

Example Rule:

 

SetPayComponentValue_BaseOnOtherPCs.jpg

 

 

Example result after saving:

Result.jpg

Keywords

Pay Scale, Compensation, compInfo, rules, business rules, bcui, Employee Central , KBA , LOD-SF-EC-CMP-RUL , Business Rules , How To

Product

SAP SuccessFactors HCM Core all versions