I_ACTIVERISK

CDS View

Count of Active Risk

I_ACTIVERISK is a CDS View in S/4HANA. Count of Active Risk. It contains 1 fields.

Fields (1)

KeyField CDS FieldsUsed in Views
MstrProjActiveRiskCount MstrProjActiveRiskCount 1
@AbapCatalog.sqlViewName: 'IACTIVERISK'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Count of Active Risk'
@VDM.viewType: #BASIC
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #MIXED
define view I_ActiveRisk
  as select from P_RootNode
    inner join   /cpd/c_rm_stat on P_RootNode.risk_status = /cpd/c_rm_stat.status_id
    association[1..1] to I_MasterProject as _MasterProject on $projection.MasterProjectUUID = _MasterProject.ProjectUUID
{
  P_RootNode.id as MasterProjectUUID,
  count(*)        as MstrProjActiveRiskCount,
  _MasterProject.MasterProjectType,
  _MasterProject.MasterProject,
  _MasterProject.MasterProjectOrganization,
  _MasterProject.MasterProjectIsConfidential
  
  
}
where
  (
       /cpd/c_rm_stat.status_action = '1'
    or /cpd/c_rm_stat.status_action = '2'
  )
  and  P_RootNode.archiving != '02'
  and(
       P_RootNode.risk_oppt         = '-'
    or P_RootNode.risk_oppt         = ''
  )
group by
  P_RootNode.id,
  P_RootNode.archiving,
  _MasterProject.MasterProjectType,
  _MasterProject.MasterProject,
  _MasterProject.MasterProjectOrganization,
  _MasterProject.MasterProjectIsConfidential
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MASTERPROJECT",
"P_ROOTNODE",
"/CPD/C_RM_STAT"
],
"ASSOCIATED":
[
"I_MASTERPROJECT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/