Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

List of values annotation in ABAP CDS viiew

Former Member
0 Kudos

Hi ,

i am using below annotation for Company code dimension object. my question is how to assign list of values to company code. while using this filter in report it is not showing company codes to select in the list. please can any one give solution.

@Consumption.filter:{selectionType: #RANGE,multipleSelections: false,mandatory: false}

1 REPLY 1

Srbh93
Explorer
0 Kudos

You can use association to the actual base table of Company code and then use below annotation at element level for foreign key relation, then it would display the Value help. Change the purchase org to Company code as per your requirement.

@ObjectModel.foreignKey.association: '_PurchasingOrg'