I_EHSLocationRoot
EHS Location
I_EHSLocationRoot is a Basic CDS View (Dimension) that provides data about "EHS Location" in SAP S/4HANA. It reads from 1 data source (ehfndd_loc_root) and exposes 13 fields with key field EHSLocationUUID. It has 5 associations to related views. Part of development package EHFND_BO_LOC_IMPL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ehfndd_loc_root | ehfndd_loc_root | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..*] | I_EHSLocationRevision | _EHSLocationRevision | $projection.EHSLocationUUID = _EHSLocationRevision.EHSLocationUUID |
| [0..*] | I_EHSLocNameCurrentRevision | _EHSLocNameCurrentRevision | $projection.EHSLocationUUID = _EHSLocNameCurrentRevision.EHSLocationUUID |
| [0..1] | I_EHSLocNameFallbackLanguage | _EHSLocNameFallbackLanguage | $projection.EHSLocationUUID = _EHSLocNameFallbackLanguage.EHSLocationUUID |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILOCATIONROOT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | EHS Location | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataExtraction.delta.changeDataCapture.automatic | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | EHSLocationUUID | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.sapObjectNodeType.name | EHSLocation | view | |
| ObjectModel.modelingPattern | #NONE | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocationUUID | |||
| CreationDateTime | ||||
| CreatedByUser | ||||
| _CreatedByUser | _CreatedByUser | |||
| LastChangeDateTime | ||||
| LastChangedByUser | ||||
| _LastChangedByUser | _LastChangedByUser | |||
| EHSLocationID | id | |||
| LocationMigrationSource | migration_src | |||
| WasteRegistrationNumber | waste_reg_nmbr | |||
| _EHSLocationRevision | _EHSLocationRevision | |||
| _EHSLocNameCurrentRevision | _EHSLocNameCurrentRevision | |||
| _EHSLocNameFallbackLanguage | _EHSLocNameFallbackLanguage |
@AbapCatalog:{
sqlViewName: 'ILOCATIONROOT',
compiler.compareFilter: true
}
@EndUserText.label: 'EHS Location'
@Analytics.dataCategory:#DIMENSION
@Analytics.dataExtraction: {
enabled: true,
delta.changeDataCapture.automatic: true
}
@VDM.viewType: #BASIC
@AccessControl: { authorizationCheck: #MANDATORY,
privilegedAssociations: [ '_CreatedByUser', '_LastChangedByUser' ] }
// Client handling by session
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata: { allowExtensions: true,
ignorePropagatedAnnotations: true }
@ObjectModel:{
representativeKey: 'EHSLocationUUID',
compositionRoot: true,
// used for BOBF Master Data Object
usageType:{ serviceQuality: #A,
sizeCategory: #M, // < 100.000
dataClass: #MASTER },
sapObjectNodeType.name: 'EHSLocation',
modelingPattern: #NONE,
supportedCapabilities: [ #ANALYTICAL_DIMENSION, #EXTRACTION_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
}
define view I_EHSLocationRoot
as select from ehfndd_loc_root
association [0..1] to I_User as _CreatedByUser on $projection.CreatedByUser = _CreatedByUser.UserID
association [0..1] to I_User as _LastChangedByUser on $projection.LastChangedByUser = _LastChangedByUser.UserID
association [0..*] to I_EHSLocationRevision as _EHSLocationRevision on $projection.EHSLocationUUID = _EHSLocationRevision.EHSLocationUUID
association [0..*] to I_EHSLocNameCurrentRevision as _EHSLocNameCurrentRevision on $projection.EHSLocationUUID = _EHSLocNameCurrentRevision.EHSLocationUUID
association [0..1] to I_EHSLocNameFallbackLanguage as _EHSLocNameFallbackLanguage on $projection.EHSLocationUUID = _EHSLocNameFallbackLanguage.EHSLocationUUID
{
key cast( db_key as ehfnd_location_uuid_ref preserving type) as EHSLocationUUID,
cast( crea_date_time as ehfnd_bo_crea_date_time preserving type ) as CreationDateTime,
cast( crea_uname as ehfnd_bo_crea_uname preserving type ) as CreatedByUser,
_CreatedByUser,
cast( lchg_date_time as ehfnd_bo_lchg_date_time preserving type ) as LastChangeDateTime,
cast( lchg_uname as ehfnd_bo_lchg_uname preserving type ) as LastChangedByUser,
_LastChangedByUser,
id as EHSLocationID,
migration_src as LocationMigrationSource,
waste_reg_nmbr as WasteRegistrationNumber,
_EHSLocationRevision,
_EHSLocNameCurrentRevision,
_EHSLocNameFallbackLanguage
}
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