Why Did CDS DDIC based View get deprecated ? CDS View VS CDS View Entity
Satya Prakash Tiwari
Certified SAP ABAP on HANA /ABAP/Fiori consultant at Deloitte | Ex-IBM | Ex-Accenture | Ex-Wiproite
We can see clear message from SAP that CDS DDIC based views are obsolete, use a template for CDS view entity instead.
CDS DDIC based views are still supported but SAP will not release any new feature.
Lets understand the difference between CDS DDIC based view and CDS view entity. Below are Key differences .
A view entity has an SQL view on the database, but now the intermediate DDIC view is not needed any more. CDS View Entity will only generate a Runtime Object, but not an additional SQL View anymore.
Since CDS view entity will only generate runtime object that leads to fewer potential inconsistencies or confusions about different names and faster object activation because of less dependencies.
2. Annotations
领英推荐
3. Strict syntax check
Now we have strict syntax check in CDS view entity . Earlier any annotations could be added, even if it was wrongly defined or did not exist at all. Now a check makes sure that the annotation is valid to ensure the desired behavior.
We have added a wrong/meaningless annotation @semantics.false:true (this does not exists at all) in CDS-DDIC based view and CDS Entity View.
There is no error raised in CDS-DDIC based view .
4 . Unsupported Scenarios
CDS View Entity does not support DDIC database views or DDIC external views anymore. This means it’s not possible to select, join or associate with such view types.
Both CDS View and new CDS View Entity may be used in parallel. However, going forward only the CDS View Entity should be created, because it offers several improvements and even lifts some of the previous technical limitations.
A migration of the existing legacy CDS Views is not mandatory but recommended. Automatic conversion tools are available, also see: For more information.