I_EHSInvestigationCube
Investigation Analytic - Cube
I_EHSInvestigationCube is a Composite CDS View (Cube) that provides data about "Investigation Analytic - Cube" in SAP S/4HANA. It reads from 1 data source (I_EHSInvestigation) and exposes 14 fields with key field EHSInvestigationUUID. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSInvestigation | I_EHSInvestigation | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_EHSLocation | _EHSLocation | $projection.ehslocationuuid = _EHSLocation.EHSLocationUUID |
| [0..1] | I_CalendarDate | _CalendarDate | $projection.StartDate = _CalendarDate.CalendarDate |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Investigation Analytic - Cube | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.internalName | #LOCAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSInvestigationUUID | EHSInvestigationUUID | ||
| EHSInvestigationID | EHSInvestigationID | |||
| IncidentID | ||||
| EHSLocationUUID | ||||
| EHSLocationID | ||||
| _EHSLocation | _EHSLocation | |||
| EHSInvestigationStatus | EHSInvestigationStatus | |||
| _EHSInvestigationStatus | _EHSInvestigationStatus | |||
| EHSInvestigationTypeCode | EHSInvestigationTypeCode | |||
| StartDate | EHSInvstgnActualStartDate | |||
| CalendarYear | _CalendarDate | CalendarYear | Year | |
| CalendarMonth | _CalendarDate | CalendarMonth | Calendar Month | |
| CalendarMonthName | Calendar Month | |||
| EHSNumberOfInvestigation | Investigations |
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_EHSInvestigationCube.
-- 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: IINVCUBE
CREATE VIEW I_EHSInvestigationCube AS
SELECT
EHSInvestigationUUID,
EHSInvestigationID,
_EHSInvstgnRelatedObject._Incident.IncidentID AS IncidentID,
_EHSInvstgnRelatedObject._Incident._IncidentBasicInfo.EHSLocationUUID AS EHSLocationUUID,
_EHSInvstgnRelatedObject._Incident._IncidentBasicInfo._EHSLocationRoot.EHSLocationID AS EHSLocationID,
EHSInvestigationStatus,
EHSInvestigationTypeCode,
EHSInvstgnActualStartDate AS StartDate,
_CalendarDate.CalendarYear AS CalendarYear,
_CalendarDate.CalendarMonth AS CalendarMonth,
_CalendarDate._CalendarMonth._Text[1:Language = $session.system_language].CalendarMonthName AS CalendarMonthName,
cast(1 as int4) AS EHSNumberOfInvestigation
FROM I_EHSInvestigation
LEFT OUTER JOIN I_EHSLocation AS _EHSLocation ON ehslocationuuid = _EHSLocation.EHSLocationUUID -- association [0..*]
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON StartDate = _CalendarDate.CalendarDate -- 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