P_EntProjCostLineItems
Enterprise Project Cost Line Items
P_EntProjCostLineItems is a Composite CDS View that provides data about "Enterprise Project Cost Line Items" in SAP S/4HANA. It reads from 3 data sources (I_EnterpriseProject, P_PROJCSTLINEITEMS, I_PPM_ProjTeamMembersCntNoSt) and exposes 21 fields with key fields ProjectInternalID, ProjectUUID, Ledger. It has 1 association to related views. Part of development package VDM_PPM_OBJ_ANLYTS_PROJCOST_ML.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_EnterpriseProject | EntProj | left_outer |
| P_PROJCSTLINEITEMS | P_PROJCSTLINEITEMS | from |
| I_PPM_ProjTeamMembersCntNoSt | TeamMemberCnt | left_outer |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_PlanningCategory | fcom_category |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SingleResponsibleForProj | _Responsible | _Responsible.ReferencedObjectUUID = EntProj.ProjectSummaryTaskUUID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEPSRPRLS | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ProjectSummaryTaskUUID | ||||
| KEY | ProjectInternalID | ProjCost | ProjectInternalID | Project Def. |
| KEY | ProjectUUID | I_EnterpriseProject | ProjectUUID | Project UUID |
| KEY | Ledger | ProjCost | Ledger | Ledger |
| Project | I_EnterpriseProject | Project | WBS Element | |
| ProjectDescription | I_EnterpriseProject | ProjectDescription | Project Name | |
| ProfitCenter | I_EnterpriseProject | ProfitCenter | Profit Center | |
| FunctionalArea | I_EnterpriseProject | FunctionalArea | Sendr Fctl Area | |
| ResponsibleCostCenter | I_EnterpriseProject | ResponsibleCostCenter | Responsible Cost Center | |
| ProjectStartDate | I_EnterpriseProject | ProjectStartDate | Latest Planned Start | |
| ProjectEndDate | I_EnterpriseProject | ProjectEndDate | Ltst Planned Finish | |
| CompanyCode | I_EnterpriseProject | CompanyCode | Receiver Company Code | |
| ControllingArea | I_EnterpriseProject | ControllingArea | Controlling Area | |
| Plant | ProjCost | Plant | Valuation Area | |
| ProjectProfileCode | ProjCost | ProjectProfileCode | Project Profile | |
| ProjectType | ProjCost | ProjectType | Project Type | |
| PlanAmountInGlobalCurrency | ||||
| GlobalCurrency | ProjCost | GlobalCurrency | GM Billing Element: Global Currency | |
| BusinessPartnerUUID | _Responsible | BusinessPartnerUUID | UUID | |
| BusinessPartnerFullName | _Responsible | BusinessPartnerFullName | Broker Name | |
| TeamMemberCount |
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_EntProjCostLineItems.
-- 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: PEPSRPRLS
-- Parameters: P_PlanningCategory : fcom_category
CREATE VIEW P_EntProjCostLineItems AS
SELECT
entity : {name: 'C_CostCategoryVH', element: 'PlanningCategory' AS ProjectSummaryTaskUUID,
ProjCost.ProjectInternalID AS ProjectInternalID,
EntProj.ProjectUUID AS ProjectUUID,
ProjCost.Ledger AS Ledger,
EntProj.Project AS Project,
EntProj.ProjectDescription AS ProjectDescription,
EntProj.ProfitCenter AS ProfitCenter,
EntProj.FunctionalArea AS FunctionalArea,
EntProj.ResponsibleCostCenter AS ResponsibleCostCenter,
EntProj.ProjectStartDate AS ProjectStartDate,
EntProj.ProjectEndDate AS ProjectEndDate,
EntProj.CompanyCode AS CompanyCode,
EntProj.ControllingArea AS ControllingArea,
ProjCost.Plant AS Plant,
ProjCost.ProjectProfileCode AS ProjectProfileCode,
ProjCost.ProjectType AS ProjectType,
sum(ProjCost.PlanAmountInGlobalCurrency) AS PlanAmountInGlobalCurrency,
ProjCost.GlobalCurrency AS GlobalCurrency,
_Responsible.BusinessPartnerUUID AS BusinessPartnerUUID,
_Responsible.BusinessPartnerFullName AS BusinessPartnerFullName,
cast( TeamMemberCnt.TeamMemberCount as int4 ) AS TeamMemberCount
FROM P_PROJCSTLINEITEMS
LEFT OUTER JOIN I_EnterpriseProject AS EntProj ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PPM_ProjTeamMembersCntNoSt AS TeamMemberCnt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SingleResponsibleForProj AS _Responsible ON _Responsible.ReferencedObjectUUID = EntProj.ProjectSummaryTaskUUID -- association [0..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