I_EHSLOCATIONROOT
EHS Location
I_EHSLOCATIONROOT is a CDS View in S/4HANA. EHS Location. It contains 4 fields. 13 CDS views read from this table.
CDS Views using this table (13)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| C_EHSLocationDEX | view_entity | from | CONSUMPTION | EHS Location |
| I_CurrentEHSLocPathWithSelfRef | view | union | COMPOSITE | Union of current location path with self reference |
| I_EHSJobForIdentifyRisks | view | from | COMPOSITE | Interface view for the Jobs used in the EHS Risks |
| I_EHSLocationByIdentifier | view_entity | inner | BASIC | Location by identifier |
| I_EHSLocationForFiltering | view | union | COMPOSITE | EHS Location and Sublocations for Filtering |
| I_EHSLocationGeoPoint | view_entity | inner | COMPOSITE | Location map position |
| I_EHSLocationIdentifier | view_entity | inner | BASIC | EHS Location Identifier |
| I_LocationMigrationValueHelp | view_entity | from | COMPOSITE | Location Migration |
| I_MyEHSLocation | view | inner | BASIC | Determine the defined MyLocation |
| I_OptionalMyEHSLocationFilter | view | from | COMPOSITE | Optional My EHS Location Filter |
| P_EHSJobStepForIdentifyRisks | view | union | CONSUMPTION | Consumption view for the Job Steps used in the EHS Risks |
| P_LOCMANAGERSCOUNT | view | from | COMPOSITE | Location Managers Count |
| P_LOCTECHNICIANSCOUNT | view | from | COMPOSITE | Aggregation on Child EHS Locations |
Fields (4)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | EHSLocationID | EHSLocationID | 4 |
| KEY | EHSLocationUUID | EHSLocationUUID | 4 |
| _EHSLocationRevision | _EHSLocationRevision | 1 | |
| _EHSLocNameCurrentRevision | _EHSLocationName | 1 |
@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
}