C_IncidentRelatedTask
Incident Related Task List
C_IncidentRelatedTask is a Consumption CDS View that provides data about "Incident Related Task List" in SAP S/4HANA. It reads from 1 data source (I_IncidentBasicInfo) and exposes 15 fields with key field IncidentUUID. It has 5 associations to related views. It is exposed through 1 OData service (ASQL_F3091). Part of development package EHHSS_CNS_INC_RECORDING.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_IncidentBasicInfo | I_IncidentBasicInfo | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_IncidentTaskDefAndInstance | _IncidentTaskDefAndInstance | $projection.IncidentUUID = _IncidentTaskDefAndInstance.IncidentUUID |
| [0..*] | C_IncidentTaskDefinition | _IncidentTaskDefinition | $projection.IncidentUUID = _IncidentTaskDefinition.IncidentUUID |
| [0..*] | I_EHSLocationRevisionNameT | _EHSLocationRevisionName | $projection.EHSLocationUUID = _EHSLocationRevisionName.EHSLocationUUID and _EHSLocationRevisionName.RevisionEndDate >= $session.system_date and _EHSLocationRevisionName.RevisionStartDate <= $session.system_date |
| [0..*] | I_EHSTaskDefinitionTP | _EHSTaskDefinitionTP | $projection.IncidentUUID = _EHSTaskDefinitionTP.EHSTaskHostObjectInstanceUUID |
| [0..1] | I_IncidentInvestigation | _IncidentInvestigation | $projection.IncidentUUID = _IncidentInvestigation.IncidentUUID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CINCRELTASK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Incident Related Task List | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Consumption.semanticObject | EHSTask | view | |
| ObjectModel.representativeKey | IncidentUUID | view | |
| Metadata.allowExtensions | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F3091 | ASQL_F3091 | C2 | NOT_RELEASED |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | IncidentUUID | IncidentUUID | Incident UUID | |
| IncidentTitle | IncidentTitle | View Title | ||
| IncidentID | _Incident | IncidentID | ||
| IncidentDate | IncidentDate | |||
| _CalendarDate | _CalendarDate | |||
| EHSLocationUUID | EHSLocationUUID | NodeID | ||
| _EHSLocationRoot | _EHSLocationRoot | |||
| _IncidentTaskDefAndInstance | _IncidentTaskDefAndInstance | |||
| _IncidentTaskDefinition | _IncidentTaskDefinition | |||
| _EHSLocationRevisionName | _EHSLocationRevisionName | |||
| EHSLocationID | EHSLocationID | |||
| _Incident | _Incident | |||
| _IncidentInvestigation | _IncidentInvestigation | |||
| EHSTaskHostSemanticObject | ||||
| _EHSTaskDefinitionTP | _EHSTaskDefinitionTP |
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 C_IncidentRelatedTask.
-- 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: CINCRELTASK
CREATE VIEW C_IncidentRelatedTask AS
SELECT
IncidentUUID,
IncidentTitle,
_Incident.IncidentID AS IncidentID,
IncidentDate,
EHSLocationUUID,
EHSLocationID,
cast( 'Incident' as /ui2/semantic_object) AS EHSTaskHostSemanticObject
FROM I_IncidentBasicInfo
LEFT OUTER JOIN C_IncidentTaskDefAndInstance AS _IncidentTaskDefAndInstance ON IncidentUUID = _IncidentTaskDefAndInstance.IncidentUUID -- association [0..*]
LEFT OUTER JOIN C_IncidentTaskDefinition AS _IncidentTaskDefinition ON IncidentUUID = _IncidentTaskDefinition.IncidentUUID -- association [0..*]
LEFT OUTER JOIN I_EHSLocationRevisionNameT AS _EHSLocationRevisionName ON EHSLocationUUID = _EHSLocationRevisionName.EHSLocationUUID AND _EHSLocationRevisionName.RevisionEndDate >= $session.system_date AND _EHSLocationRevisionName.RevisionStartDate <= $session.system_date -- association [0..*]
LEFT OUTER JOIN I_EHSTaskDefinitionTP AS _EHSTaskDefinitionTP ON IncidentUUID = _EHSTaskDefinitionTP.EHSTaskHostObjectInstanceUUID -- association [0..*]
LEFT OUTER JOIN I_IncidentInvestigation AS _IncidentInvestigation ON IncidentUUID = _IncidentInvestigation.IncidentUUID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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