Skip to Content
0

List of values annotation in ABAP CDS viiew

Feb 21 at 10:30 AM

47

avatar image
Former Member

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}

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Feb 26 at 09:22 AM
0

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'


cds-calue-help.png (35.5 kB)
Share
10 |10000 characters needed characters left characters exceeded