SAP Knowledge Base Article - Public

3229172 - Object Is Saved With Invalid Value in Object Value Selector Field

Symptom

You have two OVS (Object Value Selector - which are fields where upon clicking you have a pop up coming up where you can search and select values) fields in a given quick create screen (e.g. Ticket QC) and when you fill in one of the fields with invalid value it throws an error, but if you jump to the second OVS field without resolving the error of the first, the system allows you to save the new object with invalid value of the first OVS field.

Environment

SAP Cloud For Customer

Reproducing the Issue

  1. Start to create an object (can be any object in the system like Tickets, Opportunities, Accounts, etc.).
  2. Fill in some invalid data on OVS field ABC (where ABC can be any field of OVS type). 
  3. Application will validate the field value as invalid and message will show up.
  4. Ignore the message and leave the invalid value in the field.
  5. Go to a second OVS field DEF (where DEF is any other field of OVS type).
  6. Type come correct value there.
  7. Click to Save the new object.
  8. The invalid of the field ABC is saved even though it is invalid.

Cause

OVS fields values are validated individually and one at a time. If you don't resolve the error of the first OVS and jumps to a second, the previous validation is no longer triggered. This is how the UI framework works.

Resolution

You must always resolve the error of the first OVS field before jumping to a different OVS field. So to prevent the issue do as following:

  1. If invalid value is triggered on a first OVS correct it immediately.
  2. After making sure the first OVS is filled correctly you can fill in the next OVS field.

This is a behavior due to the UI framework and can't be changed.

Keywords

OVS; Object Value Selector; Invalid Value; Values; Validation; Save; Saved; Error; Ignored; , KBA , AP-RC-UIF-RT , UI Framework Runtime , How To

Product

SAP Cloud for Customer core applications all versions