SAP Knowledge Base Article - Public

2968735 - How to use Business Rules to Sum Field Values - Recruiting Management

Symptom

  • This article describes how to use Business Rules in Recruiting to sum values from Number Type fields.
  • The same rule structure can be applied to Job Requisition, Candidate Profile, Job Application and Offer Letter.
  • This rule will only be executed on the UI.
  • Notice that the article intends to show the Business Rule feature capability and let the users be more familiar with the tool. The rule described can have different behaviors on different system. Please reach out to your Implementation Team and/or Partner for implement the same if you are having any issues with it.

"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 Recruiting Management

Resolution

Rule to sum values from Numeric Fields:

  • It's possible to define this rule structure to all 4 Recruiting templates. Please, make sure to select the correct template while creating the rule.
  • When selecting a template, you will only be able to work within the selected scenario. For example, if you create a Candidate Profile rule and you want to have the same on the Job Application, you must create a Job Application rule as well.

IMPORTANT:

  • Candidate Profile and Job Application rules are not supported when Mobile Apply is enabled. Business Rules for Mobile Apply are on road map and will be enhanced on further releases (2866437 & 2781775).
  • The sum function only applies to Number Field types.

Sample Case:  Sum the values from the different fields into a fourth one.

Base Object:  Job Requisition

Trigger Event: OnSave

Steps to create the rule:

  1. Go to Configure Business Rules and click Create New Rule.
  2. Select Recruiting option and choose Configure Business Rules on Job Requisition.
  3. Type the Rule Name and Rule ID.
  4. You can leave the Start Date as it is.
  5. Description if desired.
  6. Select the Base Object.
  7. Select a Purpose (Field Change: the rule triggers when a field is changed, Save: Rule triggers when saving the Requisition, Initialize: The rule triggers on the initial creation page when first creating the requisition)
  8. Click Continue.

  9. On "IF" parameter, set it as "Always True", so this rule will be always be executed no mattering a condition.

  10. On "THEN" parameter, you will define the actions of the rule:

    A. Set Standard Job Requisition.Field of your choice to be equal to Add Multiple()
    B. Use the "+" to add new fields

    NOTE: The field in the "Set" condition will be where the sum will appear. For example, in the below image, the results from the sum of the field 1, field 2 and field 3 will appear at the field 4.



  11. Save the rule. You will be able to modify it anytime.
  12. Go to Manage Rules in Recruiting
  13. On Candidate section, set the rule on "onSave" event. Click save to apply the changes.

See Also

2866437 - Business Rules on Job Application are not triggering - Recruiting Management

2781775 - Business rules are not getting triggered for Candidate Profile - Recruiting Management

2618607 - Manage Rules in Recruiting Management

2704222 - Business Rules Are Not Being Saved - Recruiting Management

2913809 - How to use Business Rules to Validate Field Value Format and Length - RCM

2919193 - How to use Business Rules to Validade Candidate Age - Recruiting Management

2921494 - How to Use Business Rules to Disqualify a Candidate Based on Field Values (Pre-Screening) - RCM

2914208 - How to use Business Rules to Validate Field Value Format with Special Characters and Length - RCM

Keywords

Business, Rules, Recruiting, Rule, Add, Sum, Calculate, Number , KBA , LOD-SF-RCM-RUL , Recruiting Rule Issues with MDF Platform , How To

Product

SAP SuccessFactors Recruiting all versions