P_MstrProjHierSales

DDL: P_MSTRPROJHIERSALES SQL: PMPHIRSALES Type: view COMPOSITE

P_MstrProjHierSales is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_MstrProjHierList, I_MasterProjectSalesOrder) and exposes 65 fields with key field MasterProjectUUID.

Data Sources (2)

SourceAliasJoin Type
I_MstrProjHierList Hierarchy from
I_MasterProjectSalesOrder MPSales union

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PMPHIRSALES view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (65)

KeyFieldSource TableSource FieldDescription
KEY MasterProjectUUID I_MstrProjHierList MasterProjectUUID NodeID
MasterProject I_MstrProjHierList MasterProject Project ID
MasterProjectName I_MstrProjHierList MasterProjectName
MasterProjectType I_MstrProjHierList MasterProjectType
MasterProjectStage I_MstrProjHierList MasterProjectStage
StartDate I_MstrProjHierList StartDate Valid From
EndDate I_MstrProjHierList EndDate Term to
Customer I_MstrProjHierList Customer Sold-to Party
MasterProjectOrganization I_MstrProjHierList MasterProjectOrganization
MasterProjectIsConfidential I_MstrProjHierList MasterProjectIsConfidential
Country I_MstrProjHierList Country Venue: Ctry/Reg
Region I_MstrProjHierList Region Venue Region
WorkType I_MstrProjHierList WorkType SAF-T Work Type
Industry I_MstrProjHierList Industry Industry Sector
ProjectRisk I_MstrProjHierList ProjectRisk
FinancialRisk I_MstrProjHierList FinancialRisk
TechnicalRisk I_MstrProjHierList TechnicalRisk
OverallRisk I_MstrProjHierList OverallRisk
MasterProjectItemUUID I_MstrProjHierList MasterProjectItemUUID
MasterProjectItemObjectType I_MstrProjHierList MasterProjectItemObjectType
MasterProjectItem I_MstrProjHierList MasterProjectItem
WBSElement I_MstrProjHierList WBSElement WBS Internal ID
CompanyCode I_MstrProjHierList CompanyCode Receiver Company Code
BusinessArea I_MstrProjHierList BusinessArea Business Area
ControllingArea I_MstrProjHierList ControllingArea Controlling Area
ControllingObject I_MstrProjHierList ControllingObject Object number
ControllingAreaCurrency I_MstrProjHierList ControllingAreaCurrency
WBSElementInternalID I_MstrProjHierList WBSElementInternalID WBS Internal ID
ControllingObjectInternalID I_MstrProjHierList ControllingObjectInternalID
WBSElementObject I_MstrProjHierList WBSElementObject Object number
ExternalId I_MstrProjHierList ExternalId SRM Reference
SalesDocument I_MstrProjHierList SalesDocument SD Document
MasterProjectUUID NodeID
MasterProject I_MasterProjectSalesOrder MasterProject Project ID
MasterProjectName I_MasterProjectSalesOrder MasterProjectName
MasterProjectType I_MasterProjectSalesOrder MasterProjectType
MasterProjectStage I_MasterProjectSalesOrder MasterProjectStage
StartDate I_MasterProjectSalesOrder StartDate Valid From
EndDate I_MasterProjectSalesOrder EndDate Term to
Customer I_MasterProjectSalesOrder Customer Sold-to Party
MasterProjectOrganization I_MasterProjectSalesOrder MasterProjectOrganization
MasterProjectIsConfidential I_MasterProjectSalesOrder MasterProjectIsConfidential
Country I_MasterProjectSalesOrder Country Venue: Ctry/Reg
Region I_MasterProjectSalesOrder Region Venue Region
WorkType I_MasterProjectSalesOrder WorkType SAF-T Work Type
Industry I_MasterProjectSalesOrder Industry Industry Sector
ProjectRisk I_MasterProjectSalesOrder ProjectRisk
FinancialRisk I_MasterProjectSalesOrder FinancialRisk
TechnicalRisk I_MasterProjectSalesOrder TechnicalRisk
OverallRisk I_MasterProjectSalesOrder OverallRisk
MasterProjectItemUUID I_MasterProjectSalesOrder MasterProjectItemUUID
MasterProjectItemObjectType I_MasterProjectSalesOrder MasterProjectItemObjectType
MasterProjectItem I_MasterProjectSalesOrder MasterProjectItem
WBSElement I_MasterProjectSalesOrder WBSElement WBS Internal ID
CompanyCode I_MasterProjectSalesOrder CompanyCode Receiver Company Code
BusinessArea I_MasterProjectSalesOrder BusinessArea Business Area
ControllingArea I_MasterProjectSalesOrder ControllingArea Controlling Area
ControllingObject I_MasterProjectSalesOrder ControllingObject Object number
ControllingAreaCurrency
WBSElementInternalID WBS Internal ID
ControllingObjectInternalID
WBSElementObject Object number
ExternalId SRM Reference
SalesDocument I_MasterProjectSalesOrder SalesDocument SD Document
SalesDocumentItem I_MasterProjectSalesOrder SalesDocumentItem Sales Document Item

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_MstrProjHierSales.
-- 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: PMPHIRSALES

CREATE VIEW P_MstrProjHierSales AS
SELECT
  Hierarchy.MasterProjectUUID AS MasterProjectUUID,
  Hierarchy.MasterProject AS MasterProject,
  Hierarchy.MasterProjectName AS MasterProjectName,
  Hierarchy.MasterProjectType AS MasterProjectType,
  Hierarchy.MasterProjectStage AS MasterProjectStage,
  Hierarchy.StartDate AS StartDate,
  Hierarchy.EndDate AS EndDate,
  Hierarchy.Customer AS Customer,
  Hierarchy.MasterProjectOrganization AS MasterProjectOrganization,
  Hierarchy.MasterProjectIsConfidential AS MasterProjectIsConfidential,
  Hierarchy.Country AS Country,
  Hierarchy.Region AS Region,
  Hierarchy.WorkType AS WorkType,
  Hierarchy.Industry AS Industry,
  Hierarchy.ProjectRisk AS ProjectRisk,
  Hierarchy.FinancialRisk AS FinancialRisk,
  Hierarchy.TechnicalRisk AS TechnicalRisk,
  Hierarchy.OverallRisk AS OverallRisk,
  Hierarchy.MasterProjectItemUUID AS MasterProjectItemUUID,
  Hierarchy.MasterProjectItemObjectType AS MasterProjectItemObjectType,
  Hierarchy.MasterProjectItem AS MasterProjectItem,
  Hierarchy.WBSElement AS WBSElement,
  Hierarchy.CompanyCode AS CompanyCode,
  Hierarchy.BusinessArea AS BusinessArea,
  Hierarchy.ControllingArea AS ControllingArea,
  Hierarchy.ControllingObject AS ControllingObject,
  Hierarchy.ControllingAreaCurrency AS ControllingAreaCurrency,
  Hierarchy.WBSElementInternalID AS WBSElementInternalID,
  Hierarchy.ControllingObjectInternalID AS ControllingObjectInternalID,
  Hierarchy.WBSElementObject AS WBSElementObject,
  Hierarchy.ExternalId AS ExternalId,
  Hierarchy.SalesDocument AS SalesDocument,
  MPSales.SalesDocumentItem AS SalesDocumentItem
FROM I_MstrProjHierList AS Hierarchy
-- UNION with additional select branch(es): I_MasterProjectSalesOrder
;