P_IncidentTaskReference

DDL: P_INCIDENTTASKREFERENCE SQL: PINCTASKREF Type: view COMPOSITE

P_IncidentTaskReference is a Composite CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 23 fields with key field EHSTaskRelatedObjInstanceUUID.

Data Sources (7)

SourceAliasJoin Type
I_IncidentInvestigation I_IncidentInvestigation union_all
I_IncidentInvolvedEquipment I_IncidentInvolvedEquipment union_all
I_IncidentInvolvedPerson I_IncidentInvolvedPerson from
I_IncidentInvolvedProperty I_IncidentInvolvedProperty union_all
I_IncidentInvolvedVehicle I_IncidentInvolvedVehicle union_all
I_IncidentNoticeOfViolation I_IncidentNoticeOfViolation union_all
I_IncidentRelease I_IncidentRelease union_all

Annotations (11)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.sqlViewName PINCTASKREF view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY EHSTaskRelatedObjInstanceUUID InvolvedPersonUUID
IncidentUUID IncidentUUID Incident UUID
EHSTskRelatedObjectDescription PersonFullName Property
IncidentReferenceCategory
IncidentUUID IncidentUUID Incident UUID
EHSTskRelatedObjectDescription InvolvedVehicleName Property
IncidentReferenceCategory
IncidentUUID IncidentUUID Incident UUID
EHSTskRelatedObjectDescription InvolvedEquipmentName Property
IncidentReferenceCategory
IncidentUUID IncidentUUID Incident UUID
EHSTskRelatedObjectDescription InvolvedPropertyName Property
IncidentReferenceCategory
IncidentUUID IncidentUUID Incident UUID
EHSTskRelatedObjectDescription Property
IncidentReferenceCategory
IncidentUUID IncidentUUID Incident UUID
EHSTskRelatedObjectDescription Property
IncidentReferenceCategory
IncidentUUID IncidentUUID Incident UUID
EHSTskRelatedObjectDescription Property
IncidentReferenceCategory
IncidentHasAccessRestriction

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 P_IncidentTaskReference.
-- 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: PINCTASKREF

CREATE VIEW P_IncidentTaskReference AS
SELECT
  InvolvedPersonUUID AS EHSTaskRelatedObjInstanceUUID,
  IncidentUUID,
  PersonFullName AS EHSTskRelatedObjectDescription,
  cast ('005' as ehhss_inc_node_ref_categ_code) AS IncidentReferenceCategory,
  '' AS IncidentHasAccessRestriction
FROM I_IncidentInvolvedPerson
-- UNION ALL with additional select branch(es): I_IncidentInvolvedVehicle, I_IncidentInvolvedEquipment, I_IncidentInvolvedProperty, I_IncidentInvestigation, I_IncidentNoticeOfViolation, I_IncidentRelease
;