DDCDS_DIRECT_BASE_OBJECTS is a CDS View that provides data about "Get direct base objects" in SAP S/4HANA. It reads from 2 data sources (DDCDS_DIRECT_BASE_OBJECTS_V1, DDCDS_DIRECT_BASE_OBJECTS_V2) and exposes 3 fields with key fields entity_name, state, state. Part of development package SD_CDS_INFO_PROVIDER.
@AbapCatalog.entityBuffer.definitionAllowed: true@AccessControl.authorizationCheck: #NOT_REQUIRED@EndUserText.label: 'Get direct base objects'
@Metadata.ignorePropagatedAnnotations : true// ***********************************************************************************************************//
// This view list the direct base objects of a CDS entity which are either part of selector used in the
// Assoc path propagation.
// ***********************************************************************************************************//
defineviewentity DDCDS_DIRECT_BASE_OBJECTS
// ****************************************************************************************************************//
// -1- CDS V2 Entities(ViewEntity, Hierarchy etc) selecting from various objects likeView, Hierarchy, Table etc.
// ****************************************************************************************************************//
asselectfrom DDCDS_DIRECT_BASE_OBJECTS_V2
{
key entity_name,
key state,
direct_base_object_name,
direct_base_object_type,
primary_data_source
}
// ****************************************************************************************************************//
// -2- CDS V1 Views: with V1, tables, DB Views, V2 as base objects
// ****************************************************************************************************************//
unionselectfrom DDCDS_DIRECT_BASE_OBJECTS_V1
{
key entity_name,
key state,
direct_base_object_name,
direct_base_object_type,
primary_data_source
}