I_EHSLocationBuilding

DDL: I_EHSLOCATIONBUILDING SQL: ILOCBLDNG Type: view BASIC

EHS Location Building

I_EHSLocationBuilding is a Basic CDS View (Dimension) that provides data about "EHS Location Building" in SAP S/4HANA. It reads from 1 data source (ehfndd_loc_bldng) and exposes 7 fields with key field EHSLocationBuildingUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ehfndd_loc_bldng ehfndd_loc_bldng from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_EHSLocationRevision _EHSLocationRevision $projection.EHSLocationRevisionUUID = _EHSLocationRevision.EHSLocationRevisionUUID
[0..1] I_EHSLocationRoot _EHSLocationRoot $projection.EHSLocationUUID = _EHSLocationRoot.EHSLocationUUID
[0..*] I_EHSLocationRevision _BuildingCurrentRevision $projection.BuildingEHSLocationUUID = _BuildingCurrentRevision.EHSLocationUUID and _BuildingCurrentRevision.RevisionEndDate >= $session.system_date and _BuildingCurrentRevision.RevisionStartDate <= $session.system_date

Annotations (14)

NameValueLevelField
EndUserText.label EHS Location Building view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
ObjectModel.representativeKey EHSLocationBuildingUUID view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName ILOCBLDNG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
Metadata.allowExtensions true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY EHSLocationBuildingUUID UUID
EHSLocationUUID root_key UUID
EHSLocationRevisionUUID parent_key UUID
BuildingEHSLocationUUID Location
_EHSLocationRevision _EHSLocationRevision
_EHSLocationRoot _EHSLocationRoot
_BuildingCurrentRevision _BuildingCurrentRevision

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_EHSLocationBuilding.
-- 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: ILOCBLDNG

CREATE VIEW I_EHSLocationBuilding AS
SELECT
  cast( db_key as ehfnd_location_uuid_ref preserving type ) AS EHSLocationBuildingUUID,
  root_key AS EHSLocationUUID,
  parent_key AS EHSLocationRevisionUUID,
  cast( building_loc_key_ref as ehfnd_location_uuid_ref preserving type ) AS BuildingEHSLocationUUID
FROM ehfndd_loc_bldng
LEFT OUTER JOIN I_EHSLocationRevision AS _EHSLocationRevision ON EHSLocationRevisionUUID = _EHSLocationRevision.EHSLocationRevisionUUID  -- association [0..1]
LEFT OUTER JOIN I_EHSLocationRoot AS _EHSLocationRoot ON EHSLocationUUID = _EHSLocationRoot.EHSLocationUUID  -- association [0..1]
LEFT OUTER JOIN I_EHSLocationRevision AS _BuildingCurrentRevision ON BuildingEHSLocationUUID = _BuildingCurrentRevision.EHSLocationUUID AND _BuildingCurrentRevision.RevisionEndDate >= $session.system_date AND _BuildingCurrentRevision.RevisionStartDate <= $session.system_date  -- association [0..*]
;