I_EHSLocRespManagerInherited
Location Responsible Manager Inherited
I_EHSLocRespManagerInherited is a Composite CDS View that provides data about "Location Responsible Manager Inherited" in SAP S/4HANA. It reads from 2 data sources (I_EHSLocationHierarchyRevision, I_EHSLocHierarchyPath) and exposes 4 fields with key fields EHSLocationUUID, EHSLocationResponsibleUUID.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSLocationHierarchyRevision | I_EHSLocationHierarchyRevision | inner |
| I_EHSLocHierarchyPath | I_EHSLocHierarchyPath | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILOCRESPMNGRINH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Location Responsible Manager Inherited | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
@AbapCatalog.sqlViewName: 'ILOCRESPMNGRINH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Location Responsible Manager Inherited'
@VDM.viewType: #COMPOSITE
// Client handling by session
@ClientHandling.algorithm: #SESSION_VARIABLE
// used for BOBF Master Data Object
@ObjectModel.usageType:{ serviceQuality: #C, // < 15 msec
sizeCategory: #M, // < 100.000
dataClass: #MASTER }
//This view returns only location responsible Managers by inheritence
//(excluding direct assignees)
define view I_EHSLocRespManagerInherited
as select distinct from I_EHSLocRespManager as loc_resp
inner join I_EHSLocationHierarchyRevision on I_EHSLocationHierarchyRevision.RevisionStartDate <= $session.system_date
and I_EHSLocationHierarchyRevision.RevisionEndDate >= $session.system_date
// get all sub location of my location and my location in addition
inner join I_EHSLocHierarchyPath on I_EHSLocHierarchyPath.EHSLocHierarchyRevisionUUID = I_EHSLocationHierarchyRevision.EHSLocHierarchyRevisionUUID
and(
I_EHSLocHierarchyPath.EHSParentLocationUUID = loc_resp.EHSLocationUUID
or I_EHSLocHierarchyPath.EHSLocationUUID = loc_resp.EHSLocationUUID
and I_EHSLocHierarchyPath.EHSParentLocationUUID = hextobin(
'00000000000000000000000000000000'
)
)
{
key cast (I_EHSLocHierarchyPath.EHSLocationUUID as ehfnd_location_uuid_ref preserving type ) as EHSLocationUUID,
key loc_resp.EHSLocationResponsibleUUID,
loc_resp.EHSLocationPersonRespRole,
loc_resp.EHSLocResponsibleManagerID
}
where
loc_resp.EHSLocationUUID <> hextobin( '00000000000000000000000000000000' )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_EHSLOCATIONHIERARCHYREVISION",
"I_EHSLOCHIERARCHYPATH",
"I_EHSLOCRESPMANAGER"
],
"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