I_CurrentEHSLocPathWithSelfRef

DDL: I_CURRENTEHSLOCPATHWITHSELFREF Type: view COMPOSITE

Union of current location path with self reference

I_CurrentEHSLocPathWithSelfRef is a Composite CDS View that provides data about "Union of current location path with self reference" in SAP S/4HANA. It reads from 2 data sources (I_CurrentEHSLocationPath, I_EHSLocationRoot) and exposes 6 fields with key fields EHSLocationUUID, EHSSuperiorLocationUUID, EHSSuperiorLocationUUID.

Data Sources (2)

SourceAliasJoin Type
I_CurrentEHSLocationPath I_CurrentEHSLocationPath from
I_EHSLocationRoot I_EHSLocationRoot union

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ICURLOCPTHWSLF view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Union of current location path with self reference view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey EHSLocationUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY EHSLocationUUID EHSLocationUUID
KEY EHSSuperiorLocationUUID EHSSuperiorLocationUUID
EHSLocationHierarchyLevel EHSLocationHierarchyLevel
KEY EHSSuperiorLocationUUID EHSLocationUUID
EHSLocationHierarchyLevel 9999
IsOriginalEHSLocation
@AbapCatalog:{
    sqlViewName: 'ICURLOCPTHWSLF',
    compiler.compareFilter: true,
    preserveKey:true 
}
@EndUserText.label: 'Union of current location path with self reference'
@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_CurrentEHSLocPathWithSelfRef 
  as select from I_CurrentEHSLocationPath
{
  key EHSLocationUUID,
  key EHSSuperiorLocationUUID,
  EHSLocationHierarchyLevel,
  ' ' as IsOriginalEHSLocation
}

union
  select from I_EHSLocationRoot
 
{
  key EHSLocationUUID,
  key EHSLocationUUID as EHSSuperiorLocationUUID,
  9999 as EHSLocationHierarchyLevel, // the self reference shall always have the highest number. It is supposed that a hierarchy will not become this deep.

  'X' as IsOriginalEHSLocation
}

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