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
- Go to the Business Configuration work center.
- Go to the Overview view.
- Search and open “Sales Cycles and Phases”.
- Click on Maintain Sales Cycles.
- Under Sales Cycle section, click on Add Row to add your custom Sales Cycle.
- Save it.
- Go to the Sales work center.
- Go to the Opportunity view.
- Open opportunity XXX (XXX represents the ID of the opportunity).
- Click on Adapt --> Edit Master Layout.
- Put your mouse arrow above the field you want to create a rule.
- A sub-menu will open, click on the wrench icon.
- Click on desired Rule hyperlink.
- Select the Rule Name.
- Under Code section, type condition Root.SalesCycleCode == ZYY (YY represents the ID of the custom Sales Cycle code).
- 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
- Go to the Sales work center.
- Go to the Opportunity view.
- Open opportunity XXX.
- Click on Adapt --> Edit Master Layout.
- Put your mouse arrow above the field you want to create a rule.
- A sub-menu will open, click on the wrench icon.
- Click on desired Rule hyperlink.
- Select the Rule Name.
- 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 ; SAP Cloud for Customer core applications all versions