SAP Knowledge Base Article - Public

2768480 - Workflow Rules are not triggered when the BO to be updated is opened in Edit Mode

Symptom

You have configured a workflow rule to update a field. The workflow rule works fine without opening the BO where the field should be updated in Edit mode. However, when you open the object in Edit mode, the workflow rule is not triggered.

Environment

SAP Cloud for Customer

Reproducing the Issue

These steps are only an example. The same can happen in any other BO.

  1. Go to the Customers work center.
  2. Go to the Accounts view.
  3. Open an account.
  4. Create an extension field based in the CUSTOMER BO (in the Field Properties you can see "Account-General Information") and then placed the field in Sales Data facet.

    FieldProperties.png

    ExtField_CUSTOMER_BOpng.png

  5. Create a workflow rule to update this field. You can also create a workflow rule for Accounts BO and for the Sales Data BO

    WKF_SD.png

  6. Open an account.
  7. Do NOT click Edit.
  8. Add the conditions that should make the workflow rule be triggered (in this case, we click New in the Sales Data facet and we add the sales org maintained in the workflow rule).
    RESULT: The workflow rule is triggered and the extension field selected.
  9. Delete the sales organization that you added previously.
  10. Click Edit.
  11. Add the same conditions that should make the workflow rule be triggered.
    RESULT: The workflow rule is NOT triggered and the extension field NOT selected.

Cause

When we enter in edit mode, we are locking the Business object (in this case, the Accounts BO). It is not possible to update any field which relies on a business object which is locked. Hence, the workflow rule will not be triggered.

In this case, the Extension field relies on the CUSTOMER BO although the customer is displaying the field in the SALES DATA facet (which could make us think that it is the SALES_DATA BO).

Resolution

You have main options:

- Do not lock the BO (by opening the EDIT mode) where the field should be updated.
- You create the extension field based on another BO from the one you are locking.

See Also

2517486 - Account Field Update Worflow Rule with Sales Data Conditions does not Work

Keywords

lock, BO, sales data, accounts, update, workflow rule, extension field, , KBA , LOD-CRM-WKF , Workflow , How To

Product

SAP Cloud for Customer add-ins all versions