I_EHSDataSet
Data Sets
I_EHSDataSet is a Composite CDS View that provides data about "Data Sets" in SAP S/4HANA. It reads from 4 data sources (I_CalcDefResultHeader, I_DataCollectionRootBasic, I_LocAggregationRoot, I_SamplingHeader) and exposes 42 fields with key field EHSComplianceScenActivityUUID. It has 5 associations to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_CalcDefResultHeader | CalcDefResultHeader | union |
| I_DataCollectionRootBasic | DataCollectionRootBasic | from |
| I_LocAggregationRoot | LocAggregation | union |
| I_SamplingHeader | SamplingHeader | union |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_EHSLocationRoot | _EHSLocationRoot | $projection.EHSLocationUUID = _EHSLocationRoot.EHSLocationUUID |
| [0..*] | I_EHSLocationRevisionBasic | _EHSLocationRevisionBasic | $projection.EHSLocationUUID = _EHSLocationRevisionBasic.EHSLocationUUID |
| [1..1] | I_LocationDescFallbackLang | _LocTextDesc | $projection.EHSLocationUUID = _LocTextDesc.EHSLocationUUID |
| [0..1] | I_EHSLocationTypeText | _EHSLocationTypeText | $projection.EHSLocationType = _EHSLocationTypeText.EHSLocationType and _EHSLocationTypeText.Language = $session.system_language |
| [0..*] | I_OTRText | _OTRText | _OTRText.Language = $session.system_language |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IEHSDATASET | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Data Sets | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.representativeKey | EHSComplianceScenActivityUUID | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSComplianceScenActivityUUID | I_DataCollectionRootBasic | DataCollectionUUID | UUID |
| EHSClassifiedDataTitle | I_DataCollectionRootBasic | DataCollectionTitle | View Title | |
| EHSClassifiedDataName | I_DataCollectionRootBasic | DataCollectionName | Zone name | |
| EHSLocationName | _LocTextDesc | EHSLocationName | ||
| EHSLocationType | _LocTextDesc | EHSLocationType | Loc. Type | |
| EHSLocationUUID | I_DataCollectionRootBasic | EHSLocationUUID | NodeID | |
| EHSAmountSourceType | ||||
| EHSAmountSourceTypeName | ||||
| _EHSLocationRoot | _EHSLocationRoot | |||
| _EHSLocationRevisionBasic | _EHSLocationRevisionBasic | |||
| _LocTextDesc | _LocTextDesc | |||
| EHSClassifiedDataTitle | I_CalcDefResultHeader | CalculationResultHeaderTitle | View Title | |
| EHSClassifiedDataName | I_CalcDefResultHeader | CalculationResultHeaderName | Zone name | |
| EHSLocationName | _LocTextDesc | EHSLocationName | ||
| EHSLocationType | _LocTextDesc | EHSLocationType | Loc. Type | |
| EHSLocationUUID | I_CalcDefResultHeader | EHSLocationUUID | NodeID | |
| EHSAmountSourceType | ||||
| EHSAmountSourceTypeName | ||||
| _EHSLocationRoot | _EHSLocationRoot | |||
| _EHSLocationRevisionBasic | _EHSLocationRevisionBasic | |||
| _LocTextDesc | _LocTextDesc | |||
| EHSClassifiedDataTitle | I_SamplingHeader | SamplingHeaderTitle | View Title | |
| EHSClassifiedDataName | SamplingDefinitionRoot | SamplingDefinitionName | Zone name | |
| EHSLocationName | _LocTextDesc | EHSLocationName | ||
| EHSLocationType | _LocTextDesc | EHSLocationType | Loc. Type | |
| EHSLocationUUID | SamplingDefinitionRoot | EHSLocationUUID | NodeID | |
| EHSAmountSourceType | ||||
| EHSAmountSourceTypeName | ||||
| _EHSLocationRoot | _EHSLocationRoot | |||
| _EHSLocationRevisionBasic | _EHSLocationRevisionBasic | |||
| _LocTextDesc | _LocTextDesc | |||
| EHSClassifiedDataTitle | I_LocAggregationRoot | LocAggregationTitle | View Title | |
| EHSClassifiedDataName | I_LocAggregationRoot | LocAggregationName | Zone name | |
| EHSLocationName | _LocTextDesc | EHSLocationName | ||
| EHSLocationType | _LocTextDesc | EHSLocationType | Loc. Type | |
| EHSLocationUUID | I_LocAggregationRoot | EHSLocationUUID | NodeID | |
| EHSAmountSourceType | ||||
| EHSAmountSourceTypeName | ||||
| _EHSLocationRoot | _EHSLocationRoot | |||
| _EHSLocationRevisionBasic | _EHSLocationRevisionBasic | |||
| _LocTextDesc | _LocTextDesc | |||
| _EHSLocationTypeText | _EHSLocationTypeText |
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_EHSDataSet.
-- 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: IEHSDATASET
CREATE VIEW I_EHSDataSet AS
SELECT
DataCollectionRootBasic.DataCollectionUUID AS EHSComplianceScenActivityUUID,
DataCollectionRootBasic.DataCollectionTitle AS EHSClassifiedDataTitle,
DataCollectionRootBasic.DataCollectionName AS EHSClassifiedDataName,
_LocTextDesc.EHSLocationName AS EHSLocationName,
_LocTextDesc.EHSLocationType AS EHSLocationType,
DataCollectionRootBasic.EHSLocationUUID AS EHSLocationUUID,
cast( '02' as char2 ) AS EHSAmountSourceType,
_OTRText[1: OnlnTxtRpstryConceptID = '005056B252701EE3978D93FD8D4489AA'].Text AS EHSAmountSourceTypeName
FROM I_DataCollectionRootBasic AS DataCollectionRootBasic
LEFT OUTER JOIN I_EHSLocationRoot AS _EHSLocationRoot ON EHSLocationUUID = _EHSLocationRoot.EHSLocationUUID -- association [1..1]
LEFT OUTER JOIN I_EHSLocationRevisionBasic AS _EHSLocationRevisionBasic ON EHSLocationUUID = _EHSLocationRevisionBasic.EHSLocationUUID -- association [0..*]
LEFT OUTER JOIN I_LocationDescFallbackLang AS _LocTextDesc ON EHSLocationUUID = _LocTextDesc.EHSLocationUUID -- association [1..1]
LEFT OUTER JOIN I_EHSLocationTypeText AS _EHSLocationTypeText ON EHSLocationType = _EHSLocationTypeText.EHSLocationType AND _EHSLocationTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_OTRText AS _OTRText ON _OTRText.Language = $session.system_language -- association [0..*]
-- UNION with additional select branch(es): I_CalcDefResultHeader, I_SamplingHeader, I_LocAggregationRoot
;
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