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 Cardinality

yoppy_santoso
Participant
0 Likes
1,189

Hi all,

I'am new with CDS
I build with simple CDS like below pict :

And, look at that (warning), like below pict :

What's wrong with my code?

Hi all,

I'am new with CDS
I build with simple CDS like below pict :

And, look at that (warning), like below pict :

What's wrong with my code?

3 REPLIES 3
Read only

BiberM
Contributor
0 Likes
1,137

I have no SAP system at hand but I suppose that the key of sflight is not fully specified by the ON condition of the association. Therefor it is possible that on entry of spfli is joined with more than one entry in sflight. That does not match the cardinality you specified.

Read only

0 Likes
1,137

SPLFI have CARRID & CONNID
SFLIGHT have CARRID, CONNID, SFLIGHT

What do you think corresponds to cardinality?

Read only

0 Likes
1,137

That should be [0..*]. It is technically possible that for one combination of CARRID and CONNID there is no matching entry in SFLIGHT and it is possible that there are multiple entries in SFLIGHT for another combination of those fields.