SAP Knowledge Base Article - Public

2716802 - Raise Message - How to prevent users from saving invalid value on Offer Detail/Job Requisition by onChange trigger - Recruiting Management

Symptom

Users want to utilize business rule to raise an alert message and prevent users from saving invalid value.

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

Reproducing the Issue

  1. Create a Raise Message action to raise an Error message if "Base Salary" is lease than 20000 for example:

    1.png

  2. Associate the rule to an Offer Detail Template as onChange trigger:

    2.png

  3. On Offer Detail form, enter "1" in "Base Salary" field:

    3.png

  4. The error message pops up:

    4.png

  5. However, if you click on "OK", the value won't be removed. And the form could be saved without any errors.

    5.png
  6. "Base Salary" field still shows as "1" which is not a valid value

    6.png

Cause

A Raise Error message will not prevent saving the changes

Resolution

  1. Add a "set" action in the Raise Message rule to set the "Base Salary" field to "null" after raising the error message:7.png
  2. The field becomes blank after raising the error message so that users have to provide a valid value:
    8.png

Keywords

onSave, Raise Message, Business Rule, onChange, cannot proceed further, cannot save , KBA , LOD-SF-RCM-RUL , Recruiting Rule Issues with MDF Platform , How To

Product

SAP SuccessFactors Recruiting all versions