Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

I_WBSElementHierarchyNode

DDL: I_WBSELEMENTHIERARCHYNODE SQL: IWBSHIERNODE Type: view BASIC

WBS Element Hierarchy Node

I_WBSElementHierarchyNode is a Basic CDS View that provides data about "WBS Element Hierarchy Node" in SAP S/4HANA. It reads from 3 data sources (hrrp_node, prhi, prps) and exposes 18 fields with key fields WBSElementHierarchy, HierarchyNode, ValidityEndDate, HierarchyNode, ValidityEndDate. It has 3 associations to related views.

Data Sources (3)

SourceAliasJoin Type
hrrp_node hrrp_node from
prhi prhi inner
prps prps union_all

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_WBSElementHierarchyNodeText _Text $projection.WBSElementHierarchy = _Text.WBSElementHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.WBSElement = ''
[0..1] I_WBSElement _WBSElement $projection.WBSElement = _WBSElement.WBSElement
[1..1] I_WBSElementHierarchy _Hierarchy $projection.WBSElementHierarchy = _Hierarchy.WBSElementHierarchy and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IWBSHIERNODE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.dataCategory #HIERARCHY view
VDM.viewType #BASIC view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label WBS Element Hierarchy Node view
VDM.lifecycle.status #DEPRECATED view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY WBSElementHierarchy
KEY HierarchyNode hrrp_node hrynode WBS Element
KEY ValidityEndDate
ParentNode hrrp_node parnode Superior
HierarchyVersion hrrp_node hryver Version: Structures
WBSElement WBS Element
HierarchyNodeSequence hrrp_node hryseqnbr Sequence Number
_Text _Text
_WBSElement _WBSElement
KEY HierarchyNode prhi posnr WBS Element
KEY ValidityEndDate
ParentNode prhi up Superior
HierarchyVersion Version: Structures
WBSElement prps posid WBS Element
HierarchyNodeSequence Sequence Number
_Text _Text
_WBSElement _WBSElement
_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_WBSElementHierarchyNode.
-- 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.
-- SQL view name: IWBSHIERNODE

CREATE VIEW I_WBSElementHierarchyNode AS
SELECT
  cast ( hrrp_node.hryid as wbshierarchy preserving type ) AS WBSElementHierarchy,
  hrrp_node.hrynode AS HierarchyNode,
  cast(hrrp_node.hryvalto as fis_datbi) AS ValidityEndDate,
  hrrp_node.parnode AS ParentNode,
  hrrp_node.hryver AS HierarchyVersion,
  substring( hrrp_node.leafvalue, 1, 24 ) AS WBSElement,
  hrrp_node.hryseqnbr AS HierarchyNodeSequence
FROM hrrp_node
INNER JOIN prhi ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WBSElementHierarchyNodeText AS _Text ON WBSElementHierarchy = _Text.WBSElementHierarchy AND HierarchyNode = _Text.HierarchyNode AND WBSElement = ''  -- association [0..*]
LEFT OUTER JOIN I_WBSElement AS _WBSElement ON WBSElement = _WBSElement.WBSElement  -- association [0..1]
LEFT OUTER JOIN I_WBSElementHierarchy AS _Hierarchy ON WBSElementHierarchy = _Hierarchy.WBSElementHierarchy AND ValidityEndDate = _Hierarchy.ValidityEndDate  -- association [1..1]
-- UNION ALL with additional select branch(es): prps
;