I_EHSLocationIncludingRoot
EHS Location Including the Root Location
I_EHSLocationIncludingRoot is a Composite CDS View that provides data about "EHS Location Including the Root Location" in SAP S/4HANA. It reads from 2 data sources (I_EHSLocation, I_SAPClient) and exposes 22 fields with key fields EHSLocationUUID, RevisionEndDate, RevisionEndDate. It has 1 association to related views. Part of development package EHFND_BO_LOC_IMPL.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSLocation | I_EHSLocation | from |
| I_SAPClient | I_SAPClient | union |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_OTRText | _OTRText | _OTRText.Language = $session.system_language |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | EHS Location Including the Root Location | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.representativeKey | EHSLocationUUID | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AbapCatalog.sqlViewName | IEHSLOCIROOT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocationUUID | I_EHSLocation | EHSLocationUUID | |
| KEY | RevisionEndDate | RevisionEndDate | ||
| RevisionStartDate | RevisionStartDate | |||
| EHSLocationName | ||||
| EHSLocationType | EHSLocationType | |||
| EHSLocationStatus | EHSLocationStatus | |||
| EHSLocationAuthorizationGroup | EHSLocationAuthorizationGroup | |||
| Plant | Plant | |||
| CostCenter | CostCenter | |||
| CompanyCode | CompanyCode | |||
| BusinessArea | BusinessArea | |||
| KEY | RevisionEndDate | |||
| RevisionStartDate | ||||
| EHSLocationName | ||||
| EHSLocationType | ||||
| EHSLocationStatus | ||||
| EHSLocationAuthorizationGroup | ||||
| Plant | ||||
| CostCenter | ||||
| CompanyCode | ||||
| BusinessArea | ||||
| EHSLocationID |
@EndUserText.label: 'EHS Location Including the Root Location'
@VDM.viewType: #COMPOSITE
@ObjectModel.representativeKey: 'EHSLocationUUID'
@AccessControl.authorizationCheck: #MANDATORY
@AbapCatalog.sqlViewName: 'IEHSLOCIROOT'
@AbapCatalog.compiler.compareFilter: true
// Client handling by session
@ClientHandling.algorithm: #SESSION_VARIABLE
// used for BOBF Master Data Object
@ObjectModel.usageType:{ serviceQuality: #C, // < 15 msec
sizeCategory: #XL, // < 100.000.000
dataClass: #MASTER }
define view I_EHSLocationIncludingRoot
as select from I_EHSLocation
{
key I_EHSLocation.EHSLocationUUID,
key RevisionEndDate,
RevisionStartDate,
_EHSLocationRevisionName[1: Language = $session.system_language].EHSLocationName,
EHSLocationType,
EHSLocationStatus,
// fields for authorization check
EHSLocationAuthorizationGroup,
Plant,
CostCenter,
CompanyCode,
BusinessArea,
EHSLocationID
}
union select from I_SAPClient // this generates a dummy topmost location
association [0..*] to I_OTRText as _OTRText on _OTRText.Language = $session.system_language
{
key cast( hextobin( '00000000000000000000000000000000' ) as ehfnd_location_uuid_ref preserving type ) as EHSLocationUUID,
key cast( '99991231' as ehfnd_revision_split_date ) as RevisionEndDate,
cast( '00000000' as ehfnd_revision_end_date ) as RevisionStartDate,
cast( _OTRText[1: OnlnTxtRpstryConceptID = '4544824ECF3DF419E10000000A428B9F'].Text as ehfnd_loc_name ) as EHSLocationName, // OTR Text for "Locations"
'' as EHSLocationType,
// begin correction 2618695 15.03.2018
'-1' as EHSLocationStatus, // to pass this pseude location through the dcl
// end correction 2618695 15.03.2018
// fields for authorization check
'' as EHSLocationAuthorizationGroup,
'' as Plant,
'' as CostCenter,
'' as CompanyCode,
'' as BusinessArea,
'' as EHSLocationID
} where sapclient = $session.client
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