P_PPM_PrjPlnCostLineitems

DDL: P_PPM_PRJPLNCOSTLINEITEMS Type: view COMPOSITE

P_PPM_PrjPlnCostLineitems is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_FinancialPlanningEntryItem, P_PROJECTSEMTAGACC, I_WBSElementBasicData) and exposes 17 fields with key fields Ledger, CompanyCode, ProjectInternalID, ControllingArea, BusinessArea. It has 3 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_FinancialPlanningEntryItem ProjCstLineItm from
P_PROJECTSEMTAGACC SemanticTag inner
I_WBSElementBasicData Task inner

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_Ledger _Ledger $projection.Ledger = _Ledger.Ledger
[1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PPMPRJBYPLNCST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.dataMaintenance #RESTRICTED view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.representativeKey ProjectInternalID view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY Ledger I_FinancialPlanningEntryItem Ledger Ledger
KEY CompanyCode I_FinancialPlanningEntryItem CompanyCode Receiver Company Code
KEY ProjectInternalID I_FinancialPlanningEntryItem ProjectInternalID Project Def.
KEY ControllingArea I_FinancialPlanningEntryItem ControllingArea Controlling Area
KEY BusinessArea I_FinancialPlanningEntryItem BusinessArea Business Area
KEY ProfitCenter I_FinancialPlanningEntryItem ProfitCenter Profit Center
KEY YearMonth _CalendarDate YearMonth Year Month
KEY PlanningCategory I_FinancialPlanningEntryItem PlanningCategory Plan Category
KEY FunctionalArea I_FinancialPlanningEntryItem FunctionalArea Sendr Fctl Area
KEY Plant I_FinancialPlanningEntryItem Plant Valuation Area
KEY ResponsibleCostCenter I_WBSElementBasicData ResponsibleCostCenter Responsible Cost Center
KEY ProjectType I_WBSElementBasicData ProjectType Project Type
GlobalCurrency I_FinancialPlanningEntryItem GlobalCurrency GM Billing Element: Global Currency
AmountInGlobalCurrency
_CompanyCode _CompanyCode
_ControllingArea _ControllingArea
_Ledger _Ledger

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_PPM_PrjPlnCostLineitems.
-- 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_PPM_PrjPlnCostLineitems AS
SELECT
  ProjCstLineItm.Ledger AS Ledger,
  ProjCstLineItm.CompanyCode AS CompanyCode,
  ProjCstLineItm.ProjectInternalID AS ProjectInternalID,
  ProjCstLineItm.ControllingArea AS ControllingArea,
  ProjCstLineItm.BusinessArea AS BusinessArea,
  ProjCstLineItm.ProfitCenter AS ProfitCenter,
  _CalendarDate.YearMonth AS YearMonth,
  ProjCstLineItm.PlanningCategory AS PlanningCategory,
  ProjCstLineItm.FunctionalArea AS FunctionalArea,
  ProjCstLineItm.Plant AS Plant,
  Task.ResponsibleCostCenter AS ResponsibleCostCenter,
  Task.ProjectType AS ProjectType,
  ProjCstLineItm.GlobalCurrency AS GlobalCurrency,
  cast( sum( ProjCstLineItm.AmountInGlobalCurrency ) as /s4ppm/ovr_pln_cos_in_glo_curr ) AS AmountInGlobalCurrency
FROM I_FinancialPlanningEntryItem AS ProjCstLineItm
INNER JOIN I_WBSElementBasicData AS Task ON /* join condition not captured in parsed metadata */
INNER JOIN P_PROJECTSEMTAGACC AS SemanticTag ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1]
;