C_EHSLocHierarchyPathDEX
EHS Location Hierarchy Path
C_EHSLocHierarchyPathDEX is a Consumption CDS View (Dimension) that provides data about "EHS Location Hierarchy Path" in SAP S/4HANA. It reads from 1 data source (I_EHSLocHierarchyPath) and exposes 9 fields with key field EHSLocHierarchyPathUUID. Part of development package EHFND_CNS_LOCATION.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSLocHierarchyPath | EHSLocHierarchyPath | from |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | EHS Location Hierarchy Path | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.sapObjectNodeType.name | EHSLocationHierarchyPath | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Metadata.allowExtensions | true | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocHierarchyPathUUID | I_EHSLocHierarchyPath | EHSLocHierarchyPathUUID | |
| EHSLocHierarchyRevisionUUID | EHSLocationHierarchyRevision | EHSLocHierarchyRevisionUUID | ||
| RevisionStartDate | EHSLocationHierarchyRevision | RevisionStartDate | ||
| RevisionEndDate | EHSLocationHierarchyRevision | RevisionEndDate | ||
| RevisionDescription | EHSLocationHierarchyRevision | RevisionDescription | ||
| EHSLocationUUID | I_EHSLocHierarchyPath | EHSLocationUUID | ||
| EHSLocationID | EHSLocationRoot | EHSLocationID | ||
| EHSParentLocationUUID | I_EHSLocHierarchyPath | EHSParentLocationUUID | ||
| EHSParentLocationID | EHSParentLocationRoot | EHSLocationID |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@EndUserText.label: 'EHS Location Hierarchy Path'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #L,
dataClass: #MIXED
}
@ObjectModel: { modelingPattern: #NONE,
supportedCapabilities: [ #EXTRACTION_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET, #ANALYTICAL_DIMENSION ] }
@ObjectModel.sapObjectNodeType.name: 'EHSLocationHierarchyPath'
@VDM.viewType: #CONSUMPTION
@Analytics: {
dataCategory: #DIMENSION,
internalName: #LOCAL,
dataExtraction: {
enabled: true,
delta.changeDataCapture: {
mapping: [{
table: 'ehfndd_lhr_path',
role: #MAIN,
viewElement: ['EHSLocHierarchyPathUUID'],
tableElement: ['db_key']
}, {
table: 'ehfndd_lhr_rev',
role: #LEFT_OUTER_TO_ONE_JOIN,
viewElement: ['EHSLocHierarchyRevisionUUID'],
tableElement: ['db_key']
}, {
table: 'ehfndd_loc_root',
role: #LEFT_OUTER_TO_ONE_JOIN,
viewElement: ['EHSLocationUUID'],
tableElement: ['db_key']
}, {
table: 'ehfndd_loc_root',
role: #LEFT_OUTER_TO_ONE_JOIN,
viewElement: ['EHSParentLocationUUID'],
tableElement: ['db_key']
}]
}
}
}
@Metadata.allowExtensions: true
define view entity C_EHSLocHierarchyPathDEX
as select from I_EHSLocHierarchyPath as EHSLocHierarchyPath
left outer to one join I_EHSLocationHierarchyRevision as EHSLocationHierarchyRevision on EHSLocHierarchyPath.EHSLocHierarchyRevisionUUID = EHSLocationHierarchyRevision.EHSLocHierarchyRevisionUUID
left outer to one join I_EHSLocationRoot as EHSLocationRoot on EHSLocHierarchyPath.EHSLocationUUID = EHSLocationRoot.EHSLocationUUID
left outer to one join I_EHSLocationRoot as EHSParentLocationRoot on EHSLocHierarchyPath.EHSParentLocationUUID = EHSParentLocationRoot.EHSLocationUUID
{
key EHSLocHierarchyPath.EHSLocHierarchyPathUUID,
EHSLocationHierarchyRevision.EHSLocHierarchyRevisionUUID,
EHSLocationHierarchyRevision.RevisionStartDate,
EHSLocationHierarchyRevision.RevisionEndDate,
EHSLocationHierarchyRevision.RevisionDescription,
EHSLocHierarchyPath.EHSLocationUUID,
EHSLocationRoot.EHSLocationID,
EHSLocHierarchyPath.EHSParentLocationUUID,
EHSParentLocationRoot.EHSLocationID as EHSParentLocationID
}
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