on 2014 Mar 03 10:47 PM
I defined a CDS view based on an entity. When I activate, it says:
Missing specification of keys for view "sap.ms.data::DB.ApplicationView".
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 {
ApplicationId,
AccountRef.AccountId,
DisplayName,
Version
};
I found out how to do it, define the key in the service descriptor as:
service {
"sap.ms.data::DB.ApplicationView" as "App" key ("ApplicationId", "AcctId");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.