I_ProjectHierarchyRoot_2

DDL: I_PROJECTHIERARCHYROOT_2 Type: view_entity BASIC

Project Hierarchy Root

I_ProjectHierarchyRoot_2 is a Basic CDS View that provides data about "Project Hierarchy Root" in SAP S/4HANA. It reads from 1 data source (proj) and exposes 7 fields with key field ProjectObject. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
proj proj from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..*] I_ProfitCenter _ProfitCenter $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter

Annotations (6)

NameValueLevelField
EndUserText.label Project Hierarchy Root view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #BASIC view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #MASTER view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ProjectObject objnr Val. Obj. No.
ControllingArea
ProfitCenter proj prctr Profit Centers
_ControllingArea _ControllingArea
_ProfitCenter _ProfitCenter
_ProjectObjectHierarchy _ProjectObjectHierarchy
_ProjectObject _ProjectObject

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_ProjectHierarchyRoot_2.
-- 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_ProjectHierarchyRoot_2 AS
SELECT
  objnr AS ProjectObject,
  cast ( proj.vkokr as kokrs preserving type ) AS ControllingArea,
  proj.prctr AS ProfitCenter
FROM proj
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter  -- association [0..*]
;