Skip to Content
0
Jun 16, 2020 at 03:03 AM

CDS on 2 database table

71 Views Last edit Jun 16, 2020 at 03:25 AM 2 rev

Hi, I try to make project on abap development in eclipse that have 2 database table (A and B) that table A get foreign key from table B. When building CDS, i got confused because it is my first time not using /DMO/ and only based from database table.

This is my question:

1. On data defined as data model, what should i choose ? defined association or join?
2. On data defined as projection view, @Consumption.valueHelpDefinition: [{ entity: {} }], what should i define when i try to accessing the table B?
3. should i make entity for table B? i already defined the database table.

Thank you for your time and help.