C_PPM_ProjectBriefCostHeader
Source of Cost Chart
C_PPM_ProjectBriefCostHeader is a Consumption CDS View that provides data about "Source of Cost Chart" in SAP S/4HANA. It reads from 1 data source (R_EnterpriseProject) and exposes 21 fields with key field ProjectUUID. Part of development package ODATA_PPM_PRO_PROJECT_BRIEF.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_EnterpriseProject | PPM | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPPMPROBRFCOSHD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Source of Cost Chart | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.representativeKey | ProjectUUID | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #S | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProjectUUID | R_EnterpriseProject | ProjectUUID | |
| ProjectSummaryTaskUUID | R_EnterpriseProject | ProjectSummaryTaskUUID | ||
| WBSElementInternalID | R_EnterpriseProject | WBSElementInternalID | ||
| Project | R_EnterpriseProject | Project | ||
| ProjectInternalID | R_EnterpriseProject | ProjectInternalID | ||
| Currency | ||||
| ActualCost | ||||
| PlannedCost | ||||
| ActualCostUpToCurPerd | ||||
| PlannedCostUpToCurPerd | ||||
| CostDvtnUpToCurrentPeriod | ||||
| CostDvtnUpToCurPerdCritlty | ||||
| ControllingArea | R_EnterpriseProject | ControllingArea | ||
| ProfitCenter | R_EnterpriseProject | ProfitCenter | ||
| CompanyCode | ||||
| ResponsibleCostCenter | R_EnterpriseProject | ResponsibleCostCenter | ||
| FunctionalArea | R_EnterpriseProject | FunctionalArea | ||
| Plant | R_EnterpriseProject | Plant | ||
| EnterpriseProjectType | R_EnterpriseProject | EnterpriseProjectType | ||
| ProjectProfileCode | R_EnterpriseProject | ProjectProfileCode | ||
| _Currency |
@AbapCatalog.sqlViewName: 'CPPMPROBRFCOSHD'
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label: 'Source of Cost Chart'
@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ObjectModel: {
representativeKey: 'ProjectUUID',
alternativeKey: [ { id : 'ProjectSummaryTaskUUID', element: ['ProjectSummaryTaskUUID'], uniqueness: #UNIQUE } ],
usageType: {
serviceQuality: #D,
dataClass: #MIXED,
sizeCategory: #S
}
}
/** This view delivers just the Global Currency for each project and dummy values that
are replaced with the actual values within the DPC_EXT-Implementation **/
define view C_PPM_ProjectBriefCostHeader
as select from R_EnterpriseProject as PPM
// // additional associatioins to authorization views
// association [0..1] to I_PPM_AuthznByUsrH as _AuthUserFin
// on _AuthUserFin.ReferencedObjectUUID = $projection.ProjectSummaryTaskUUID
// and _AuthUserFin.UserID = $session.user
// and _AuthUserFin.Activity = 'Financials'
// association [0..*] to I_PPM_AuthznBySubstitH as _AuthSubstFin
// on _AuthSubstFin.ReferencedObjectUUID = $projection.ProjectSummaryTaskUUID
// and _AuthSubstFin.UserID = $session.user
// and _AuthSubstFin.Activity = 'Financials'
// association [0..*] to I_PPM_AuthznByUserRoleH as _AuthRoleFin
// on _AuthRoleFin.ReferencedObjectUUID = $projection.ProjectSummaryTaskUUID
// and _AuthRoleFin.UserID = $session.user
// and _AuthRoleFin.Activity = 'Financials'
// association [0..*] to I_PPM_AuthznByUsrGrpH as _AuthGroupFin
// on _AuthGroupFin.ReferencedObjectUUID = $projection.ProjectSummaryTaskUUID
// and _AuthGroupFin.UserID = $session.user
// and _AuthGroupFin.Activity = 'Financials'
{
@UI.hidden: true
key PPM.ProjectUUID,
@UI.hidden: true
PPM.ProjectSummaryTaskUUID,
@UI.hidden: true
PPM.WBSElementInternalID,
@UI.hidden: true
PPM.Project as Project,
@UI.hidden: true
PPM.ProjectInternalID,
@Semantics.currencyCode:true
PPM._ControllingArea.ControllingAreaCurrency as Currency,
@EndUserText: {
label: 'Actual Cost',
quickInfo: 'Actual Cost'
}
@Semantics: { amount : {currencyCode: 'Currency'} }
cast( 0 as abap.curr( 25, 2 )) as ActualCost, //Dummy, calculated within DPC_EXT
@EndUserText: {
label: 'Planned Cost',
quickInfo: 'Planned Cost'
}
@Semantics: { amount : {currencyCode: 'Currency'} }
cast( 0 as abap.curr( 25, 2 )) as PlannedCost, //Dummy, calculated within DPC_EXT
@EndUserText: {
label: 'Actual Cost to Date',
quickInfo: 'Actual Cost to Date'
}
@Semantics: { amount : {currencyCode: 'Currency'} }
cast( 0 as abap.curr( 25, 2 )) as ActualCostUpToCurPerd, //Dummy, calculated within DPC_EXT
@EndUserText: {
label: 'Planned Cost to Date',
quickInfo: 'Planned Cost to Date'
}
@Semantics: { amount : {currencyCode: 'Currency'} }
cast( 0 as abap.curr( 25, 2 )) as PlannedCostUpToCurPerd, //Dummy, calculated within DPC_EXT
@EndUserText: {
label: 'Actual Cost Variance to Date',
quickInfo: 'Actual Cost Variance to Date'
}
@Semantics: { amount : {currencyCode: 'Currency'} }
cast( 0 as abap.curr( 25, 2 )) as CostDvtnUpToCurrentPeriod, //Dummy, calculated within DPC_EXT
' ' as CostDvtnUpToCurPerdCritlty, //Dummy, calculated within DPC_EXT
@Consumption.hidden: 'true'
PPM.ControllingArea,
@Consumption.hidden: 'true'
PPM.ProfitCenter,
@Consumption.hidden: 'true'
PPM._CompanyCode.CompanyCode,
@Consumption.hidden: 'true'
PPM.ResponsibleCostCenter,
@Consumption.hidden: 'true'
PPM.FunctionalArea,
@Consumption.hidden: 'true'
PPM.Plant,
@Consumption.hidden: 'true'
PPM.EnterpriseProjectType,
@Consumption.hidden: 'true'
PPM.ProjectProfileCode,
PPM._ControllingArea._Currency
}
where
PPM._ControllingArea.ControllingAreaCurrency != ''
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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