I_CurrentEHSLocPathWithSelfRef
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CurrentEHSLocationPath | I_CurrentEHSLocationPath | from |
| I_EHSLocationRoot | I_EHSLocationRoot | union |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA