Application Development 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: 

What does "Currently you can only define one CDS entity per DDL source." really mean?

0 Kudos

Hello HANA gurus

What does Currently you can only define one CDS entity per DDL source. really mean?

Can we not create more than one CDS view for a corresponding DDIC table?


Please explain. Thanks.

Meera

1 ACCEPTED SOLUTION

pfefferf
Active Contributor
0 Kudos

Hello Meera,

it means that you can only define one view in one DDL source file, but you cannot define several views within one DDL source file. If you try to use the DEFINE VIEW statement more than one time in a DDL source file you will receive an error. But of course if you make several DDL source files you can define several views for the same source (e.g. a table).

Consider that this is valid for ABAP CDS (or as they are also called Open CDS) views respectively the CDS implementation on an ABAP NetWeaver system. The CDS implementation on HANA allows to define several views within one CDS file (.hdbdd for HANA < SPS11 or .hdbcds for HANA >= SPS11).

Regards,

Florian

2 REPLIES 2

pfefferf
Active Contributor
0 Kudos

Hello Meera,

it means that you can only define one view in one DDL source file, but you cannot define several views within one DDL source file. If you try to use the DEFINE VIEW statement more than one time in a DDL source file you will receive an error. But of course if you make several DDL source files you can define several views for the same source (e.g. a table).

Consider that this is valid for ABAP CDS (or as they are also called Open CDS) views respectively the CDS implementation on an ABAP NetWeaver system. The CDS implementation on HANA allows to define several views within one CDS file (.hdbdd for HANA < SPS11 or .hdbcds for HANA >= SPS11).

Regards,

Florian

0 Kudos

Ah... Got it. Thanks Florian.