SAP Knowledge Base Article - Public

3106150 - The Description of the Multi Value List cannot be Obtained in the absl

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

  1. Open Cloud Applications Studio 
  2. Open Solution
  3. Open the absl 
  4. Start debugging for your multi value filed while using by using GetDescription()
  5. 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

Product

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