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

  • Workaround of KBA: 2601695 - "onSave" trigger for RCM not working
  • Rules having Raise Message action are not executed on onSave trigger in RCM
  • 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 meessage if "Base Salary" is lease than 20000

    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

  • Due to the current system behavior, rules having Raise Message action are not executed on onSave trigger in RCM as it is not supported.
  • onChange rule can be used to raise an Error message instead, but it won't prevent saving the changes

Resolution

Add a "set" action in the Raise Message rule to set the "Base Salary" field to "null" after raising the error message

7.png

The field becomes blank after raising the error message so that users have to provide a valid value

8.png

See Also

2601695 - "onSave" trigger for RCM not working

Keywords

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

Product

SAP SuccessFactors Recruiting all versions