I_EHSLocationIncludingRoot

DDL: I_EHSLOCATIONINCLUDINGROOT SQL: IEHSLOCIROOT Type: view COMPOSITE Package: EHFND_BO_LOC_IMPL

EHS Location Including the Root Location

I_EHSLocationIncludingRoot is a Composite CDS View that provides data about "EHS Location Including the Root Location" in SAP S/4HANA. It reads from 2 data sources (I_EHSLocation, I_SAPClient) and exposes 22 fields with key fields EHSLocationUUID, RevisionEndDate, RevisionEndDate. It has 1 association to related views. Part of development package EHFND_BO_LOC_IMPL.

Data Sources (2)

SourceAliasJoin Type
I_EHSLocation I_EHSLocation from
I_SAPClient I_SAPClient union

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_OTRText _OTRText _OTRText.Language = $session.system_language

Annotations (10)

NameValueLevelField
EndUserText.label EHS Location Including the Root Location view
VDM.viewType #COMPOSITE view
ObjectModel.representativeKey EHSLocationUUID view
AccessControl.authorizationCheck #MANDATORY view
AbapCatalog.sqlViewName IEHSLOCIROOT view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY EHSLocationUUID I_EHSLocation EHSLocationUUID
KEY RevisionEndDate RevisionEndDate
RevisionStartDate RevisionStartDate
EHSLocationName
EHSLocationType EHSLocationType
EHSLocationStatus EHSLocationStatus
EHSLocationAuthorizationGroup EHSLocationAuthorizationGroup
Plant Plant
CostCenter CostCenter
CompanyCode CompanyCode
BusinessArea BusinessArea
KEY RevisionEndDate
RevisionStartDate
EHSLocationName
EHSLocationType
EHSLocationStatus
EHSLocationAuthorizationGroup
Plant
CostCenter
CompanyCode
BusinessArea
EHSLocationID
@EndUserText.label: 'EHS Location Including the Root Location'
@VDM.viewType: #COMPOSITE
@ObjectModel.representativeKey: 'EHSLocationUUID'

@AccessControl.authorizationCheck: #MANDATORY

@AbapCatalog.sqlViewName: 'IEHSLOCIROOT'
@AbapCatalog.compiler.compareFilter: true

// Client handling by session 

@ClientHandling.algorithm: #SESSION_VARIABLE

// used for BOBF Master Data Object

@ObjectModel.usageType:{ serviceQuality: #C,        // < 15 msec   

                         sizeCategory:  #XL,         // < 100.000.000

                         dataClass: #MASTER } 
                         
define view I_EHSLocationIncludingRoot 
  as select from I_EHSLocation
  {
    key I_EHSLocation.EHSLocationUUID,  
    key RevisionEndDate,
    RevisionStartDate,
    _EHSLocationRevisionName[1: Language = $session.system_language].EHSLocationName,
    EHSLocationType,
    EHSLocationStatus,
    
    // fields for authorization check

    EHSLocationAuthorizationGroup,
    Plant,
    CostCenter,
    CompanyCode,
    BusinessArea,
    EHSLocationID
  }
    
  union select from I_SAPClient // this generates a dummy topmost location

  association [0..*] to I_OTRText as _OTRText on _OTRText.Language = $session.system_language
  { 
     key cast( hextobin( '00000000000000000000000000000000' ) as ehfnd_location_uuid_ref preserving type ) as EHSLocationUUID,
     key cast( '99991231' as ehfnd_revision_split_date ) as RevisionEndDate,
     cast( '00000000' as ehfnd_revision_end_date ) as RevisionStartDate,
     cast( _OTRText[1: OnlnTxtRpstryConceptID = '4544824ECF3DF419E10000000A428B9F'].Text as ehfnd_loc_name ) as EHSLocationName, // OTR Text for "Locations" 

     '' as EHSLocationType,
     // begin correction 2618695 15.03.2018

     '-1' as EHSLocationStatus, // to pass this pseude location through the dcl

     // end correction 2618695 15.03.2018

    
    // fields for authorization check

    '' as EHSLocationAuthorizationGroup,
    '' as Plant,
    '' as CostCenter,
    '' as CompanyCode,
    '' as BusinessArea,
    '' as EHSLocationID
  } where sapclient = $session.client