I_IncidentCaseCube

DDL: I_INCIDENTCASECUBE SQL: IINCCASECUBE Type: view COMPOSITE

Incident Case Cube

I_IncidentCaseCube is a Composite CDS View (Cube) that provides data about "Incident Case Cube" in SAP S/4HANA. It reads from 2 data sources (P_IncidentCaseWithType, I_IncidentWithTime) and exposes 44 fields with key fields IncidentUUID, IncidentCaseType, PersonInfoHasAccRestriction. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_IncidentCaseWithType _IncidentCaseWithType inner
I_IncidentWithTime _IncidentWithTime from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_IncidentCaseType _IncidentCaseType $projection.IncidentCaseType = _IncidentCaseType.IncidentCaseType
[0..*] I_EHSLocation _EHSLocation $projection.EHSLocationUUID = _EHSLocation.EHSLocationUUID
[1..1] I_TernaryLogicalState _PersonInfoHasAccRestriction $projection.PersonInfoHasAccRestriction = _PersonInfoHasAccRestriction.TernaryLogicalState

Annotations (12)

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

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY IncidentUUID I_IncidentWithTime IncidentUUID Incident UUID
KEY IncidentCaseType P_IncidentCaseWithType IncidentCaseType
_IncidentCaseType _IncidentCaseType
KEY PersonInfoHasAccRestriction P_IncidentCaseWithType PersonInfoHasAccRestriction
_PersonInfoHasAccRestriction _PersonInfoHasAccRestriction
IncidentID IncidentID
IncidentTitle IncidentTitle
IncidentStatus IncidentStatus
_IncidentStatus _IncidentStatus
IncidentCategory IncidentCategory
_IncidentCategory _IncidentCategory
IncidentMajorRootCause IncidentMajorRootCause
_IncidentMajorRootCause _IncidentMajorRootCause
Country Country Venue: Ctry/Reg
_Country _Country
Region Region Venue Region
_Region _Region
Plant Plant Valuation Area
_Plant _Plant
OrganizationalUnit OrganizationalUnit Org. Unit ID
_OrgUnit _OrgUnit
EHSLocationUUID EHSLocationUUID NodeID
EHSLocationID EHSLocationID
_EHSLocation _EHSLocation
_CurrentEHSParentLocationID _CurrentEHSParentLocationID
IncidentDate IncidentDate
_CalendarDate _CalendarDate
IncidentMonth IncidentMonth
_CalendarMonth _CalendarMonth
IncidentYear IncidentYear
_CalendarYear _CalendarYear
IncidentWeekDay IncidentWeekDay
_WeekDay _WeekDay
IncidentTimeIsUnknown IncidentTimeIsUnknown
_IncidentTimeIsUnknown _IncidentTimeIsUnknown
IncidentTime IncidentTime
IncidentHour IncidentHour
_IncidentHour _IncidentHour
IncidentHasAccessRestriction IncidentHasAccessRestriction Restricted
_IncidentHasAccessRestriction _IncidentHasAccessRestriction
NumberOfInjuryIllnessCases P_IncidentCaseWithType NumberOfInjuryIllnessCases
NumberOfAssetCases P_IncidentCaseWithType NumberOfAssetCases
NumberOfReleaseCases P_IncidentCaseWithType NumberOfReleaseCases
NumberOfNoticeOfViolationCases P_IncidentCaseWithType NumberOfNoticeOfViolationCases

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_IncidentCaseCube.
-- 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: IINCCASECUBE

CREATE VIEW I_IncidentCaseCube AS
SELECT
  _IncidentWithTime.IncidentUUID AS IncidentUUID,
  _IncidentCaseWithType.IncidentCaseType AS IncidentCaseType,
  _IncidentCaseWithType.PersonInfoHasAccRestriction AS PersonInfoHasAccRestriction,
  IncidentID,
  IncidentTitle,
  IncidentStatus,
  IncidentCategory,
  IncidentMajorRootCause,
  Country,
  Region,
  Plant,
  OrganizationalUnit,
  EHSLocationUUID,
  EHSLocationID,
  IncidentDate,
  IncidentMonth,
  IncidentYear,
  IncidentWeekDay,
  IncidentTimeIsUnknown,
  IncidentTime,
  IncidentHour,
  IncidentHasAccessRestriction,
  _IncidentCaseWithType.NumberOfInjuryIllnessCases AS NumberOfInjuryIllnessCases,
  _IncidentCaseWithType.NumberOfAssetCases AS NumberOfAssetCases,
  _IncidentCaseWithType.NumberOfReleaseCases AS NumberOfReleaseCases,
  _IncidentCaseWithType.NumberOfNoticeOfViolationCases AS NumberOfNoticeOfViolationCases
FROM I_IncidentWithTime AS _IncidentWithTime
INNER JOIN P_IncidentCaseWithType AS _IncidentCaseWithType ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_IncidentCaseType AS _IncidentCaseType ON IncidentCaseType = _IncidentCaseType.IncidentCaseType  -- association [1..1]
LEFT OUTER JOIN I_EHSLocation AS _EHSLocation ON EHSLocationUUID = _EHSLocation.EHSLocationUUID  -- association [0..*]
LEFT OUTER JOIN I_TernaryLogicalState AS _PersonInfoHasAccRestriction ON PersonInfoHasAccRestriction = _PersonInfoHasAccRestriction.TernaryLogicalState  -- association [1..1]
;