SAP Knowledge Base Article - Public

2469605 - Error While Trying to Activate Script File : Identifier ABC Does not Exist

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

  1. Declare the elements in the BO.
  2. Create a script file and try to use the element by using this.ABC.
  3. Right click on the ABSL file and select activate.
  4. Error appears

Please note that the element will not be appearing in the code completion as well.

mass1.PNG

 

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.

 MassEnabled.PNG

Keywords

identifier, does, not exist, mass, enabled, script, PDI, SDK , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions