I_Hazard

DDL: I_HAZARD SQL: IHAZARD Type: view BASIC

Hazard

I_Hazard is a Basic CDS View (Dimension) that provides data about "Hazard" in SAP S/4HANA. It reads from 1 data source (ehhssc_hazard) and exposes 6 fields with key field Hazard. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ehhssc_hazard ehhssc_hazard from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_HazardText _Text $projection.Hazard = _Text.Hazard
[1..1] I_HazardCategory _HazardCategory $projection.HazardCategory = _HazardCategory.HazardCategory
[0..*] I_HazardCategoryText _HazardCategoryText $projection.HazardCategory = _HazardCategoryText.HazardCategory
[0..*] I_HazardImpact _HazardImpact $projection.Hazard = _HazardImpact.Hazard

Annotations (13)

NameValueLevelField
EndUserText.label Hazard view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
ObjectModel.representativeKey Hazard view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName IHAZARD 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 (6)

KeyFieldSource TableSource FieldDescription
KEY Hazard Water Hazard Cl.
_Text _Text
HazardCategory category Violation Category
_HazardCategory _HazardCategory
_HazardCategoryText _HazardCategoryText
_HazardImpact _HazardImpact

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_Hazard.
-- 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: IHAZARD

CREATE VIEW I_Hazard AS
SELECT
  cast ( code as ehhss_hazard_code_nc preserving type ) AS Hazard,
  category AS HazardCategory
FROM ehhssc_hazard
LEFT OUTER JOIN I_HazardText AS _Text ON Hazard = _Text.Hazard  -- association [0..*]
LEFT OUTER JOIN I_HazardCategory AS _HazardCategory ON HazardCategory = _HazardCategory.HazardCategory  -- association [1..1]
LEFT OUTER JOIN I_HazardCategoryText AS _HazardCategoryText ON HazardCategory = _HazardCategoryText.HazardCategory  -- association [0..*]
LEFT OUTER JOIN I_HazardImpact AS _HazardImpact ON Hazard = _HazardImpact.Hazard  -- association [0..*]
;