I_LocAggregationRoot
Location Aggregation Root
I_LocAggregationRoot is a Basic CDS View that provides data about "Location Aggregation Root" in SAP S/4HANA. It reads from 1 data source (ehenvd_adef_root) and exposes 18 fields with key field LocAggregationUUID. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ehenvd_adef_root | ehenvd_adef_root | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UnitOfMeasure | _UnitText | $projection.UnitOfMeasure = _UnitText.UnitOfMeasure |
| [1..1] | I_EHSLocationRevision | _EHSLocation | $projection.EHSLocationUUID = _EHSLocation.EHSLocationUUID and( _EHSLocation.RevisionStartDate <= $session.system_date and _EHSLocation.RevisionEndDate >= $session.system_date ) |
| [0..1] | I_EHSDataPeriod | _EHSDataPeriod | $projection.DataUsagePeriodicity = _EHSDataPeriod.EHSDataPeriod |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IADEFROOT | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Location Aggregation Root | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LocAggregationUUID | db_key | UUID | |
| CreationDateTime | Created On/At | |||
| CreatedByUser | user_id_cr | Created By | ||
| LastChangeDateTime | Changed On/At | |||
| LastChangedByUser | user_id_ch | Changed By | ||
| LocAggregationID | id | WorklistID | ||
| LocAggregationMigrationSource | migration_src | Migration Source | ||
| LocAggregationName | name | Zone name | ||
| DataUsagePeriodicity | Data Period | |||
| EHSLocationUUID | NodeID | |||
| _EHSLocation | _EHSLocation | |||
| UnitOfMeasure | UoM | |||
| _UnitText | _UnitText | |||
| EHSSubjectType | subject_type_code | Subject Type | ||
| EHSSubjectUUID | subject_root_key_ref | Subject Ref Key | ||
| LocAggregationTitle | title | View Title | ||
| EHSDataClassifierUUID | Classifier | |||
| _EHSDataPeriod | _EHSDataPeriod |
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_LocAggregationRoot.
-- 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: IADEFROOT
CREATE VIEW I_LocAggregationRoot AS
SELECT
db_key AS LocAggregationUUID,
cast( datetime_cr as ehfnd_datetime_cr preserving type ) AS CreationDateTime,
user_id_cr AS CreatedByUser,
cast( datetime_ch as ehfnd_datetime_ch preserving type ) AS LastChangeDateTime,
user_id_ch AS LastChangedByUser,
id AS LocAggregationID,
migration_src AS LocAggregationMigrationSource,
name AS LocAggregationName,
cast ( usage_period as ehenv_adef_usage_period_nc preserving type ) AS DataUsagePeriodicity,
cast( loc_root_key_ref as ehfnd_location_uuid_ref preserving type ) AS EHSLocationUUID,
cast( unit as ehfnd_unit_code_nce preserving type ) AS UnitOfMeasure,
subject_type_code AS EHSSubjectType,
subject_root_key_ref AS EHSSubjectUUID,
title AS LocAggregationTitle,
cast( aggr_cla_root_key_ref as /bobf/conf_key ) AS EHSDataClassifierUUID
FROM ehenvd_adef_root
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitText ON UnitOfMeasure = _UnitText.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_EHSLocationRevision AS _EHSLocation ON EHSLocationUUID = _EHSLocation.EHSLocationUUID AND( _EHSLocation.RevisionStartDate <= $session.system_date AND _EHSLocation.RevisionEndDate >= $session.system_date ) -- association [1..1]
LEFT OUTER JOIN I_EHSDataPeriod AS _EHSDataPeriod ON DataUsagePeriodicity = _EHSDataPeriod.EHSDataPeriod -- association [0..1]
;
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