Symptom
The description of the multi value list cannot be obtained in the absl.
Environment
- SAP Cloud for Customer
- SAP Cloud Applications Studio
Reproducing the Issue
- Open Cloud Applications Studio
- Open Solution
- Open the absl
- Start debugging for your multi value filed while using by using GetDescription()
- No description will return
Cause
There's the technical limitation. This function will only pass a description for a single value and will not pass multiple descriptions as a string.
Resolution
Please kindly check the following sample code as the workaround.
import ABSL;
var Multivalues =this.Multi;
this.Multi.Clear();
var x = 0;
var Text = "";
while(true){
var ItemCode = Multivalues.Substring(x, 3);
if (ItemCode.IsInitial() || ItemCode == ""){
break;
}
this.Multi = ItemCode;
var Description = this.Multi.GetDescription();
Text = Text + "," +
Description;
x = x + 4;
}
this.Multi = Multivalues;
Keywords
GetDescription(); GetDescription; PDI; Multi Value List; , KBA , code list , codelist , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To