I_CnsldtnDocumentTypeHierNode
Document Type - Hierarchy Node
I_CnsldtnDocumentTypeHierNode is a Basic CDS View that provides data about "Document Type - Hierarchy Node" in SAP S/4HANA. It reads from 2 data sources (hrrp_directory, hrrp_node) and exposes 13 fields with key fields ConsolidationDocTypeHierarchy, HierarchyNode, ValidityEndDate. It has 4 associations to related views. Part of development package FIN_CS_MD_DOCUMENTTYPE.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_directory | _DocumentTypeHierDir | inner |
| hrrp_node | _DocumentTypeHierNode | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CnsldtnDocumentTypeHierNodeT | _Text | $projection.ConsolidationDocTypeHierarchy = _Text.ConsolidationDocTypeHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.ConsolidationDocumentType = '' |
| [0..1] | I_CnsldtnDocumentTypeHierDir | _Hierarchy | $projection.ConsolidationDocTypeHierarchy = _Hierarchy.ConsolidationDocTypeHierarchy and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate |
| [0..1] | I_CnsldtnDocumentType | _CnsldtnDocType | $projection.ConsolidationDocumentType = _CnsldtnDocType.ConsolidationDocumentType and $projection.ConsolidationDimension = _CnsldtnDocType.ConsolidationDimension |
| [0..1] | I_CnsldtnDimension | _CnsldtnDimension | $projection.ConsolidationDimension = _CnsldtnDimension.ConsolidationDimension |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICCDOCTYPEHIER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| Hierarchy.parentChild.recurse.parent | ParentNode | view | |
| Hierarchy.parentChild.recurse.child | HierarchyNode | view | |
| Hierarchy.parentChild.siblingsOrder.by | HierarchyNodeSequence | view | |
| Hierarchy.parentChild.siblingsOrder.direction | #ASC | view | |
| Hierarchy.parentChild.directory | _Hierarchy | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.dataCategory | #HIERARCHY | view | |
| ObjectModel.representativeKey | HierarchyNode | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Document Type - Hierarchy Node | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConsolidationDocTypeHierarchy | hrrp_node | hryid | Hierarchy ID |
| KEY | HierarchyNode | hrrp_node | hrynode | Node |
| KEY | ValidityEndDate | hrrp_node | hryvalto | Valid To |
| ValidityStartDate | hrrp_node | hryvalfrom | Valid From | |
| ParentNode | hrrp_node | parnode | Par. Node | |
| ConsolidationDimension | ||||
| HierarchyNodeSequence | hrrp_node | hryseqnbr | Sequence Number | |
| HierarchyNodeLevel | hrrp_node | hrylevel | Hierarchy Level | |
| NodeType | hrrp_node | nodetype | Object Type | |
| _CnsldtnDocType | _CnsldtnDocType | |||
| _CnsldtnDimension | _CnsldtnDimension | |||
| _Text | _Text | |||
| _Hierarchy | _Hierarchy |
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_CnsldtnDocumentTypeHierNode.
-- 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_CnsldtnDocumentTypeHierNode AS
SELECT
_DocumentTypeHierNode.hryid AS ConsolidationDocTypeHierarchy,
_DocumentTypeHierNode.hrynode AS HierarchyNode,
_DocumentTypeHierNode.hryvalto AS ValidityEndDate,
_DocumentTypeHierNode.hryvalfrom AS ValidityStartDate,
_DocumentTypeHierNode.parnode AS ParentNode,
cast( left( _DocumentTypeHierNode.nodecls, 2 ) as fc_dimen ) AS ConsolidationDimension,
_DocumentTypeHierNode.hryseqnbr AS HierarchyNodeSequence,
_DocumentTypeHierNode.hrylevel AS HierarchyNodeLevel,
_DocumentTypeHierNode.nodetype AS NodeType
FROM hrrp_node AS _DocumentTypeHierNode
INNER JOIN hrrp_directory AS _DocumentTypeHierDir ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CnsldtnDocumentTypeHierNodeT AS _Text ON ConsolidationDocTypeHierarchy = _Text.ConsolidationDocTypeHierarchy AND HierarchyNode = _Text.HierarchyNode AND ConsolidationDocumentType = '' -- association [0..*]
LEFT OUTER JOIN I_CnsldtnDocumentTypeHierDir AS _Hierarchy ON ConsolidationDocTypeHierarchy = _Hierarchy.ConsolidationDocTypeHierarchy AND ValidityEndDate = _Hierarchy.ValidityEndDate -- association [0..1]
LEFT OUTER JOIN I_CnsldtnDocumentType AS _CnsldtnDocType ON ConsolidationDocumentType = _CnsldtnDocType.ConsolidationDocumentType AND ConsolidationDimension = _CnsldtnDocType.ConsolidationDimension -- association [0..1]
LEFT OUTER JOIN I_CnsldtnDimension AS _CnsldtnDimension ON ConsolidationDimension = _CnsldtnDimension.ConsolidationDimension -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA