I_EHSLocationRoot

DDL: I_EHSLOCATIONROOT Type: view BASIC

EHS Location Root

I_EHSLocationRoot is a Basic CDS View (Dimension) that provides data about "EHS Location Root" 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.

Data Sources (1)

SourceAliasJoin Type
ehfndd_loc_root ehfndd_loc_root from

Associations (5)

CardinalityTargetAliasCondition
[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 (17)

NameValueLevelField
AbapCatalog.sqlViewName ILOCATIONROOT view
AbapCatalog.compiler.compareFilter true view
EndUserText.label EHS Location Root view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled 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 #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.sapObjectNodeType.name EHSLocation view
ObjectModel.modelingPattern #NONE view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY EHSLocationUUID UUID
CreationDateTime crea_date_time Time Stamp
CreatedByUser crea_uname User Name
_CreatedByUser _CreatedByUser
LastChangeDateTime lchg_date_time Time Stamp
LastChangedByUser lchg_uname User Name
_LastChangedByUser _LastChangedByUser
EHSLocationID id WorklistID
LocationMigrationSource migration_src Migration Source
WasteRegistrationNumber waste_reg_nmbr Waste Reg Number
_EHSLocationRevision _EHSLocationRevision
_EHSLocNameCurrentRevision _EHSLocNameCurrentRevision
_EHSLocNameFallbackLanguage _EHSLocNameFallbackLanguage

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_EHSLocationRoot.
-- 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_EHSLocationRoot AS
SELECT
  cast( db_key as ehfnd_location_uuid_ref preserving type) AS EHSLocationUUID,
  crea_date_time AS CreationDateTime,
  crea_uname AS CreatedByUser,
  lchg_date_time AS LastChangeDateTime,
  lchg_uname AS LastChangedByUser,
  id AS EHSLocationID,
  migration_src AS LocationMigrationSource,
  waste_reg_nmbr AS WasteRegistrationNumber
FROM ehfndd_loc_root
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_EHSLocationRevision AS _EHSLocationRevision ON EHSLocationUUID = _EHSLocationRevision.EHSLocationUUID  -- association [0..*]
LEFT OUTER JOIN I_EHSLocNameCurrentRevision AS _EHSLocNameCurrentRevision ON EHSLocationUUID = _EHSLocNameCurrentRevision.EHSLocationUUID  -- association [0..*]
LEFT OUTER JOIN I_EHSLocNameFallbackLanguage AS _EHSLocNameFallbackLanguage ON EHSLocationUUID = _EHSLocNameFallbackLanguage.EHSLocationUUID  -- association [0..1]
;