I_EHSInvestigationCube

DDL: I_EHSINVESTIGATIONCUBE SQL: IINVCUBE Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
I_EHSInvestigation I_EHSInvestigation from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_EHSLocation _EHSLocation $projection.ehslocationuuid = _EHSLocation.EHSLocationUUID
[0..1] I_CalendarDate _CalendarDate $projection.StartDate = _CalendarDate.CalendarDate

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;