Showing results for 
Search instead for 
Did you mean: 

How to specify key in CDS view?

Former Member
0 Kudos

I defined a CDS view based on an entity. When I activate, it says:

Missing specification of keys for view "".

However, I am at a lost how the specify key in CDS View. The developer guide did not mention anything. If I put a key before one of the attribute:

Cannot find sub artifact "key" in "Application"

My CDS view is as follows:

view ApplicationView as select from Application {






Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I found out how to do it, define the key in the service descriptor as:

service {

"" as "App" key ("ApplicationId", "AcctId");