I_EHSLocationRevision
EHS Location Revision
I_EHSLocationRevision (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
EHSLocationRevision · Cross Applications
I_EHSLocationRevision is a Basic CDS View (Dimension) that provides data about "EHS Location Revision" in SAP S/4HANA. It reads from 1 data source (I_EHSLocationRevisionBasic) and exposes 48 fields with key fields EHSLocationUUID, RevisionEndDate. It has 20 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | EHS-SUS-FND-EHS |
| Capabilities | Data Source for Data Extraction, Analytical Dimension, Association Target for Defining CDS Entities |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSLocationRevisionBasic | rev | from |
Associations (20)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | I_EHSLocationType | _EHSLocationType | $projection.EHSLocationType = _EHSLocationType.EHSLocationType |
| [0..1] | I_EHSLocationStatus | _EHSLocationStatus | $projection.EHSLocationStatus = _EHSLocationStatus.EHSLocationStatus |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_BusinessArea | _BusinessArea | $projection.BusinessArea = _BusinessArea.BusinessArea |
| [0..1] | I_OrgUnit | _OrganizationalUnit | $projection.OrganizationalUnit = _OrganizationalUnit.OrganizationalUnit |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.StorageLocation = _StorageLocation.StorageLocation and $projection.Plant = _StorageLocation.Plant |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..*] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea |
| [0..1] | I_EHSLocationAuthznGroup | _EHSLocationAuthGroup | $projection.EHSLocationAuthorizationGroup = _EHSLocationAuthGroup.EHSLocationAuthorizationGroup |
| [0..1] | I_Country | _Country | $projection.Country = _Country.Country |
| [0..1] | I_Region | _Region | $projection.Region = _Region.Region and $projection.Country = _Region.Country |
| [0..1] | I_Equipment | _Equipment | $projection.Equipment = _Equipment.Equipment |
| [0..1] | I_FunctionalLocation | _FunctionalLocation | $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation |
| [0..*] | I_EHSLocationRevisionNameT | _EHSLocationRevisionName | $projection.EHSLocationUUID = _EHSLocationRevisionName.EHSLocationUUID and $projection.RevisionEndDate = _EHSLocationRevisionName.RevisionEndDate |
| [0..*] | I_EHSLocationStorageLocation | _EHSLocationStorageLocation | $projection.EHSLocationRevisionUUID = _EHSLocationStorageLocation.EHSLocationRevisionUUID |
| [0..*] | I_EHSLocationBuilding | _EHSLocationBuilding | $projection.EHSLocationRevisionUUID = _EHSLocationBuilding.EHSLocationRevisionUUID |
| [0..*] | I_EHSLocRespTechnicianCombined | _EHSLocRespTechnician | $projection.EHSLocationRevisionUUID = _EHSLocRespTechnician.EHSLocationRevisionUUID |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | EHS Location Revision | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | EHSLocationUUID | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AbapCatalog.sqlViewName | ILOCREV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.sapObjectNodeType.name | EHSLocationRevision | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocationUUID | EHSLocationUUID | Location | |
| KEY | RevisionEndDate | RevisionEndDate | Revision End Date | |
| RevisionStartDate | RevisionStartDate | Revision Start Date | ||
| EHSLocationRevisionUUID | EHSLocationRevisionUUID | EHS Location - Revision UUID | ||
| CreationDateTime | CreationDateTime | Created On | ||
| CreatedByUser | CreatedByUser | Created By | ||
| _CreatedByUser | _CreatedByUser | |||
| LastChangeDateTime | LastChangeDateTime | Last Changed On | ||
| LastChangedByUser | LastChangedByUser | Last Change By | ||
| _LastChangedByUser | _LastChangedByUser | |||
| Latitude | Latitude | Geographic Latitude | ||
| Longitude | Longitude | Geographic Longitude | ||
| EHSLocationType | EHSLocationType | Location Type | ||
| _EHSLocationType | _EHSLocationType | |||
| EHSLocationStatus | EHSLocationStatus | Location Status | ||
| _EHSLocationStatus | _EHSLocationStatus | |||
| Plant | Plant | Valuation Area | ||
| _Plant | _Plant | |||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| _CompanyCode | _CompanyCode | |||
| BusinessArea | BusinessArea | Business Area | ||
| _BusinessArea | _BusinessArea | |||
| ControllingArea | ControllingArea | Controlling Area | ||
| _ControllingArea | _ControllingArea | |||
| CostCenter | CostCenter | Cost Center | ||
| OrganizationalUnit | Organizational Unit ID | |||
| _OrganizationalUnit | _OrganizationalUnit | |||
| StorageLocation | StorageLocation | Storage Location | ||
| _StorageLocation | _StorageLocation | |||
| EHSLocationAuthorizationGroup | Location Authorization Group | |||
| _EHSLocationAuthGroup | _EHSLocationAuthGroup | |||
| Country | Country | Venue: Ctry/Reg | ||
| _Country | _Country | |||
| Region | Region | Venue Region | ||
| _Region | _Region | |||
| CityName | CityName | Name | ||
| StreetName | StreetName | Street Address | ||
| PostalCode | PostalCode | City Postal Code | ||
| EHSLocationPhone | EHSLocationPhone | Telephone Number | ||
| Equipment | Equipment | Equipment check | ||
| _Equipment | _Equipment | |||
| FunctionalLocation | EHSFunctionalLocation | Functional Location ID | ||
| _FunctionalLocation | _FunctionalLocation | |||
| _EHSLocationRevisionName | _EHSLocationRevisionName | |||
| _EHSLocationStorageLocation | _EHSLocationStorageLocation | |||
| _EHSLocationBuilding | _EHSLocationBuilding | |||
| _EHSLocRespTechnician | _EHSLocRespTechnician | |||
| _CostCenter | _CostCenter |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_EHSLocationRevision.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: ILOCREV
CREATE VIEW I_EHSLocationRevision AS
SELECT
EHSLocationUUID,
RevisionEndDate,
RevisionStartDate,
EHSLocationRevisionUUID,
CreationDateTime,
CreatedByUser,
LastChangeDateTime,
LastChangedByUser,
Latitude,
Longitude,
EHSLocationType,
EHSLocationStatus,
Plant,
CompanyCode,
BusinessArea,
ControllingArea,
CostCenter,
cast( OrganizationalUnit as ehfnd_org_unit_id preserving type ) AS OrganizationalUnit,
StorageLocation,
cast( EHSLocationAuthorizationGroup as ehfnd_loc_auth_group preserving type ) AS EHSLocationAuthorizationGroup,
Country,
Region,
CityName,
StreetName,
PostalCode,
EHSLocationPhone,
Equipment,
EHSFunctionalLocation AS FunctionalLocation
FROM I_EHSLocationRevisionBasic AS rev
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_EHSLocationType AS _EHSLocationType ON EHSLocationType = _EHSLocationType.EHSLocationType -- association [0..1]
LEFT OUTER JOIN I_EHSLocationStatus AS _EHSLocationStatus ON EHSLocationStatus = _EHSLocationStatus.EHSLocationStatus -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea -- association [0..1]
LEFT OUTER JOIN I_OrgUnit AS _OrganizationalUnit ON OrganizationalUnit = _OrganizationalUnit.OrganizationalUnit -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON StorageLocation = _StorageLocation.StorageLocation AND Plant = _StorageLocation.Plant -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea -- association [0..*]
LEFT OUTER JOIN I_EHSLocationAuthznGroup AS _EHSLocationAuthGroup ON EHSLocationAuthorizationGroup = _EHSLocationAuthGroup.EHSLocationAuthorizationGroup -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country -- association [0..1]
LEFT OUTER JOIN I_Region AS _Region ON Region = _Region.Region AND Country = _Region.Country -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _Equipment ON Equipment = _Equipment.Equipment -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON FunctionalLocation = _FunctionalLocation.FunctionalLocation -- association [0..1]
LEFT OUTER JOIN I_EHSLocationRevisionNameT AS _EHSLocationRevisionName ON EHSLocationUUID = _EHSLocationRevisionName.EHSLocationUUID AND RevisionEndDate = _EHSLocationRevisionName.RevisionEndDate -- association [0..*]
LEFT OUTER JOIN I_EHSLocationStorageLocation AS _EHSLocationStorageLocation ON EHSLocationRevisionUUID = _EHSLocationStorageLocation.EHSLocationRevisionUUID -- association [0..*]
LEFT OUTER JOIN I_EHSLocationBuilding AS _EHSLocationBuilding ON EHSLocationRevisionUUID = _EHSLocationBuilding.EHSLocationRevisionUUID -- association [0..*]
LEFT OUTER JOIN I_EHSLocRespTechnicianCombined AS _EHSLocRespTechnician ON EHSLocationRevisionUUID = _EHSLocRespTechnician.EHSLocationRevisionUUID -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA