SAP DDIC APPEND VIEWS



Get Example source ABAP code based on a different SAP table
  



ABAP_DDIC - Append Views
DDIC database views delivered by SAP can be extended by partners and customers using views known as DDIC append views, without modifying the original object. The name of a DDIC append view is subject to the same rules as the name of a DDIC view and should be located in the customer namespace (or in the namespace of a partner or special development) to protect it against being overwritten by upgrades or new releases.
A DDIC append view can add further fields from one of the basis tables of a DDIC database view to the database view in question. Append views cannot be used to add further basis tables to the view or to modify the join conditions or selection conditions of a DDIC database view. A DDIC append view is assigned to exactly one DDIC database view. More than one DDIC append view can be created for a DDIC database view.
When a DDIC append view is activated, an append structure with this name is created in ABAP Dictionary. Its components are the additional view fields of the append view.
If a DDIC database view is activated, all DDIC append views for this view are found and their fields are appended to the DDIC database view. The append structure of the append view is added to the structure of the DDIC database view. If an append view is created or modified, the associated DDIC database view is changed automatically when the append view is activated.



Latest notes:

DDIC append views are possible only for DDIC database views and not for any other kind of DDIC views.
In ABAP CDS, CDS entity extensions are available to extend CDS entities.
ABAP_HINT_END



Example ABAP Coding

The DDIC append view DEMO_APPEND_VIEW is added to the DDIC database view DEMO_ORIGINAL. The program DEMO_APPEND_VIEW uses SELECT to access the extended view. It displays the components of the original view and of the append view and the result set.
ABAP_EXAMPLE_END