@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