I_IncidentRestrictionAvailable

DDL: I_INCIDENTRESTRICTIONAVAILABLE SQL: IINCRESTRAVAIL Type: view COMPOSITE

Incident Reference Restriction Available

I_IncidentRestrictionAvailable is a Composite CDS View that provides data about "Incident Reference Restriction Available" in SAP S/4HANA. It reads from 2 data sources (I_IncidentInvestigation, I_IncidentInvolvedPerson) and exposes 4 fields with key field EHSTaskRelatedObjInstanceUUID.

Data Sources (2)

SourceAliasJoin Type
I_IncidentInvestigation I_IncidentInvestigation union_all
I_IncidentInvolvedPerson I_IncidentInvolvedPerson from

Annotations (11)

NameValueLevelField
EndUserText.label Incident Reference Restriction Available view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_ALLOWED view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.sqlViewName IINCRESTRAVAIL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY EHSTaskRelatedObjInstanceUUID InvolvedPersonUUID
IncidentUUID IncidentUUID
IncidentUUID IncidentUUID
IncidentHasAccessRestriction InvestigationHasAccRestriction
@EndUserText.label: 'Incident Reference Restriction Available' 
@VDM.viewType: #COMPOSITE

@AccessControl.authorizationCheck: #NOT_ALLOWED // the CDS view is used to determine values needed for the authority check 

// #NOT_REQUIRED because of existing end of purpose check

@AccessControl.personalData.blocking: #NOT_REQUIRED

@AbapCatalog.sqlViewName: 'IINCRESTRAVAIL'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true 
@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #M, dataClass: #TRANSACTIONAL}

define view I_IncidentRestrictionAvailable
 as select from I_IncidentInvolvedPerson                                                                         
{
  key InvolvedPersonUUID                                    as  EHSTaskRelatedObjInstanceUUID,    
      IncidentUUID, 
      PersonInfoHasAccRestriction                           as  IncidentHasAccessRestriction
}
                                     
union all select from I_IncidentInvestigation
{
  key IncidentInvestigationUUID                             as  EHSTaskRelatedObjInstanceUUID, 
      IncidentUUID,
      InvestigationHasAccRestriction                        as  IncidentHasAccessRestriction
}


/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INCIDENTINVESTIGATION",
"I_INCIDENTINVOLVEDPERSON"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/