Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CDS - Primary key

former_member182337
Participant
0 Likes
2,234

hi,

I have created a CDS view but the problem in that is all fields defined are marked as primary key. I have defined the "key" for only the first two fields but the other four fields are set as primary as well. How to avoid it?    

Regards,

Prem

1 ACCEPTED SOLUTION
Read only

thomasgauweiler
Employee
Employee
0 Likes
1,164

Hi Prem,

Are you talking about the display of keys in SE11 ? You should just ignore it. For CDS only your marked keys are keys!

Regards, Thomas

3 REPLIES 3
Read only

thomasgauweiler
Employee
Employee
0 Likes
1,165

Hi Prem,

Are you talking about the display of keys in SE11 ? You should just ignore it. For CDS only your marked keys are keys!

Regards, Thomas

Read only

0 Likes
1,164

Hi Thomas,

Thank you but it is confusing though. Isn't there any workaround to avoid it?

Read only

0 Likes
1,164

Yes: do not use SE11 any more

The information visible there is missleading in several cases.

E.g. CDS views with unions will have each field twice in SE11.