P_CnsldtnUnivHierarchy

DDL: P_CNSLDTNUNIVHIERARCHY Type: view BASIC Package: FIN_CS_MD_COMMON

Consolidation Universal Hierarchy

P_CnsldtnUnivHierarchy is a Basic CDS View that provides data about "Consolidation Universal Hierarchy" in SAP S/4HANA. It reads from 1 data source (hrrp_directory) and exposes 8 fields with key fields UniversalHierHierarchyID, HierarchyVersion, ValidityEndDate. Part of development package FIN_CS_MD_COMMON.

Data Sources (1)

SourceAliasJoin Type
hrrp_directory _Hierarchy from

Parameters (2)

NameTypeDefault
P_HierarchyType hrytype
P_MasterDataType fieldname

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PCSUNIVHIER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.representativeKey UniversalHierHierarchyID view
VDM.viewType #BASIC view
VDM.private true view
EndUserText.label Consolidation Universal Hierarchy view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY UniversalHierHierarchyID
KEY HierarchyVersion
KEY ValidityEndDate
ValidityStartDate
HierarchyType
LastChangedByUser
LastChangeDateTime
HierarchyClass hrrp_directory hrycls Hierarchy Class

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 P_CnsldtnUnivHierarchy.
-- 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.
-- Parameters: P_HierarchyType : hrytype, P_MasterDataType : fieldname

CREATE VIEW P_CnsldtnUnivHierarchy AS
SELECT
  cast(left(_Hierarchy.hryid, 40) as fincs_universalhierhierarchyid preserving type ) AS UniversalHierHierarchyID,
  cast(_Hierarchy.hryver as fincs_hierarchyversion preserving type ) AS HierarchyVersion,
  cast(_Hierarchy.hryvalto as fincs_validityenddate preserving type ) AS ValidityEndDate,
  cast(_Hierarchy.hryvalfrom as fincs_validitystartdate preserving type ) AS ValidityStartDate,
  cast(_Hierarchy.hrytyp as fincs_hierarchytype preserving type ) AS HierarchyType,
  cast(_Hierarchy.upduser as fincs_lastchangedbyuser preserving type ) AS LastChangedByUser,
  cast(_Hierarchy.updtime as fincs_lastchangedatetime preserving type ) AS LastChangeDateTime,
  _Hierarchy.hrycls AS HierarchyClass
FROM hrrp_directory AS _Hierarchy
;