P_PPM_PrjPlnCostLineitems
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)
| Source | Alias | Join Type |
|---|---|---|
| I_FinancialPlanningEntryItem | ProjCstLineItm | from |
| P_PROJECTSEMTAGACC | SemanticTag | inner |
| I_WBSElementBasicData | Task | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA