I_CustUnivHierarchyBase

DDL: I_CUSTUNIVHIERARCHYBASE Type: view BASIC

Customer Hierarchy Directory

I_CustUnivHierarchyBase is a Basic CDS View (Dimension) that provides data about "Customer Hierarchy Directory" in SAP S/4HANA. It reads from 1 data source (hrrp_directory) and exposes 6 fields with key fields CustomerUniversalHierarchy, CustHierarchyValidityEndDate. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
hrrp_directory hrrp_directory from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CustUniversalHierarchyText _Text $projection.CustomerUniversalHierarchy= _Text.CustomerUniversalHierarchy

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName ICUSTUHFDIRB view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
EndUserText.label Customer Hierarchy Directory view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey CustomerUniversalHierarchy view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CustomerUniversalHierarchy hrysid Hierarchy ID
KEY CustHierarchyValidityEndDate Valid To
CustHierarchyValidityStartDate Valid From
LastChangedByUser upduser Changed By
CustUnivHierLastChangeDateTime updtime Updated At
_Text _Text

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_CustUnivHierarchyBase.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_CustUnivHierarchyBase AS
SELECT
  hrysid AS CustomerUniversalHierarchy,
  cast(hryvalto as custhierarchyvalidityenddate preserving type ) AS CustHierarchyValidityEndDate,
  cast(hryvalfrom as custhierarchyvaliditystartdate preserving type ) AS CustHierarchyValidityStartDate,
  upduser AS LastChangedByUser,
  updtime AS CustUnivHierLastChangeDateTime
FROM hrrp_directory
LEFT OUTER JOIN I_CustUniversalHierarchyText AS _Text ON CustomerUniversalHierarchy= _Text.CustomerUniversalHierarchy  -- association [0..*]
;