SAP Knowledge Base Article - Public

3004319 - Error "Save rejected because field (Probability) is defined as mandatory by key user." Occurs when Set Opportunity to Lost

Symptom

Error "Save rejected because field (Probability) is defined as mandatory by key user." occurs, however, when opportunity is set to Lost status, it's system standard behavior that Probability will be set to 0% automatically (for this behavior, you can refer to KBA 1925772).

Environment

Since SAP Cloud for Customer 2011

Reproducing the Issue

Prerequisite:

The standard field Probability is defined as Mandatory using KUT tool.

  1. Open an opportuniy which status is not Lost, and the Probability field has value in it.
  2. Click on Actions >> Set as Lost
  3. Save. Then you will see the standard field "Probability" is set to 0%, and the error occurs. 

Cause

This error is an improvement since 2011 upgrade. Basically when Probability is set as mandatory field then it logically shall not be 0. But here in this case when Opportunity Status is set to Lost, value of probability is set to 0 and also it is mandatory.

Resolution

You can simply write a minor rule to achieve this. Rule can be like - When Opportunity is set to Lost then Probability shall not be Mandatory.

Code can be: Root.LifeCycleStatusCode != '5'

Code 5 means Lost. Assign this rule to Probability field. By this we can say that Probability is not mandatory only when status is set to Lost and in other cases it shall be true.

See Also

1925772 - When Changing Status of the Opportunity to Won or Lost Dependent Fields are Automatically Updated

2948869 - Zero (0) Value Considered As Empty For Mandatory Field

Keywords

Opportunity, Probability, Lost, Mandatory , KBA , AP-RC-UIF-FLX , Page Layout & Key User Configuration , Problem

Product

SAP Cloud for Customer core applications 2011