P_ProjectCostSum

DDL: P_PROJECTCOSTSUM SQL: PPROCSTSUM Type: view COMPOSITE

P_ProjectCostSum is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_EnterpriseProjectCosts) and exposes 2 fields with key field ProjectInternalID.

Data Sources (1)

SourceAliasJoin Type
P_EnterpriseProjectCosts costline from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PPROCSTSUM view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY ProjectInternalID P_EnterpriseProjectCosts ProjectInternalID
ActualAmountInGlobalCurrency
@AbapCatalog.sqlViewName: 'PPROCSTSUM'
@AbapCatalog.compiler.compareFilter: true
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED

@ClientHandling: {
  type:      #CLIENT_DEPENDENT,
  algorithm: #SESSION_VARIABLE
}

@ObjectModel: {
  usageType:{ sizeCategory: #XXL,
              dataClass:    #MIXED,
              serviceQuality: #D    }
}

define view P_ProjectCostSum as select from P_EnterpriseProjectCosts as costline
                                                           
{

     key costline.ProjectInternalID,     
     @DefaultAggregation: #SUM
     sum (costline.AmountInGlobalCurrency) as ActualAmountInGlobalCurrency 

} where costline.PlanningCategory = 'ACT01' and costline.ProjectInternalID <> '00000000' and IsSettled = 'X'
group by costline.ProjectInternalID