I_CurrentEHSLocation

DDL: I_CURRENTEHSLOCATION Type: view BASIC

Current EHS Location

I_CurrentEHSLocation is a Basic CDS View (Dimension) that provides data about "Current EHS Location" in SAP S/4HANA. It reads from 1 data source (I_EHSLocation) and exposes 47 fields with key field EHSLocationUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_EHSLocation I_EHSLocation from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_FunctionalLocation _FunctionalLocation $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation
[0..1] I_EHSLocationAuthznGroup _EHSLocationAuthGroup $projection.EHSLocationAuthorizationGroup = _EHSLocationAuthGroup.EHSLocationAuthorizationGroup

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ICUREHSLOC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Current EHS Location view
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
VDM.viewType #BASIC view
ObjectModel.representativeKey EHSLocationUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view

Fields (47)

KeyFieldSource TableSource FieldDescription
KEY EHSLocationUUID I_EHSLocation EHSLocationUUID NodeID
RevisionEndDate I_EHSLocation RevisionEndDate
RevisionStartDate I_EHSLocation RevisionStartDate
EHSLocationRevisionUUID I_EHSLocation EHSLocationRevisionUUID
CreationDateTime I_EHSLocation CreationDateTime Timestamp
CreatedByUser I_EHSLocation CreatedByUser User Name
LastChangeDateTime I_EHSLocation LastChangeDateTime Timestamp
LastChangedByUser I_EHSLocation LastChangedByUser User Name
EHSLocationType I_EHSLocation EHSLocationType Loc. Type
EHSLocationStatus I_EHSLocation EHSLocationStatus
Plant I_EHSLocation Plant Valuation Area
EHSLocationPhone I_EHSLocation EHSLocationPhone
CompanyCode I_EHSLocation CompanyCode Receiver Company Code
BusinessArea I_EHSLocation BusinessArea Business Area
CostCenter I_EHSLocation CostCenter Cost Center
ControllingArea I_EHSLocation ControllingArea Controlling Area
OrganizationalUnit
StorageLocation I_EHSLocation StorageLocation StorageLocation
EHSLocationAuthorizationGroup
Country I_EHSLocation Country Venue: Ctry/Reg
Region I_EHSLocation Region Venue Region
CityName I_EHSLocation CityName Name
StreetName I_EHSLocation StreetName Text
PostalCode I_EHSLocation PostalCode Postal Code
Equipment I_EHSLocation Equipment Equipment check
FunctionalLocation
Latitude I_EHSLocation Latitude Latitude
Longitude I_EHSLocation Longitude Longitude
EHSLocationID I_EHSLocation EHSLocationID
_BusinessArea I_EHSLocation _BusinessArea
_CompanyCode I_EHSLocation _CompanyCode
_ControllingArea I_EHSLocation _ControllingArea
_OrganizationalUnit I_EHSLocation _OrganizationalUnit
_StorageLocation I_EHSLocation _StorageLocation
_Country I_EHSLocation _Country
_CreatedByUser I_EHSLocation _CreatedByUser
_EHSLocationRevisionName I_EHSLocation _EHSLocationRevisionName
_EHSLocationAuthGroup _EHSLocationAuthGroup
_EHSLocationStatus I_EHSLocation _EHSLocationStatus
_EHSLocationType I_EHSLocation _EHSLocationType
_LastChangedByUser I_EHSLocation _LastChangedByUser
_Plant I_EHSLocation _Plant
_Region I_EHSLocation _Region
_Equipment I_EHSLocation _Equipment
_FunctionalLocation _FunctionalLocation
_EHSLocationRoot _EHSLocationRoot
_EHSLocationHierarchy _EHSLocationHierarchy

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_CurrentEHSLocation.
-- 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.

CREATE VIEW I_CurrentEHSLocation AS
SELECT
  I_EHSLocation.EHSLocationUUID AS EHSLocationUUID,
  I_EHSLocation.RevisionEndDate AS RevisionEndDate,
  I_EHSLocation.RevisionStartDate AS RevisionStartDate,
  I_EHSLocation.EHSLocationRevisionUUID AS EHSLocationRevisionUUID,
  I_EHSLocation.CreationDateTime AS CreationDateTime,
  I_EHSLocation.CreatedByUser AS CreatedByUser,
  I_EHSLocation.LastChangeDateTime AS LastChangeDateTime,
  I_EHSLocation.LastChangedByUser AS LastChangedByUser,
  I_EHSLocation.EHSLocationType AS EHSLocationType,
  I_EHSLocation.EHSLocationStatus AS EHSLocationStatus,
  I_EHSLocation.Plant AS Plant,
  I_EHSLocation.EHSLocationPhone AS EHSLocationPhone,
  I_EHSLocation.CompanyCode AS CompanyCode,
  I_EHSLocation.BusinessArea AS BusinessArea,
  I_EHSLocation.CostCenter AS CostCenter,
  I_EHSLocation.ControllingArea AS ControllingArea,
  cast( I_EHSLocation.OrganizationalUnit as ehfnd_org_unit_id_nc preserving type ) AS OrganizationalUnit,
  I_EHSLocation.StorageLocation AS StorageLocation,
  cast( I_EHSLocation.EHSLocationAuthorizationGroup as ehfnd_loc_auth_group_nc preserving type ) AS EHSLocationAuthorizationGroup,
  I_EHSLocation.Country AS Country,
  I_EHSLocation.Region AS Region,
  I_EHSLocation.CityName AS CityName,
  I_EHSLocation.StreetName AS StreetName,
  I_EHSLocation.PostalCode AS PostalCode,
  I_EHSLocation.Equipment AS Equipment,
  cast( substring( I_EHSLocation.FunctionalLocation, 1, 30 ) as vdm_eam_tplnr preserving type ) AS FunctionalLocation,
  I_EHSLocation.Latitude AS Latitude,
  I_EHSLocation.Longitude AS Longitude,
  I_EHSLocation.EHSLocationID AS EHSLocationID,
  I_EHSLocation._BusinessArea AS _BusinessArea,
  I_EHSLocation._CompanyCode AS _CompanyCode,
  I_EHSLocation._ControllingArea AS _ControllingArea,
  I_EHSLocation._OrganizationalUnit AS _OrganizationalUnit,
  I_EHSLocation._StorageLocation AS _StorageLocation,
  I_EHSLocation._Country AS _Country,
  I_EHSLocation._CreatedByUser AS _CreatedByUser,
  I_EHSLocation._EHSLocationRevisionName AS _EHSLocationRevisionName,
  I_EHSLocation._EHSLocationStatus AS _EHSLocationStatus,
  I_EHSLocation._EHSLocationType AS _EHSLocationType,
  I_EHSLocation._LastChangedByUser AS _LastChangedByUser,
  I_EHSLocation._Plant AS _Plant,
  I_EHSLocation._Region AS _Region,
  I_EHSLocation._Equipment AS _Equipment
FROM I_EHSLocation
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON FunctionalLocation = _FunctionalLocation.FunctionalLocation  -- association [0..1]
LEFT OUTER JOIN I_EHSLocationAuthznGroup AS _EHSLocationAuthGroup ON EHSLocationAuthorizationGroup = _EHSLocationAuthGroup.EHSLocationAuthorizationGroup  -- association [0..1]
;