I_CURRENTEHSLOCATIONPATH

CDS View

Current EHS Location Structure Path

I_CURRENTEHSLOCATIONPATH is a CDS View in S/4HANA. Current EHS Location Structure Path. 3 CDS views read from this table.

CDS Views using this table (3)

ViewTypeJoinVDMDescription
C_SuperiorEHSLocForIdentifyRsk view from CONSUMPTION Superior EHS Location for Identify Risks
I_CurrentEHSLocPathWithSelfRef view from COMPOSITE Union of current location path with self reference
I_CurrentEHSParentLocationID view from COMPOSITE Current EHS Location and Parent ID
@AbapCatalog:{
    sqlViewName: 'ICUREHSLOCPATH',
    compiler.compareFilter: true,
    preserveKey:true
}
@EndUserText.label: 'Current EHS Location Structure Path'
@VDM.viewType: #COMPOSITE


@AccessControl.authorizationCheck: #NOT_REQUIRED
// Client handling by session

@ClientHandling.algorithm: #SESSION_VARIABLE

// used for BOBF Master Data Object

@ObjectModel:{
    representativeKey: 'EHSLocationUUID',
    usageType:{ serviceQuality: #C,        // < 15 msec

                             sizeCategory:  #M,         // < 100.000

                             dataClass: #MASTER }
}

define view I_CurrentEHSLocationPath
  as select from I_EHSLocHierarchyPath

  // get the current revision of the location structure

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

  association [1..1] to P_EHSLocationHierarchyLevel as _EHSLocationHierarchyLevel on  I_EHSLocationHierarchyRevision.EHSLocHierarchyRevisionUUID = _EHSLocationHierarchyLevel.EHSLocHierarchyRevisionUUID
                                                                                  and $projection.EHSSuperiorLocationUUID                        = _EHSLocationHierarchyLevel.EHSLocationUUID

{
  key EHSLocationUUID,
  key EHSParentLocationUUID as EHSSuperiorLocationUUID,
      _EHSLocationHierarchyLevel.EHSLocationHierarchyLevel,
      _EHSLocation,
      _EHSParentLocation
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_EHSLOCATIONHIERARCHYREVISION",
"I_EHSLOCHIERARCHYPATH",
"P_EHSLOCATIONHIERARCHYLEVEL"
],
"ASSOCIATED":
[
"I_EHSLOCATIONROOT",
"P_EHSLOCATIONHIERARCHYLEVEL"
],
"BASE":
[
"I_EHSLOCHIERARCHYPATH"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/