Skip to Content

No representative key element found in CDS view

Hi Expert,

I create a ABAP CDS view with annotation as below:

@ObjectModel.representativeKey: 'FORM_ID'

@AbapCatalog.sqlViewName: 'ZTAB_LINEV'

@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK

@EndUserText.label: 'table line text for replacing text universe' @Analytics.dataExtraction.enabled: true

@Analytics.dataCategory: #DIMENSION

when I activate this CDS view, I get error message below, even though I already define representive key in annotation

" No representative key element found in CDS view "

by following picture, you can see there is 'FORM_ID' field in the CDS view.

fields-in-cds-view.png

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 19, 2017 at 12:56 PM

    Missing "KEY" in front of the first column?

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 19, 2017 at 01:24 PM

    thanks.

    Add comment
    10|10000 characters needed characters exceeded