P_MstrProjAggrgdCmtmt

DDL: P_MSTRPROJAGGRGDCMTMT SQL: PMSTRPROJAGCTMT Type: view COMPOSITE

P_MstrProjAggrgdCmtmt is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_MstrProjCommitment, I_MstrProjCostElmntToResource) and exposes 4 fields with key field ControllingObject. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_MstrProjCommitment Commitment from
I_MstrProjCostElmntToResource resource inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea

Annotations (6)

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

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ControllingObject I_MstrProjCommitment ControllingObject Object number
ControllingArea I_MstrProjCommitment ControllingArea Controlling Area
ControllingAreaCurrency _ControllingArea ControllingAreaCurrency
CmtmtCostInGlobalCurrency

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_MstrProjAggrgdCmtmt.
-- 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: PMSTRPROJAGCTMT

CREATE VIEW P_MstrProjAggrgdCmtmt AS
SELECT
  Commitment.ControllingObject AS ControllingObject,
  Commitment.ControllingArea AS ControllingArea,
  _ControllingArea.ControllingAreaCurrency AS ControllingAreaCurrency,
  sum (Commitment.AmountInGlobalCurrency) AS CmtmtCostInGlobalCurrency
FROM I_MstrProjCommitment AS Commitment
INNER JOIN I_MstrProjCostElmntToResource AS resource ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [1..1]
;