I_EHSRiskLevel

DDL: I_EHSRISKLEVEL SQL: IEHSRISKLEVEL Type: view BASIC Package: EHHSS_BO_RAS_COMMON_CFG

EHS Risk Level

I_EHSRiskLevel is a Basic CDS View (Dimension) that provides data about "EHS Risk Level" in SAP S/4HANA. It reads from 1 data source (ehhssc_risklvl) and exposes 5 fields with key field EHSRiskLevel. It has 1 association to related views. Part of development package EHHSS_BO_RAS_COMMON_CFG.

Data Sources (1)

SourceAliasJoin Type
ehhssc_risklvl ehhssc_risklvl from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_EHSRiskLevelText _Text $projection.EHSRiskLevel = _Text.EHSRiskLevel

Annotations (13)

NameValueLevelField
EndUserText.label EHS Risk Level view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
ObjectModel.representativeKey EHSRiskLevel view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName IEHSRISKLEVEL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY EHSRiskLevel Water Hazard Cl.
EHSRiskLevelUpperScore ehhssc_risklvl score_upper Upper Limit
EHSRiskLevelLowerScore ehhssc_risklvl score_lower Lower Limit
EHSRiskLevelCriticality ehhssc_risklvl criticality Status Rating
_Text _Text

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_EHSRiskLevel.
-- 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: IEHSRISKLEVEL

CREATE VIEW I_EHSRiskLevel AS
SELECT
  cast( code as ehhss_risk_level_code_nc preserving type ) AS EHSRiskLevel,
  ehhssc_risklvl.score_upper AS EHSRiskLevelUpperScore,
  ehhssc_risklvl.score_lower AS EHSRiskLevelLowerScore,
  ehhssc_risklvl.criticality AS EHSRiskLevelCriticality
FROM ehhssc_risklvl
LEFT OUTER JOIN I_EHSRiskLevelText AS _Text ON EHSRiskLevel = _Text.EHSRiskLevel  -- association [0..*]
;