P_EHSLocationHierarchyLevel
P_EHSLocationHierarchyLevel is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_EHSLocHierarchyPath) and exposes 4 fields with key fields EHSLocHierarchyRevisionUUID, EHSLocationUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSLocHierarchyPath | I_EHSLocHierarchyPath | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEHSLHRLOCLVL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocHierarchyRevisionUUID | EHSLocHierarchyRevisionUUID | ||
| KEY | EHSLocationUUID | EHSLocationUUID | ||
| EHSLocationHierarchyLevel | ||||
| _EHSLocation | _EHSLocation |
@AbapCatalog:{
sqlViewName: 'PEHSLHRLOCLVL',
compiler.compareFilter: true,
preserveKey:true
}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM:{
private: true,
viewType: #COMPOSITE
}
// Client handling by session
@ClientHandling.algorithm: #SESSION_VARIABLE
// used for BOBF Master Data Object
@ObjectModel.usageType:{ serviceQuality: #C, // < 15 msec
sizeCategory: #L, // < 10.000.000
dataClass: #MASTER }
//@EndUserText.label: 'Determine the level of a EHS location within the hierarchy'
define view P_EHSLocationHierarchyLevel as select from I_EHSLocHierarchyPath
{
key EHSLocHierarchyRevisionUUID,
key EHSLocationUUID,
count( * ) as EHSLocationHierarchyLevel,
_EHSLocation
} group by EHSLocHierarchyRevisionUUID, EHSLocationUUID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_EHSLOCHIERARCHYPATH"
],
"ASSOCIATED":
[
"I_EHSLOCATIONROOT"
],
"BASE":
[
"I_EHSLOCHIERARCHYPATH"
],
"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