C_EHSCmplncRqmtRelatedTask

DDL: C_EHSCMPLNCRQMTRELATEDTASK SQL: CEHSREQTASKREL Type: view CONSUMPTION

EHS CR Task, task definitions and instances for paragraph

C_EHSCmplncRqmtRelatedTask is a Consumption CDS View that provides data about "EHS CR Task, task definitions and instances for paragraph" in SAP S/4HANA. It reads from 1 data source (I_CmplRqVersEnhanced) and exposes 14 fields with key field CmplRqVersUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CmplRqVersEnhanced I_CmplRqVersEnhanced from

Associations (2)

CardinalityTargetAliasCondition
[0..*] C_EHSCmplncRqmtTskDefAndInstce _EHSCmplncRqmtTskDefAndInstce $projection.CmplRqUUIDHex = _EHSCmplncRqmtTskDefAndInstce.EHSTaskHostObjectInstance
[0..*] I_EHSTaskDefinitionTP _EHSTaskDefinitionTP $projection.CmplRqUUID = _EHSTaskDefinitionTP.EHSTaskHostObjectInstanceUUID

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CEHSREQTASKREL view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
Consumption.semanticObject EHSTask view
ObjectModel.representativeKey CmplRqVersUUID view
EndUserText.label EHS CR Task, task definitions and instances for paragraph view
Metadata.allowExtensions true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CmplRqVersUUID CmplRqVersUUID NodeID
CmplRqUUID CmplRqUUID Compl Req.
CmplRqUUIDHex
CmplRqVersName
CmplRqStatus CmplRqVersMaintStatus Status
EffectiveDate EffectiveDate Effective Date
CmplRqVersValidToDate CmplRqVersValidToDate Expiration Date
CmplRqVersValidityText
_CmplncRqmtStatus _CmplncRqmtStatus
CmplRqDomain CmplRqDomain Requirement Domain
_CmplRqDomain _CmplRqDomain
_CmplRqVersAppltyArea _CmplRqVersAppltyArea
_EHSCmplncRqmtTskDefAndInstce _EHSCmplncRqmtTskDefAndInstce
_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_EHSCmplncRqmtRelatedTask.
-- 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: CEHSREQTASKREL

CREATE VIEW C_EHSCmplncRqmtRelatedTask AS
SELECT
  CmplRqVersUUID,
  CmplRqUUID,
  bintohex(CmplRqUUID) AS CmplRqUUIDHex,
  concat_with_space( concat( _CmplRqVersCrTypeText.CmplRqTypeName, ':' ), CmplRqVersName, 1 ) AS CmplRqVersName,
  CmplRqVersMaintStatus AS CmplRqStatus,
  EffectiveDate,
  CmplRqVersValidToDate,
  cast ('' as abap.char( 100 ) ) AS CmplRqVersValidityText,
  CmplRqDomain
FROM I_CmplRqVersEnhanced
LEFT OUTER JOIN C_EHSCmplncRqmtTskDefAndInstce AS _EHSCmplncRqmtTskDefAndInstce ON CmplRqUUIDHex = _EHSCmplncRqmtTskDefAndInstce.EHSTaskHostObjectInstance  -- association [0..*]
LEFT OUTER JOIN I_EHSTaskDefinitionTP AS _EHSTaskDefinitionTP ON CmplRqUUID = _EHSTaskDefinitionTP.EHSTaskHostObjectInstanceUUID  -- association [0..*]
;