SAP Knowledge Base Article - Public

2687130 - Validation Rule not working on Clicking Cancel button

Symptom

Validation Rule does not work as expected on Cancel Action and only works for Save action

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Navigate to the required screen ( eg: an Opportunity screen ).
  2. Start Adaptation mode.
  3. Create a Validation Rule for a field OR create a Rule for a Change Property ( such as Mandatory, Visibility etc.) using Rule Editor.
  4. Save and Apply your changes.
  5. Enter Edit mode for the screen.
  6. Click on Cancel button instead of Save Button.
  7. The error message set by the Rule does not come up.

Cause

Validation Rules work only for onSave action means only when clicking Save button.

Resolution

This is expected behaviour.

Keywords

Rule not working, Validation Rule not working, Rule not working on Cancel , KBA , AP-RC-UIF-FLX , Page Layout & Key User Configuration , Problem

Product

SAP Cloud for Customer add-ins 1805 ; SAP Cloud for Customer add-ins 1808 ; SAP Cloud for Customer add-ins 1811