SAP CDS TRANSITIONS
Get Example source ABAP code based on a different SAP table
ABAP_CDS - Changing the Type of a CDS Entity
A
Example: You have an active
Steps: Replace the statement
Result: The entity is changed from CDS view entity to CDS custom entity.
The following type changes are supported:
CDS view entity- CDS custom entity lbr - CDS abstract entity
CDS projection view - CDS custom entity lbr - CDS abstract entity
CDS hierarchy - CDS custom entity lbr - CDS abstract entity
CDS custom entity - CDS view entity lbr - CDS projection view lbr - CDS abstract entity lbr - CDS hierarchy lbr - CDS DDIC-based view (obsolete)
CDS abstract entity - CDS view entity lbr - CDS projection view lbr - CDS custom entity lbr - CDS hierarchy lbr - CDS DDIC-based view (obsolete)
CDS DDIC-based view (obsolete) - CDS view entity lbr - CDS projection view lbr - CDS custom entity lbr - CDS abstract entity
The documented ABAP program
The names of elements from the element list, associations, annotations, and clauses can be changed freely and without any restrictions, as long as consumers of the respective CDS entity are not affected.
ABAP_RESTRICTIONS
ABAP_RESTR_END
Latest notes:
Certain type changes are not supported, for example, a CDS view entity cannot be changed into a CDS hierarchy. As a workaround, the CDS view entity can first be changed into a CDS custom entity and as a second step, it can be changed into a CDS hierarchy.
NON_V5_HINTS
ABAP_HINT_END