P_WBSHierarchyWithoutRootNode

DDL: P_WBSHIERARCHYWITHOUTROOTNODE Type: view_entity BASIC Package: FINS_COPA_REPORTING

WBS Hierarchy Without Root Node

P_WBSHierarchyWithoutRootNode is a Basic CDS View that provides data about "WBS Hierarchy Without Root Node" in SAP S/4HANA. It reads from 2 data sources (I_ProjectBasicData, prhi) and exposes 6 fields with key field WBSElementInternalID. It has 1 association to related views. Part of development package FINS_COPA_REPORTING.

Data Sources (2)

SourceAliasJoin Type
I_ProjectBasicData I_ProjectBasicData inner
prhi prhi from

Associations (1)

CardinalityTargetAliasCondition
[1..1] P_WBSHierarchyWithoutRootNode _Parent $projection.WBSElementParentInternalID = _Parent.WBSElementInternalID

Annotations (5)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
EndUserText.label WBS Hierarchy Without Root Node view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY WBSElementInternalID prhi posnr WBS Element
ProjectInternalID prhi psphi Current proj.no
WBSElementParentInternalID prhi up Superior
CompanyCode
WBSElementIsBillingElement _ParentWBSElement WBSElementIsBillingElement Billing elem.
_Parent _Parent

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_WBSHierarchyWithoutRootNode.
-- 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 P_WBSHierarchyWithoutRootNode AS
SELECT
  prhi.posnr AS WBSElementInternalID,
  prhi.psphi AS ProjectInternalID,
  prhi.up AS WBSElementParentInternalID,
  cast ( I_ProjectBasicData.CompanyCode as ps_vbukr preserving type ) AS CompanyCode,
  _ParentWBSElement.WBSElementIsBillingElement AS WBSElementIsBillingElement
FROM prhi
INNER JOIN I_ProjectBasicData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_WBSHierarchyWithoutRootNode AS _Parent ON WBSElementParentInternalID = _Parent.WBSElementInternalID  -- association [1..1]
;