P_MstrProjHierarchy

DDL: P_MSTRPROJHIERARCHY SQL: PMPHIER Type: view COMPOSITE

P_MstrProjHierarchy is a Composite CDS View in SAP S/4HANA. It reads from 9 data sources and exposes 101 fields.

Data Sources (9)

SourceAliasJoin Type
I_CProjectList CProject left_outer
I_MasterProjectItemList MasterProject union
I_MasterProjectItemList MPItem union
I_Project ProjectDefinition inner
I_SDItemOrganization SalesOrg left_outer
I_SDItemOrganization SDItem inner
I_MstrProjStructure StructureElement from
I_MstrProjStructure StructureElement1 union
I_MPWBSObject WBSElement inner

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PMPHIER view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #A view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (101)

KeyFieldSource TableSource FieldDescription
MasterProjectUUID I_MstrProjStructure MasterProjectUUID NodeID
MasterProject I_MstrProjStructure MasterProject Project ID
MasterProjectName I_MstrProjStructure MasterProjectName
MasterProjectOrganization I_MstrProjStructure MasterProjectOrganization
MasterProjectIsConfidential I_MstrProjStructure MasterProjectIsConfidential
MasterProjectType I_MstrProjStructure MasterProjectType
Currency I_MstrProjStructure Currency Valuation Crcy
Project I_MstrProjStructure Project WBS Element
ProjectDescription I_MstrProjStructure ProjectDescription Project Name
BusinessArea I_MstrProjStructure BusinessArea Business Area
CompanyCode I_MstrProjStructure CompanyCode Receiver Company Code
ControllingArea I_MstrProjStructure ControllingArea Controlling Area
ControllingObject
ControllingObjectExternalID
ControllingObjectType
ObjectInternalID I_MstrProjStructure ObjectInternalID Object number
SalesDocument SD Document
SalesDocumentItem Sales Document Item
ObjectName I_MstrProjStructure ObjectName Item Descr.
MstrProjAnchorObjectInternalID I_MstrProjStructure ProjectObject
MstrProjCutOffDate I_MstrProjStructure MstrProjCutOffDate
ControllingObjectCurrency I_MstrProjStructure ControllingObjectCurrency Valuation Crcy
CurrentDate
WBSElementObject I_MstrProjStructure WBSElementObject Object number
WBSElement I_MstrProjStructure WBSElement WBS Internal ID
MasterProjectUUID NodeID
MasterProject I_MstrProjStructure MasterProject Project ID
MasterProjectName I_MstrProjStructure MasterProjectName
MasterProjectOrganization I_MstrProjStructure MasterProjectOrganization
MasterProjectIsConfidential I_MstrProjStructure MasterProjectIsConfidential
MasterProjectType I_MstrProjStructure MasterProjectType
Currency I_MstrProjStructure Currency Valuation Crcy
Project I_MstrProjStructure Project WBS Element
ProjectDescription I_MstrProjStructure ProjectDescription Project Name
BusinessArea I_MstrProjStructure BusinessArea Business Area
CompanyCode I_MstrProjStructure CompanyCode Receiver Company Code
ControllingArea I_MstrProjStructure ControllingArea Controlling Area
ControllingObject
ControllingObjectExternalID
ControllingObjectType
ObjectInternalID Object number
SalesDocument I_SDItemOrganization SalesDocument SD Document
SalesDocumentItem I_SDItemOrganization SalesDocumentItem Sales Document Item
ObjectName I_SDItemOrganization SalesDocumentItemText Item Descr.
MstrProjAnchorObjectInternalID I_MstrProjStructure ProjectObject
MstrProjCutOffDate I_MstrProjStructure MstrProjCutOffDate
ControllingObjectCurrency I_MstrProjStructure ControllingObjectCurrency Valuation Crcy
CurrentDate
WBSElementObject I_MstrProjStructure WBSElementObject Object number
WBSElement I_MstrProjStructure WBSElement WBS Internal ID
MasterProjectUUID NodeID
MasterProject I_MasterProjectItemList MasterProject Project ID
MasterProjectName I_MasterProjectItemList MasterProjectName
MasterProjectOrganization I_MasterProjectItemList MasterProjectOrganization
MasterProjectIsConfidential I_MasterProjectItemList MasterProjectIsConfidential
MasterProjectType I_MasterProjectItemList MasterProjectType
Currency I_MasterProjectItemList Currency Valuation Crcy
Project WBS Element
ProjectDescription Project Name
BusinessArea I_SDItemOrganization BusinessArea Business Area
CompanyCode I_SDItemOrganization CompanyCode Receiver Company Code
ControllingArea I_SDItemOrganization ControllingArea Controlling Area
ControllingObject
ControllingObjectExternalID
ControllingObjectType I_MasterProjectItemList MasterProjectItemObjectType
ObjectInternalID Object number
SalesDocument I_SDItemOrganization SalesDocument SD Document
SalesDocumentItem I_SDItemOrganization SalesDocumentItem Sales Document Item
ObjectName I_SDItemOrganization SalesDocumentItemText Item Descr.
MstrProjAnchorObjectInternalID I_MasterProjectItemList MasterProjectItem
MstrProjCutOffDate I_MasterProjectItemList MstrProjCutOffDate
ControllingObjectCurrency Valuation Crcy
CurrentDate
WBSElementObject Object number
WBSElement WBS Internal ID
MasterProjectUUID NodeID
MasterProject I_MasterProjectItemList MasterProject Project ID
MasterProjectName I_MasterProjectItemList MasterProjectName
MasterProjectOrganization I_MasterProjectItemList MasterProjectOrganization
MasterProjectIsConfidential I_MasterProjectItemList MasterProjectIsConfidential
MasterProjectType I_MasterProjectItemList MasterProjectType
Currency I_MasterProjectItemList Currency Valuation Crcy
Project I_MPWBSObject Project WBS Element
ProjectDescription I_MPWBSObject ProjectDescription Project Name
BusinessArea I_MPWBSObject BusinessArea Business Area
CompanyCode I_MPWBSObject CompanyCode Receiver Company Code
ControllingArea I_MPWBSObject ControllingArea Controlling Area
ControllingObject
ControllingObjectExternalID
ControllingObjectType I_CProjectList MasterProjectItemObjectType
ObjectInternalID Object number
SalesDocument SD Document
SalesDocumentItem Sales Document Item
ObjectName Item Descr.
MstrProjAnchorObjectInternalID I_MasterProjectItemList MasterProjectItem
MstrProjCutOffDate I_MasterProjectItemList MstrProjCutOffDate
ControllingObjectCurrency I_MPWBSObject Currency Valuation Crcy
CurrentDate
WBSElementObject Object number
WBSElement WBS Internal ID
ExternalObjectIdentifier I_CProjectList ProjectExternalID Project def.

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_MstrProjHierarchy.
-- 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: PMPHIER

CREATE VIEW P_MstrProjHierarchy AS
SELECT
  StructureElement.MasterProjectUUID AS MasterProjectUUID,
  StructureElement.MasterProject AS MasterProject,
  StructureElement.MasterProjectName AS MasterProjectName,
  StructureElement.MasterProjectOrganization AS MasterProjectOrganization,
  StructureElement.MasterProjectIsConfidential AS MasterProjectIsConfidential,
  StructureElement.MasterProjectType AS MasterProjectType,
  StructureElement.Currency AS Currency,
  StructureElement.Project AS Project,
  StructureElement.ProjectDescription AS ProjectDescription,
  StructureElement.BusinessArea AS BusinessArea,
  StructureElement.CompanyCode AS CompanyCode,
  StructureElement.ControllingArea AS ControllingArea,
  cast(StructureElement.ControllingObject as abap.char(34)) AS ControllingObject,
  cast(StructureElement.ControllingObjectExternalID as abap.char(34)) AS ControllingObjectExternalID,
  cast(StructureElement.ControllingObjectType as /cpd/pws_ws_mp_rel_obj) AS ControllingObjectType,
  StructureElement.ObjectInternalID AS ObjectInternalID,
  cast('' as vbeln) AS SalesDocument,
  cast('' as posnr) AS SalesDocumentItem,
  StructureElement.ObjectName AS ObjectName,
  StructureElement.ProjectObject AS MstrProjAnchorObjectInternalID,
  StructureElement.MstrProjCutOffDate AS MstrProjCutOffDate,
  StructureElement.ControllingObjectCurrency AS ControllingObjectCurrency,
  $session.system_date AS CurrentDate,
  StructureElement.WBSElementObject AS WBSElementObject,
  StructureElement.WBSElement AS WBSElement,
  CProject.ProjectExternalID AS ExternalObjectIdentifier
FROM I_MstrProjStructure AS StructureElement
LEFT OUTER JOIN I_SDItemOrganization AS SalesOrg ON /* join condition not captured in parsed metadata */
INNER JOIN I_SDItemOrganization AS SDItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_Project AS ProjectDefinition ON /* join condition not captured in parsed metadata */
INNER JOIN I_MPWBSObject AS WBSElement ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CProjectList AS CProject ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_MstrProjStructure, I_MasterProjectItemList, I_MasterProjectItemList
;