I_EHSMyDataCollection
My Data Collections
I_EHSMyDataCollection is a Composite CDS View that provides data about "My Data Collections" in SAP S/4HANA. It reads from 1 data source (I_EHSActiveScenDataColl) and exposes 16 fields with key field DataCollectionUUID. It has 3 associations to related views. Part of development package EHENV_CNS_EMISSION_INVENTORY.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSActiveScenDataColl | EHSActiveScenDataColl | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_EHSMYDATACOLPENDINGAMOUNTS | _PendingAmountsCount | $projection.DataCollectionUUID = _PendingAmountsCount.EHSAmountSourceUUID |
| [0..1] | I_DataCollCurrentSchedule | _DataCollectionCurrentSchedule | $projection.DataCollectionUUID = _DataCollectionCurrentSchedule.DataCollectionUUID |
| [0..1] | I_EHSSubjNameFallbackLanguage | _EHSSubjNameFallbackLanguage | $projection.EHSSubjectUUID = _EHSSubjNameFallbackLanguage.EHSSubjectUUID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IEHSMYDC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | My Data Collections | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DataCollectionUUID | DataCollectionRoot | DataCollectionUUID | NodeID |
| DataCollectionTitle | DataCollectionRoot | DataCollectionTitle | ||
| DataCollectionName | DataCollectionRoot | DataCollectionName | ||
| DataUsagePeriodicity | DataCollectionRoot | DataUsagePeriodicity | ||
| EHSAmountExternalSource | DataCollectionRoot | EHSAmountExternalSource | External Source | |
| EHSNumberOfMissingAmounts | ||||
| EHSSchedulePeriodendasEHSSchedulePeriod | ||||
| EHSSubjectUUID | EHSSubjectUUID | Subject Ref Key | ||
| EHSLocationUUID | EHSLocationUUID | NodeID | ||
| EHSLocationNameendasEHSLocationName | ||||
| UnitOfMeasure | DataCollectionRoot | UnitOfMeasure | Unit Protected Qty | |
| UnitOfMeasureName | DataCollectionRoot | UnitOfMeasureName | Meas. Unit Text | |
| _EHSLocation | _EHSLocation | |||
| _DataCollectionCurrentSchedule | _DataCollectionCurrentSchedule | |||
| _EHSSubjNameFallbackLanguage | _EHSSubjNameFallbackLanguage | |||
| _UnitText | DataCollectionRoot | _UnitText |
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_EHSMyDataCollection.
-- 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: IEHSMYDC
CREATE VIEW I_EHSMyDataCollection AS
SELECT
DataCollectionRoot.DataCollectionUUID AS DataCollectionUUID,
DataCollectionRoot.DataCollectionTitle AS DataCollectionTitle,
DataCollectionRoot.DataCollectionName AS DataCollectionName,
DataCollectionRoot.DataUsagePeriodicity AS DataUsagePeriodicity,
DataCollectionRoot.EHSAmountExternalSource AS EHSAmountExternalSource,
cast( _PendingAmountsCount.NmbrOfAmounts as ehfnd_amns_pending_records preserving type ) AS EHSNumberOfMissingAmounts,
case when _DataCollectionCurrentSchedule.EHSSchedulePeriod is null then '000' else _DataCollectionCurrentSchedule.EHSSchedulePeriod end as EHSSchedulePeriod AS EHSSchedulePeriodendasEHSSchedulePeriod,
EHSSubjectUUID,
EHSLocationUUID,
case when _EHSLocation._EHSLocationRevisionName[ 1: Language = $session.system_language].EHSLocationName is not null then _EHSLocation._EHSLocationRevisionName[1: Language = $session.system_language].EHSLocationName when _EHSLocation._EHSLocationRevisionName[1: Language = 'E'].EHSLocationName is not null then _EHSLocation._EHSLocationRevisionName[1: Language = 'E'].EHSLocationName else _EHSLocation._EHSLocationRevisionName[1: Language is not null].EHSLocationName end as EHSLocationName AS EHSLocationNameendasEHSLocationName,
DataCollectionRoot.UnitOfMeasure AS UnitOfMeasure,
DataCollectionRoot.UnitOfMeasureName AS UnitOfMeasureName,
DataCollectionRoot._UnitText AS _UnitText
INNER JOIN I_EHSActiveScenDataColl AS EHSActiveScenDataColl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_EHSMYDATACOLPENDINGAMOUNTS AS _PendingAmountsCount ON DataCollectionUUID = _PendingAmountsCount.EHSAmountSourceUUID -- association [0..1]
LEFT OUTER JOIN I_DataCollCurrentSchedule AS _DataCollectionCurrentSchedule ON DataCollectionUUID = _DataCollectionCurrentSchedule.DataCollectionUUID -- association [0..1]
LEFT OUTER JOIN I_EHSSubjNameFallbackLanguage AS _EHSSubjNameFallbackLanguage ON EHSSubjectUUID = _EHSSubjNameFallbackLanguage.EHSSubjectUUID -- 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