P_PPM_RespSummaryForObjInRange

DDL: P_PPM_RESPSUMMARYFOROBJINRANGE Type: view COMPOSITE

P_PPM_RespSummaryForObjInRange is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_PPM_BusinessPartnerForObject) and exposes 3 fields with key field ReferencedObjectUUID.

Data Sources (1)

SourceAliasJoin Type
I_PPM_BusinessPartnerForObject I_PPM_BusinessPartnerForObject from

Annotations (11)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName PPPMRSPFROBJRNG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.representativeKey ReferencedObjectUUID view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #M view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY ReferencedObjectUUID ReferencedObjectUUID
NumberOfResponsibles
BusinessPartnerUUID
@VDM.private: true
@VDM.viewType: #COMPOSITE

@AbapCatalog: { 
    sqlViewName: 'PPPMRSPFROBJRNG',
    compiler.compareFilter: true,
    preserveKey:true
}

@ObjectModel: {
   representativeKey: 'ReferencedObjectUUID',
   usageType: {
     serviceQuality:  #B,
     dataClass:       #CUSTOMIZING,
     sizeCategory:    #M
   }
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
//Summary of resp Business Partner for Object in Date Range

define view P_PPM_RespSummaryForObjInRange as select from I_PPM_BusinessPartnerForObject  
{
    key ReferencedObjectUUID,
    count( * ) as NumberOfResponsibles,
    min( I_PPM_BusinessPartnerForObject.BusinessPartnerUUID ) as BusinessPartnerUUID
}
where I_PPM_BusinessPartnerForObject.IsBusinessPartnerResponsible = 'X'
and StaffingPeriodStartDateTime <= tstmp_current_utctimestamp( ) 
and StaffingPeriodFinishDateTime >= tstmp_current_utctimestamp( ) 
 group by ReferencedObjectUUID            
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PPM_BUSINESSPARTNERFOROBJECT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/