C_EHSRskAssmtPrflHazardVH

DDL: C_EHSRSKASSMTPRFLHAZARDVH SQL: CRSKASSMTPRFLHVH Type: view CONSUMPTION Package: EHHSS_CNS_RISK_ASSESSMENT

Risk Assessment Profile Hazard Value Help

C_EHSRskAssmtPrflHazardVH is a Consumption CDS View that provides data about "Risk Assessment Profile Hazard Value Help" in SAP S/4HANA. It reads from 3 data sources (I_EHSRiskAssessmentPrflDraft, I_HazardWithoutEHSAgent, I_EHSRskAssmtPrflHazardDraft) and exposes 7 fields with key fields EHSRiskAssessmentProfileUUID, Hazard. Part of development package EHHSS_CNS_RISK_ASSESSMENT.

Data Sources (3)

SourceAliasJoin Type
I_EHSRiskAssessmentPrflDraft AssessmentProfileDraft from
I_HazardWithoutEHSAgent Hazard cross
I_EHSRskAssmtPrflHazardDraft ProfileHazardDraft left_outer

Annotations (12)

NameValueLevelField
EndUserText.label Risk Assessment Profile Hazard Value Help view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName CRSKASSMTPRFLHVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.representativeKey Hazard view
ObjectModel.dataCategory #VALUE_HELP view
VDM.viewType #CONSUMPTION view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY EHSRiskAssessmentProfileUUID I_EHSRiskAssessmentPrflDraft EHSRiskAssessmentProfileUUID NodeID
KEY Hazard I_HazardWithoutEHSAgent Hazard Hazard
HazardCategory I_HazardWithoutEHSAgent HazardCategory Hazard Category
HazardasHazardImageURL
_Text I_HazardWithoutEHSAgent _Text
_HazardCategory I_HazardWithoutEHSAgent _HazardCategory
_HazardCategoryText I_HazardWithoutEHSAgent _HazardCategoryText

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_EHSRskAssmtPrflHazardVH.
-- 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: CRSKASSMTPRFLHVH

CREATE VIEW C_EHSRskAssmtPrflHazardVH AS
SELECT
  AssessmentProfileDraft.EHSRiskAssessmentProfileUUID AS EHSRiskAssessmentProfileUUID,
  Hazard.Hazard AS Hazard,
  Hazard.HazardCategory AS HazardCategory,
  replace( '/sap/opu/odata/sap/EHHSS_RAS_PROFILE/HazardImage(%27%HAZARD%27)/$value', '%HAZARD', Hazard.Hazard ) as HazardImageURL AS HazardasHazardImageURL,
  Hazard._Text AS _Text,
  Hazard._HazardCategory AS _HazardCategory,
  Hazard._HazardCategoryText AS _HazardCategoryText
FROM I_EHSRiskAssessmentPrflDraft AS AssessmentProfileDraft
CROSS JOIN I_HazardWithoutEHSAgent AS Hazard
LEFT OUTER JOIN I_EHSRskAssmtPrflHazardDraft AS ProfileHazardDraft ON /* join condition not captured in parsed metadata */
;