C_ProjectCostPrediction
Project cost prediction
C_ProjectCostPrediction is a Consumption CDS View that provides data about "Project cost prediction" in SAP S/4HANA. It reads from 1 data source (I_ProjectByProjMgrVH) and exposes 31 fields with key field ProjectUUID. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProjectByProjMgrVH | _Proj | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_PlanningCategory | fcom_category |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_EnterpriseProjectCosts | _ProjCostLineItems | _Proj.ProjectInternalID = _ProjCostLineItems.ProjectInternalID and( _ProjCostLineItems.PlanningCategory = $parameters.P_PlanningCategory or _ProjCostLineItems.PlanningCategory = 'ACT01' or _ProjCostLineItems.PlanningCategory = 'PREDICT01' or _ProjCostLineItems.PlanningCategory = 'CMTMT' or _ProjCostLineItems.PlanningCategory = 'PREDICT02' or _ProjCostLineItems.PlanningCategory = 'PREDICT03' ) and _ProjCostLineItems.IsSettled = 'X' |
| [0..*] | I_EntProjSimilarProjBscData | _SimProjCostLineItemData | _SimProjCostLineItemData.ProjectInternalID = _Proj.ProjectInternalID |
| [0..1] | I_SingleResponsibleForProj | _Responsible | _Proj.ProjectSummaryTaskUUID = _Responsible.ReferencedObjectUUID |
| [0..1] | I_UserContactCard | _UserContactCard | $projection.BusinessPartnerUUID = _UserContactCard.BusinessPartnerUUID |
| [0..1] | P_ProjectLastPredictedOn | _PredictedOnFlag | _Proj.ProjectInternalID = _PredictedOnFlag.ProjectInternalID |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPROJCOSTPREDICT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Project cost prediction | view | |
| UI.presentationVariant.sortOrder.by | Project | view | |
| UI.presentationVariant.sortOrder.direction | #ASC | view | |
| UI.headerInfo.typeName | Project | view | |
| UI.headerInfo.typeNamePlural | Projects | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.title.value | Project | view | |
| UI.headerInfo.description.type | #STANDARD | view | |
| UI.headerInfo.description.value | ProjectDescription | view | |
| ObjectModel.representativeKey | ProjectUUID | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| nameC_CostCategoryVH | ||||
| Project | Project | |||
| KEY | ProjectUUID | I_ProjectByProjMgrVH | ProjectUUID | Entity GUID |
| ProjectInternalID | I_ProjectByProjMgrVH | ProjectInternalID | Project Def. | |
| CompanyCode | I_ProjectByProjMgrVH | CompanyCode | Company Code | |
| BusinessPartnerFullName | _Responsible | BusinessPartnerFullName | Project Manager | |
| BusinessPartnerUUID | _Responsible | BusinessPartnerUUID | UUID | |
| GlobalCurrency | _ProjCostLineItems | GlobalCurrency | GM Billing Element: Global Currency | |
| ProjectDescription | I_ProjectByProjMgrVH | ProjectDescription | Project Name | |
| PlannedStartDate | I_ProjectByProjMgrVH | PlannedStartDate | Planned Start Date | |
| PlannedEndDate | I_ProjectByProjMgrVH | PlannedEndDate | Planned End Date | |
| ControllingArea | I_ProjectByProjMgrVH | ControllingArea | Controlling Area | |
| ProfitCenter | I_ProjectByProjMgrVH | ProfitCenter | Profit Center | |
| ComparisonPlanningCategory | ||||
| ActualAmountInGlobalCurrency | Actual Costs in Global Currency | |||
| CmtmtCostInGlobalCurrency | Commitment Costs in Global Currency | |||
| PlanAmountInGlobalCurrency | Planned Costs in Global Currency | |||
| PredictedAmtInGlobalCurrency | Predicted Cost | |||
| LowerPredictionAmtInGlobCrcy | Lower Prediction | |||
| UpperPredictionAmtInGlobCrcy | Upper Prediction | |||
| ActlCmtmtCumltvAmtInGlobCrcy | Assigned Value | |||
| PredictedCostCreationDate | _PredictedOnFlag | CreationDate | Prediction Date | |
| PlanCostComponentName1 | ||||
| PlanCostComponentName2 | ||||
| PlanCostComponentName3 | ||||
| PlanCostForCostComponent1 | ||||
| PlanCostForCostComponent2 | ||||
| PlanCostForCostComponent3 | ||||
| _UserContactCard | _UserContactCard | |||
| _ProjCostLineItems | _ProjCostLineItems | |||
| _SimProjCostLineItemData | _SimProjCostLineItemData |
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 C_ProjectCostPrediction.
-- 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: CPROJCOSTPREDICT
-- Parameters: P_PlanningCategory : fcom_category
CREATE VIEW C_ProjectCostPrediction AS
SELECT
name: 'C_CostCategoryVH' AS nameC_CostCategoryVH,
element: 'PlanningCategory' AS Project,
_Proj.ProjectUUID AS ProjectUUID,
_Proj.ProjectInternalID AS ProjectInternalID,
_Proj.CompanyCode AS CompanyCode,
_Responsible.BusinessPartnerFullName AS BusinessPartnerFullName,
_Responsible.BusinessPartnerUUID AS BusinessPartnerUUID,
_ProjCostLineItems.GlobalCurrency AS GlobalCurrency,
_Proj.ProjectDescription AS ProjectDescription,
_Proj.PlannedStartDate AS PlannedStartDate,
_Proj.PlannedEndDate AS PlannedEndDate,
_Proj.ControllingArea AS ControllingArea,
_Proj.ProfitCenter AS ProfitCenter,
$parameters.P_PlanningCategory AS ComparisonPlanningCategory,
sum(_ProjCostLineItems.ActualAmountInGlobalCurrency) AS ActualAmountInGlobalCurrency,
sum(_ProjCostLineItems.CmtmtCostInGlobalCurrency) AS CmtmtCostInGlobalCurrency,
sum(_ProjCostLineItems.PlanAmountInGlobalCurrency) AS PlanAmountInGlobalCurrency,
sum(_ProjCostLineItems.PredictedAmtInGlobalCurrency) AS PredictedAmtInGlobalCurrency,
sum(_ProjCostLineItems.LowerPredictionAmtInGlobCrcy) AS LowerPredictionAmtInGlobCrcy,
sum(_ProjCostLineItems.UpperPredictionAmtInGlobCrcy) AS UpperPredictionAmtInGlobCrcy,
sum(_ProjCostLineItems.ActlCmtmtCumltvAmtInGlobCrcy) AS ActlCmtmtCumltvAmtInGlobCrcy,
_PredictedOnFlag.CreationDate AS PredictedCostCreationDate,
cast(' ' as fins_sem_tag_name) AS PlanCostComponentName1,
cast(' ' as fins_sem_tag_name) AS PlanCostComponentName2,
cast(' ' as fins_sem_tag_name) AS PlanCostComponentName3,
cast(0 as abap.curr( 23, 2 ) ) AS PlanCostForCostComponent1,
cast(0 as abap.curr( 23, 2 ) ) AS PlanCostForCostComponent2,
cast(0 as abap.curr( 23, 2 ) ) AS PlanCostForCostComponent3
FROM I_ProjectByProjMgrVH AS _Proj
LEFT OUTER JOIN I_EnterpriseProjectCosts AS _ProjCostLineItems ON _Proj.ProjectInternalID = _ProjCostLineItems.ProjectInternalID AND( _ProjCostLineItems.PlanningCategory = $parameters.P_PlanningCategory OR _ProjCostLineItems.PlanningCategory = 'ACT01' OR _ProjCostLineItems.PlanningCategory = 'PREDICT01' OR _ProjCostLineItems.PlanningCategory = 'CMTMT' OR _ProjCostLineItems.PlanningCategory = 'PREDICT02' OR _ProjCostLineItems.PlanningCategory = 'PREDICT03' ) AND _ProjCostLineItems.IsSettled = 'X' -- association [0..*]
LEFT OUTER JOIN I_EntProjSimilarProjBscData AS _SimProjCostLineItemData ON _SimProjCostLineItemData.ProjectInternalID = _Proj.ProjectInternalID -- association [0..*]
LEFT OUTER JOIN I_SingleResponsibleForProj AS _Responsible ON _Proj.ProjectSummaryTaskUUID = _Responsible.ReferencedObjectUUID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON BusinessPartnerUUID = _UserContactCard.BusinessPartnerUUID -- association [0..1]
LEFT OUTER JOIN P_ProjectLastPredictedOn AS _PredictedOnFlag ON _Proj.ProjectInternalID = _PredictedOnFlag.ProjectInternalID -- 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