I_IncidentGroupCube

DDL: I_INCIDENTGROUPCUBE SQL: IINCGROUPCUBE Type: view COMPOSITE

Incident Group - Cube

I_IncidentGroupCube (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Cross Applications

I_IncidentGroupCube is a Composite CDS View (Cube) that provides data about "Incident Group - Cube" in SAP S/4HANA. It reads from 1 data source (I_IncidentWithTime) and exposes 50 fields with key fields IncidentUUID, IncidentGroupUUID. It has 3 associations to related views.

SAP Help Documentation

CategoryAll Incident Groups - Query
Data CategoryCube
StatusStatus
Purpose
This CDS view provides access to data on incidents of all categories, such as the total number of records per incident group and the status, date, time, and location of each incident. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: EHHSS_INC6 (Incidents) EHFND_LOC (Locations)

Structure
Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute NumberOfIncidentRecords Incident Records Measure NumberOfNearMissRecords Near Miss Records Measure NumberOfSftyObservationRecords Safety Observation Records Measure NumberOfInjryIllnLogRecords Injury/Illness Log Entries Measure IncidentUUID Incident UUID Attribute IncidentGroupUUID NodeID Attribute IncidentGroupCode Incident Group Attribute NearMissGroupCode Near Miss Group Attribute SafetyObservationGroupCode Safety Observation Group Attribute IncidentID Incident ID Attribute IncidentTitle Title Attribute IncidentCategory Category Attribute IncidentStatus Status Attribute IncidentMajorRootCause Major Root Cause Attribute IncidentDate Start Date Attribute IncidentYear Calendar Year Attribute IncidentMonth Calendar Month Attribute IncidentYearMonth Year Month Attribute IncidentYearQuarter Calendar Quarter Attribute IncidentWeekDay Week Day Attribute IncidentTimeIsUnknown Time Unknown Attribute IncidentTime Field of type TIMS Attribute IncidentHour Hour Attribute IncidentInjuryIllnLogType Type Attribute IncidentHasAccessRestriction Restricted Attribute EHSLocationID Location ID Attribute EHSLocationUUID Location Attribute OrganizationalUnit Organizational Unit Attribute Plant Plant ID Attribute Country Country/Region Attribute Region Region Attribute EHSIncidentGroupSeverity Severity Level Attribute

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentEHS-SUS-IM
CapabilitiesData Provider for Analytical Queries
PackageCross Applications for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to data on incidents of all categories, such as the total number of records per incident group and the status, date, time, and location of each incident.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_IncidentWithTime I_IncidentWithTime from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_EHSLocation _EHSLocation $projection.EHSLocationUUID = _EHSLocation.EHSLocationUUID
[0..*] I_IncidentGroup _IncidentGroup $projection.IncidentUUID = _IncidentGroup.IncidentUUID
[1..*] I_EHSLocationGeoPoint _EHSLocationGeoPoint $projection.EHSLocationID = _EHSLocationGeoPoint.EHSLocationID

Annotations (14)

NameValueLevelField
EndUserText.label Incident Group - Cube view
Analytics.dataCategory #CUBE view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName IINCGROUPCUBE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view

Fields (50)

KeyFieldSource TableSource FieldDescription
KEY IncidentUUID I_IncidentWithTime IncidentUUID Incident UUID
KEY IncidentGroupUUID _IncidentGroup IncidentGroupUUID NodeID
IncidentGroupCode _IncidentGroup IncidentGroupCode Incident Group
_IncidentGroupCode _IncidentGroup _IncidentGroupCode
NearMissGroupCode _IncidentGroup NearMissGroupCode Near Miss Group
_NearMissGroupCode _IncidentGroup _NearMissGroupCode
SafetyObservationGroupCode _IncidentGroup SafetyObservationGroupCode Safety Observation Group
_SafetyObservationGroupCode _IncidentGroup _SafetyObservationGroupCode
IncidentID IncidentID Incident ID
IncidentTitle IncidentTitle Incident Title
IncidentStatus IncidentStatus Incident Status
_IncidentStatus _IncidentStatus
IncidentCategory IncidentCategory Incident Category
_IncidentCategory _IncidentCategory
IncidentMajorRootCause IncidentMajorRootCause Major Root Cause
_IncidentMajorRootCause _IncidentMajorRootCause
Country Country Country/Region of Incident
_Country _Country
Region Region Region of Incident
_Region _Region
Plant Plant Valuation Area
_Plant _Plant
OrganizationalUnit OrganizationalUnit Organizational Unit ID
EHSLocationUUID EHSLocationUUID Location
EHSLocationID Location ID
_EHSLocationGeoPoint _EHSLocationGeoPoint
_EHSLocation _EHSLocation
_CurrentEHSParentLocationID _CurrentEHSParentLocationID
IncidentDate IncidentDate Incident Start Date
_CalendarDate _CalendarDate
IncidentMonth IncidentMonth Calendar Month
_CalendarMonth _CalendarMonth
IncidentYear IncidentYear Calendar Year
_CalendarYear _CalendarYear
IncidentYearQuarter IncidentYearQuarter Calendar Quarter
_CalendarQuarter _CalendarQuarter
IncidentYearMonth IncidentYearMonth Year Month
_YearMonth _YearMonth
IncidentWeekDay IncidentWeekDay Week Day
_WeekDay _WeekDay
IncidentTimeIsUnknown IncidentTimeIsUnknown Time Unknown for Incident Start
IncidentTime IncidentTime Field of type TIMS
EHSIncidentGroupSeverity _IncidentGroup EHSIncidentGroupSeverity Severity Level Code
_IncidentGroupSeverityText _IncidentGroup _IncidentGroupSeverityText
IncidentHour IncidentHour Hour
_IncidentHour _IncidentHour
IncidentInjuryIllnLogType IncidentInjuryIllnLogType Injury/Illness Log Entry Type
_IncidentInjryIllnLogType _IncidentInjryIllnLogType
IncidentHasAccessRestriction IncidentHasAccessRestriction Restricted Access to Incident Record
_IncidentBasicInfo _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_IncidentGroupCube.
-- 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: IINCGROUPCUBE

CREATE VIEW I_IncidentGroupCube AS
SELECT
  I_IncidentWithTime.IncidentUUID AS IncidentUUID,
  _IncidentGroup.IncidentGroupUUID AS IncidentGroupUUID,
  _IncidentGroup.IncidentGroupCode AS IncidentGroupCode,
  _IncidentGroup._IncidentGroupCode AS _IncidentGroupCode,
  _IncidentGroup.NearMissGroupCode AS NearMissGroupCode,
  _IncidentGroup._NearMissGroupCode AS _NearMissGroupCode,
  _IncidentGroup.SafetyObservationGroupCode AS SafetyObservationGroupCode,
  _IncidentGroup._SafetyObservationGroupCode AS _SafetyObservationGroupCode,
  IncidentID,
  IncidentTitle,
  IncidentStatus,
  IncidentCategory,
  IncidentMajorRootCause,
  Country,
  Region,
  Plant,
  OrganizationalUnit,
  EHSLocationUUID,
  cast(EHSLocationID as ehfnd_loc_id) AS EHSLocationID,
  IncidentDate,
  IncidentMonth,
  IncidentYear,
  IncidentYearQuarter,
  IncidentYearMonth,
  IncidentWeekDay,
  IncidentTimeIsUnknown,
  IncidentTime,
  _IncidentGroup.EHSIncidentGroupSeverity AS EHSIncidentGroupSeverity,
  _IncidentGroup._IncidentGroupSeverityText AS _IncidentGroupSeverityText,
  IncidentHour,
  IncidentInjuryIllnLogType,
  IncidentHasAccessRestriction
FROM I_IncidentWithTime
LEFT OUTER JOIN I_EHSLocation AS _EHSLocation ON EHSLocationUUID = _EHSLocation.EHSLocationUUID  -- association [0..*]
LEFT OUTER JOIN I_IncidentGroup AS _IncidentGroup ON IncidentUUID = _IncidentGroup.IncidentUUID  -- association [0..*]
LEFT OUTER JOIN I_EHSLocationGeoPoint AS _EHSLocationGeoPoint ON EHSLocationID = _EHSLocationGeoPoint.EHSLocationID  -- association [1..*]
;