I_EHSLocationBuilding
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)
| Source | Alias | Join Type |
|---|---|---|
| ehfndd_loc_bldng | ehfndd_loc_bldng | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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