What is the difference between a DDIC-based CDS view and a CDS view entity, and how do you migrate?
Say your answer out loud first.
Practise another way
A DDIC-based view uses DEFINE VIEW and generates a separate DDIC SQL view, so one object has up to three names. A view entity uses DEFINE VIEW ENTITY, creates no DDIC view, has one name, activates faster, checks syntax more strictly and handles the client automatically.
DDIC-based views are obsolete. Migration is manual or tool-assisted: find usages of the SQL view name, run the report that lists views to migrate, then run the migration program and activate.
What changed. A DDIC-based view is activated into a CDS entity and a CDS-managed DDIC view, which needs @AbapCatalog.sqlViewName (16 characters).
A view entity has no DDIC view: one name for the CDS object, the entity and the database view. View entities arrived with ABAP 7.55 (ABAP Platform 2020); the DDIC-based form is obsolete from 7.56 on.
Why SAP changed it
- Faster activation: SAP's own sample showed a 10-view stack activating in about 10.6 s instead of 20.2 s.
- Stricter syntax and annotation checks that flag critical situations earlier. For example, with several data sources every element needs a source prefix.
- Automatic client handling: the
ClientHandlingannotations are not allowed. - Simpler extensions and better type safety in expressions.
- Buffering is configured with a separate object (card on buffering), not annotations.
Migration There is no automatic, silent conversion; the two forms are incompatible by design.
- List consumers of the old SQL view name with
RUT_WHERE_USE_SQLVIEW(ABAP 7.57, downported by SAP Note 3201681 for 7.52 to 7.56). Code that reads the SQL view directly will break. - Run
RUTDDLS_MIGRATION_CANDIDATES(7.56 and later). It sorts views into: not possible (for example DDLS name differs from entity name), possible with behaviour changes, possible with minor edits. - Migrate: either by hand (remove
sqlViewName, addentity, fix what the checks report, activate in ADT; activation changes the object type) or withRUTDDLSV2MIGRATION, which writes an inactive version and leaves activation to you. - Retest consumers and the DCL.
// before
@AbapCatalog.sqlViewName: 'ZVBOOK'
define view ZI_Booking as select from sbook
{ key carrid, key connid, key fldate, key bookid }
// after
define view entity ZI_Booking as select from sbook
{ key carrid, key connid, key fldate, key bookid }
Gives the concrete differences (no DDIC view, one name, strict checks, client handling) and a migration order that starts with finding SQL-view-name consumers and uses the SAP report names.
Says 'view entity is the newer one' and 'just remove the SQL view name' without noting consumers of that name or behaviour changes.
Believing migration is a find-and-replace of the keyword. The old SQL view name may be used elsewhere, and a few checks and behaviours differ.
- Which view could the migration report refuse to migrate?
- What breaks if a program selects from the old SQL view name?
- How are buffering and client handling different in view entities?
- Can you migrate back?
2 official pages, 2 prep guides and 2 technical references. Confidence: medium. Checked 21 Nov 2026.
- Official page Backs the answer.
- Technical reference Backs the answer.
- Technical reference Backs the answer.
- Official page Backs the answer.
- Prep guide Gives the question.
- Prep guide Gives the question.