Hi ,
I want to portray a simple foreign key relationship of n to 1 between item and header of a sales order .
How do we do this in CDS ?
The following syntax gives error "Unexpected token ".." at line 13, column 24"
namespace test_cds_fu1;
@Schema: 'SYSTEM'
context cds_basic_assoc {
entity header {
key header_id : Integer ;
supplier_id : Integer;
};
entity item {
key item_id : Integer ;
h_assoc : Association[*..1] to header { header_id };
};
};
Could you please help ?
Thanks!
Anitha .