cancel
Showing results for 
Search instead for 
Did you mean: 

Read list entries of standard "Code"-data types in ABSL

former_member201819
Participant

Hi Experts,

I would like to display a subset of codelist values in a UI-table, so that a user can select one or more values via checkbox. About like this:

Here, it is the standard data type DistributionChannelCode. I would like to have the same for the standard "Code"-data type PartyRoleCode.

For the example above, I derived the distinct values via ABSL from specific values assigned to a set of Products. But this seems unneccessary as the codelist is already "somehow" attached to the data type: You can display the list on the UI by binding the data field with that "Code"-data type to a dropdown:

My question:
How can I access the static value-list of a ByD-standard "Code"-Data Type in ABSL?

>> Like, for example, PartyRoleCode.GetValueList()

Thanks,
Pablo

Accepted Solutions (0)

Answers (3)

Answers (3)

Suchita92
Participant

Hi pablo.menth ,

If its a std. data type, you can read its list in the ABSL as follows.

This is based on an answer provided by Saurabh on this question . Hope this helps.

import ABSL;
import AP.PlatinumEngineering;
import AP.Common.GDT;
var DataType = "DivisionCode";
var AllowedCodes = Codelist.Get(DataType,"http://sap.com/xi/AP/Common/GDT");
nosta
Explorer
0 Kudos

Any updates here?

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Pablo,

This is currently not possible. 😞

Sorry,
. Horst

former_member201819
Participant

Thank you Horst.

I think this functionality would be very useful in many contexts.

Could you please check if this could be implemented by SAP?

Best,
Pablo