01-06-2016 3:19 PM
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
01-06-2016 3:32 PM
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
01-06-2016 3:32 PM
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
01-06-2016 6:38 PM