SAP Knowledge Base Article - Public

2579037 - Error During Rule Creation Based on a Custom Sales Cycle Code

Symptom

When you try to create a rule based on a custom code (started with Z character) for a field, you are receiving an error message saying that the data files was not found.

Environment

SAP CLOUD FOR CUSTOMER 1711 / 03

Reproducing the Issue

  1. Go to the Business Configuration work center.
  2. Go to the Overview view.
  3. Search and open “Sales Cycles and Phases”.
  4. Click on Maintain Sales Cycles.
  5. Under Sales Cycle section, click on Add Row to add your custom Sales Cycle.
  6. Save it.
  7. Go to the Sales work center.
  8. Go to the Opportunity view.
  9. Open opportunity XXX (XXX represents the ID of the opportunity).
  10. Click on Adapt --> Edit Master Layout.
  11. Put your mouse arrow above the field you want to create a rule.
  12. A sub-menu will open, click on the wrench icon.
  13. Click on desired Rule hyperlink.
  14. Select the Rule Name.
  15. Under Code section, type condition Root.SalesCycleCode == ZYY (YY represents the ID of the custom Sales Cycle code).
  16. The error “Data field ZYY not found.” appears.

Cause

This is the system expected behavior.

As the ZYY is not a variable, but a string, you need to enclose this value in double quotation marks.

Resolution

  1. Go to the Sales work center.
  2. Go to the Opportunity view.
  3. Open opportunity XXX.
  4. Click on Adapt --> Edit Master Layout.
  5. Put your mouse arrow above the field you want to create a rule.
  6. A sub-menu will open, click on the wrench icon.
  7. Click on desired Rule hyperlink.
  8. Select the Rule Name.
  9. Under Code section, type condition Root.SalesCycleCode == "ZYY".

Keywords

Sales Cycle; Custom; Code; Opportunity; Sales Cycles and Phases; Data field not found; , KBA , LOD-CRM-OPP , Opportunity Management , How To

Product

SAP Cloud for Customer add-ins all versions