Skip to Content
avatar image
Former Member

List of values annotation in ABAP CDS viiew

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}

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    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'

    Add comment
    10|10000 characters needed characters exceeded