I_IncidentDamageCaseCube

DDL: I_INCIDENTDAMAGECASECUBE SQL: IINCDMGCUBE Type: view COMPOSITE

Incident Damage Case Cube

I_IncidentDamageCaseCube is a Composite CDS View (Cube) that provides data about "Incident Damage Case Cube" in SAP S/4HANA. It reads from 2 data sources (I_IncidentInvolvedAsset, I_IncidentWithTime) and exposes 58 fields with key field InvolvedAssetUUID. It has 6 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_IncidentInvolvedAsset asset inner
I_IncidentWithTime incwithtime from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_EHSLocation _EHSLocation $projection.EHSLocationUUID = _EHSLocation.EHSLocationUUID
[0..1] I_Equipment _Equipment $projection.Equipment = _Equipment.Equipment
[0..1] I_FunctionalLocation _FunctionalLocation $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation
[0..1] I_InvolvedEquipmentType _InvolvedEquipmentType $projection.InvolvedEquipmentType = _InvolvedEquipmentType.InvolvedEquipmentType
[0..1] I_InvolvedVehicleType _InvolvedVehicleType $projection.InvolvedVehicleType = _InvolvedVehicleType.InvolvedVehicleType
[0..1] I_InvolvedPropertyType _InvolvedPropertyType $projection.InvolvedPropertyType = _InvolvedPropertyType.InvolvedPropertyType

Annotations (13)

NameValueLevelField
EndUserText.label Incident Damage Case Cube view
Analytics.dataCategory #CUBE view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName IINCDMGCUBE view
Analytics.internalName #LOCAL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
Metadata.allowExtensions true view

Fields (58)

KeyFieldSource TableSource FieldDescription
KEY InvolvedAssetUUID I_IncidentInvolvedAsset InvolvedAssetUUID UUID
IncidentUUID I_IncidentWithTime IncidentUUID Incident UUID
IncidentID I_IncidentWithTime IncidentID
IncidentTitle I_IncidentWithTime IncidentTitle
IncidentStatus I_IncidentWithTime IncidentStatus
_IncidentStatus I_IncidentWithTime _IncidentStatus
IncidentCategory I_IncidentWithTime IncidentCategory
_IncidentCategory I_IncidentWithTime _IncidentCategory
IncidentMajorRootCause I_IncidentWithTime IncidentMajorRootCause
_IncidentMajorRootCause I_IncidentWithTime _IncidentMajorRootCause
Country I_IncidentWithTime Country Venue: Ctry/Reg
_Country I_IncidentWithTime _Country
Region I_IncidentWithTime Region Venue Region
_Region I_IncidentWithTime _Region
Plant I_IncidentWithTime Plant Valuation Area
_Plant I_IncidentWithTime _Plant
OrganizationalUnit I_IncidentWithTime OrganizationalUnit Org. Unit ID
_OrgUnit I_IncidentWithTime _OrgUnit
EHSLocationUUID I_IncidentWithTime EHSLocationUUID NodeID
_EHSLocation _EHSLocation
EHSLocationID I_IncidentWithTime EHSLocationID
_CurrentEHSParentLocationID I_IncidentWithTime _CurrentEHSParentLocationID
IncidentDate I_IncidentWithTime IncidentDate
_CalendarDate I_IncidentWithTime _CalendarDate
IncidentMonth I_IncidentWithTime IncidentMonth
_CalendarMonth I_IncidentWithTime _CalendarMonth
IncidentYear I_IncidentWithTime IncidentYear
_CalendarYear I_IncidentWithTime _CalendarYear
IncidentWeekDay I_IncidentWithTime IncidentWeekDay
_WeekDay I_IncidentWithTime _WeekDay
IncidentTimeIsUnknown I_IncidentWithTime IncidentTimeIsUnknown
_IncidentTimeIsUnknown I_IncidentWithTime _IncidentTimeIsUnknown
IncidentTime I_IncidentWithTime IncidentTime
IncidentHour I_IncidentWithTime IncidentHour
_IncidentHour I_IncidentWithTime _IncidentHour
IncidentHasAccessRestriction I_IncidentWithTime IncidentHasAccessRestriction Restricted
_IncidentHasAccessRestriction I_IncidentWithTime _IncidentHasAccessRestriction
InvolvedAssetType I_IncidentInvolvedAsset InvolvedAssetType Worklist Type
_InvolvedAssetType I_IncidentInvolvedAsset _InvolvedAssetType
InvolvedAssetName detail InvolvedAssetName
Equipment detail Equipment Equipment check
_Equipment _Equipment
FunctionalLocation detail FunctionalLocation Object ID
_FunctionalLocation _FunctionalLocation
InvolvedEquipmentType detail InvolvedEquipmentType
_InvolvedEquipmentType _InvolvedEquipmentType
InvolvedVehicleType detail InvolvedVehicleType
_InvolvedVehicleType _InvolvedVehicleType
InvolvedPropertyType detail InvolvedPropertyType
_InvolvedPropertyType _InvolvedPropertyType
InvolvedAssetDamageType
_InvolvedAssetDamageType
InvolvedEquipmentUUID
InvolvedPropertyUUID
InvolvedVehicleUUID
NumberOfAssetCases
_IncidentInvolvedAssetDamage I_IncidentInvolvedAsset _IncidentInvolvedAssetDamage
_IncidentBasicInfo I_IncidentWithTime _IncidentBasicInfo

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_IncidentDamageCaseCube.
-- 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: IINCDMGCUBE

CREATE VIEW I_IncidentDamageCaseCube AS
SELECT
  asset.InvolvedAssetUUID AS InvolvedAssetUUID,
  incwithtime.IncidentUUID AS IncidentUUID,
  incwithtime.IncidentID AS IncidentID,
  incwithtime.IncidentTitle AS IncidentTitle,
  incwithtime.IncidentStatus AS IncidentStatus,
  incwithtime._IncidentStatus AS _IncidentStatus,
  incwithtime.IncidentCategory AS IncidentCategory,
  incwithtime._IncidentCategory AS _IncidentCategory,
  incwithtime.IncidentMajorRootCause AS IncidentMajorRootCause,
  incwithtime._IncidentMajorRootCause AS _IncidentMajorRootCause,
  incwithtime.Country AS Country,
  incwithtime._Country AS _Country,
  incwithtime.Region AS Region,
  incwithtime._Region AS _Region,
  incwithtime.Plant AS Plant,
  incwithtime._Plant AS _Plant,
  incwithtime.OrganizationalUnit AS OrganizationalUnit,
  incwithtime._OrgUnit AS _OrgUnit,
  incwithtime.EHSLocationUUID AS EHSLocationUUID,
  incwithtime.EHSLocationID AS EHSLocationID,
  incwithtime._CurrentEHSParentLocationID AS _CurrentEHSParentLocationID,
  incwithtime.IncidentDate AS IncidentDate,
  incwithtime._CalendarDate AS _CalendarDate,
  incwithtime.IncidentMonth AS IncidentMonth,
  incwithtime._CalendarMonth AS _CalendarMonth,
  incwithtime.IncidentYear AS IncidentYear,
  incwithtime._CalendarYear AS _CalendarYear,
  incwithtime.IncidentWeekDay AS IncidentWeekDay,
  incwithtime._WeekDay AS _WeekDay,
  incwithtime.IncidentTimeIsUnknown AS IncidentTimeIsUnknown,
  incwithtime._IncidentTimeIsUnknown AS _IncidentTimeIsUnknown,
  incwithtime.IncidentTime AS IncidentTime,
  incwithtime.IncidentHour AS IncidentHour,
  incwithtime._IncidentHour AS _IncidentHour,
  incwithtime.IncidentHasAccessRestriction AS IncidentHasAccessRestriction,
  incwithtime._IncidentHasAccessRestriction AS _IncidentHasAccessRestriction,
  asset.InvolvedAssetType AS InvolvedAssetType,
  asset._InvolvedAssetType AS _InvolvedAssetType,
  detail.InvolvedAssetName AS InvolvedAssetName,
  detail.Equipment AS Equipment,
  detail.FunctionalLocation AS FunctionalLocation,
  detail.InvolvedEquipmentType AS InvolvedEquipmentType,
  detail.InvolvedVehicleType AS InvolvedVehicleType,
  detail.InvolvedPropertyType AS InvolvedPropertyType,
  asset._IncidentInvolvedAssetDamage.InvolvedAssetDamageType AS InvolvedAssetDamageType,
  asset._IncidentInvolvedAssetDamage._InvolvedAssetDamageType AS _InvolvedAssetDamageType,
  asset._IncidentInvolvedEquipment.InvolvedEquipmentUUID AS InvolvedEquipmentUUID,
  asset._IncidentInvolvedProperty.InvolvedPropertyUUID AS InvolvedPropertyUUID,
  asset._IncidentInvolvedVehicle.InvolvedVehicleUUID AS InvolvedVehicleUUID,
  cast(1 as ehhss_number_asset_cases) AS NumberOfAssetCases,
  asset._IncidentInvolvedAssetDamage AS _IncidentInvolvedAssetDamage,
  incwithtime._IncidentBasicInfo AS _IncidentBasicInfo
FROM I_IncidentWithTime AS incwithtime
INNER JOIN I_IncidentInvolvedAsset AS asset ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_EHSLocation AS _EHSLocation ON EHSLocationUUID = _EHSLocation.EHSLocationUUID  -- association [0..*]
LEFT OUTER JOIN I_Equipment AS _Equipment ON Equipment = _Equipment.Equipment  -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON FunctionalLocation = _FunctionalLocation.FunctionalLocation  -- association [0..1]
LEFT OUTER JOIN I_InvolvedEquipmentType AS _InvolvedEquipmentType ON InvolvedEquipmentType = _InvolvedEquipmentType.InvolvedEquipmentType  -- association [0..1]
LEFT OUTER JOIN I_InvolvedVehicleType AS _InvolvedVehicleType ON InvolvedVehicleType = _InvolvedVehicleType.InvolvedVehicleType  -- association [0..1]
LEFT OUTER JOIN I_InvolvedPropertyType AS _InvolvedPropertyType ON InvolvedPropertyType = _InvolvedPropertyType.InvolvedPropertyType  -- association [0..1]
;