on 2019 Mar 06 2:16 AM
in XSOData we can generate a local ID for a key like
key generate local "ID";
In ABAP CDS we can do something similar in a couple of ways, one is to add a @Default Aggregation to a property and not nominate a key
How do we generate a local ID key for an Entity in a .CDS service?
The use case is the HANA view i am projecting has many fields, collectively all fields make up the key
Request clarification before answering.
phew found it
if you add
@Aggregation.ApplySupported.PropertyRestrictions
to the top of your view or entity then a generated key "ID__" magically appears 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
7 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.