C_GnrcSftyInstrnFactoryFltrVH

DDL: C_GNRCSFTYINSTRNFACTORYFLTRVH Type: view CONSUMPTION

Factory locations for generic safety instruction

C_GnrcSftyInstrnFactoryFltrVH is a Consumption CDS View that provides data about "Factory locations for generic safety instruction" in SAP S/4HANA. It reads from 3 data sources (I_EHSLocationHierarchyNode, I_EHSLocationHierarchyRevision, I_SafetyInstructionDefinition) and exposes 11 fields with key field EHSLocationUUID. It has 1 association to related views.

Data Sources (3)

SourceAliasJoin Type
I_EHSLocationHierarchyNode I_EHSLocationHierarchyNode inner
I_EHSLocationHierarchyRevision I_EHSLocationHierarchyRevision inner
I_SafetyInstructionDefinition I_SafetyInstructionDefinition inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_CurrentEHSLocationNameText _EHSLocationName $projection.EHSLocationUUID = _EHSLocationName.EHSLocationUUID and _EHSLocationName.Language = $session.system_language

Annotations (16)

NameValueLevelField
EndUserText.label Factory locations for generic safety instruction view
AbapCatalog.sqlViewName CFSIGNRCLOCVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey EHSLocationUUID view
ObjectModel.semanticKey EHSLocationUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
Search.searchable true view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY EHSLocationUUID I_EHSLocation EHSLocationUUID
EHSLocationType
EHSLocationName _EHSLocationName EHSLocationName
Plant I_EHSLocation Plant
EHSLocationStatus I_EHSLocation EHSLocationStatus
EHSLocationAuthorizationGroup
CostCenter I_EHSLocation CostCenter
Country I_EHSLocation Country
CompanyCode I_EHSLocation CompanyCode
BusinessArea I_EHSLocation BusinessArea
Associations_EHSLocationName
@EndUserText.label: 'Factory locations for generic safety instruction'

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

@AccessControl.authorizationCheck: #CHECK

@VDM.viewType: #CONSUMPTION

@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel: {
                dataCategory:#VALUE_HELP,
                representativeKey: 'EHSLocationUUID',
                semanticKey: 'EHSLocationUUID',
                usageType:{ serviceQuality: #C,
                            sizeCategory:  #M,
                            dataClass: #MIXED }
               }

@Search.searchable: true

@Metadata: { ignorePropagatedAnnotations: true,
             allowExtensions:true }

define view C_GnrcSftyInstrnFactoryFltrVH
  as select distinct from I_EHSLocation
 
    inner join   I_SafetyInstructionDefinition  on  I_EHSLocation.Plant           = I_SafetyInstructionDefinition.Plant
                                                and I_EHSLocation.EHSLocationType = I_SafetyInstructionDefinition.SafetyInstructionLocType
                                                and I_SafetyInstructionDefinition.SafetyInstructionType = 'GENRC'

    inner join   I_EHSLocationHierarchyRevision on  I_EHSLocationHierarchyRevision.RevisionStartDate <= $session.system_date
                                                and I_EHSLocationHierarchyRevision.RevisionEndDate   >= $session.system_date

    inner join   I_EHSLocationHierarchyNode     on  I_EHSLocationHierarchyNode.EHSLocationUUID             = I_EHSLocation.EHSLocationUUID
                                                and I_EHSLocationHierarchyNode.EHSLocHierarchyRevisionUUID = I_EHSLocationHierarchyRevision.EHSLocHierarchyRevisionUUID

  association [0..1] to I_CurrentEHSLocationNameText as _EHSLocationName on  $projection.EHSLocationUUID = _EHSLocationName.EHSLocationUUID
                                                                         and _EHSLocationName.Language   = $session.system_language

{

         @ObjectModel: { filter.enabled: false,
                         sort.enabled: true,
                         text: { association: '_EHSLocationName',
                                 control: #ASSOCIATED_TEXT_UI_HIDDEN } }
  key    I_EHSLocation.EHSLocationUUID,


         @Consumption.hidden: true
         @ObjectModel.readOnly: true
         cast ( EHSLocationType as ehfnd_loc_type_code_nc preserving type )                             as EHSLocationType,

         @ObjectModel: { readOnly: true,
                         filter.enabled: true,
                         sort.enabled: true }
         @Search: { defaultSearchElement: true,
                    ranking: #HIGH,
                    fuzzinessThreshold: 0.9 }
         _EHSLocationName.EHSLocationName,

         @Search: { defaultSearchElement: true,
                    fuzzinessThreshold: 1,
                    ranking: #MEDIUM }
         @ObjectModel.readOnly: true
         I_EHSLocation.Plant,

         @Consumption.hidden: true
         @ObjectModel.readOnly: true
         I_EHSLocation.EHSLocationStatus,

         @Consumption.hidden: true
         @ObjectModel.readOnly: true
         cast( I_EHSLocation.EHSLocationAuthorizationGroup as ehfnd_loc_auth_group_nc preserving type ) as EHSLocationAuthorizationGroup,

         @Search: { defaultSearchElement: true,
                    fuzzinessThreshold: 1,
                    ranking: #MEDIUM }
         @ObjectModel.readOnly: true
         I_EHSLocation.CostCenter,

         @Search: { defaultSearchElement: true,
                    fuzzinessThreshold: 1,
                    ranking: #MEDIUM }
         @ObjectModel.readOnly: true
         I_EHSLocation.Country,

         @Consumption.hidden: true
         @ObjectModel.readOnly: true
         I_EHSLocation.CompanyCode,

         @Consumption.hidden: true
         @ObjectModel.readOnly: true
         I_EHSLocation.BusinessArea,

         -- Associations
         _EHSLocationName

}
where
      I_EHSLocation.RevisionStartDate <= $session.system_date
  and I_EHSLocation.RevisionEndDate   >= $session.system_date