Symptom
You are receiveing the below errors when trying to activate an .ABSL file:
- Identifier ABC does not exist (Where ABC is an element which you have already declared in the BO definition).
Environment
- SAP Cloud Applications Studio
- SAP Cloud for Customer
- SAP Business ByDesign
Reproducing the Issue
- Declare the elements in the BO.
- Create a script file and try to use the element by using this.ABC.
- Right click on the ABSL file and select activate.
- Error appears
Please note that the element will not be appearing in the code completion as well.
Cause
The script file you have created cannot be mass enabled. If it is mass enabled, then the word this will refer to a collection of instances.
From 1705 release, all the script files are mass enabled by default to enhance system performance.
Resolution
In order to resolve this issue you should follow either of the below procedure:
1. You should use GetFirst() function in your script.
Example: this.GetFirst().ABC;
Or
2. When you try to create a script file you have to de-select the check box for Mass Enabled.
Keywords
identifier, does, not exist, mass, enabled, script, PDI, SDK , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To