A_EHSRiskForSafetyInfo
EHS Risk for Safety Relevant Information
A_EHSRiskForSafetyInfo is a Composite CDS View that provides data about "EHS Risk for Safety Relevant Information" in SAP S/4HANA. It reads from 1 data source (I_EHSRisk) and exposes 31 fields with key field EHSRiskUUID. It has 12 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSRisk | EHSRisk | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_EHSRiskControlForSafetyInfo | _EHSRiskControls | $projection.EHSRiskUUID = _EHSRiskControls.EHSRiskUUID |
| [1..*] | A_HazardText | _HazardText | $projection.Hazard = _HazardText.Hazard |
| [0..*] | A_EHSRiskAssessmentTypeText | _EHSRiskAssessmentTypeText | $projection.EHSRiskAssessmentType = _EHSRiskAssessmentTypeText.EHSRiskAssessmentType |
| [0..*] | A_CurrentEHSAgentNameText | _CurrentEHSAgentNameText | $projection.ehsagentuuid = _CurrentEHSAgentNameText.EHSAgentUUID |
| [0..*] | A_EHSMethodOfUseText | _EHSMethodOfUseText | $projection.MethodOfUse = _EHSMethodOfUseText.MethodOfUse |
| [0..*] | A_EHSRiskLevelText | _EHSRiskLevelText | $projection.ehsrisklevel = _EHSRiskLevelText.EHSRiskLevel |
| [0..*] | A_EHSRiskStatusText | _EHSRiskStatusText | $projection.EHSRiskStatus = _EHSRiskStatusText.EHSRiskStatus |
| [0..*] | A_EHSOperationalStatusText | _EHSOperationalStatusText | $projection.operationalstatus = _EHSOperationalStatusText.OperationalStatus |
| [0..*] | A_EHSAgentTypeText | _EHSAgentTypeText | $projection.ehsagenttype = _EHSAgentTypeText.EHSAgentType |
| [0..*] | A_HazardCategoryText | _HazardCategoryText | $projection.HazardCategory = _HazardCategoryText.HazardCategory |
| [0..*] | A_EHSJobNameText | _EHSJobNameText | $projection.ehsjobuuid = _EHSJobNameText.EHSJobUUID |
| [0..*] | A_CurrentEHSLocationNameText | _CurrentEHSLocationNameText | $projection.EHSLocationUUID = _CurrentEHSLocationNameText.EHSLocationUUID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | AEHSRISKFORSRI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | EHS Risk for Safety Relevant Information | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | EHSRiskUUID | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSRiskUUID | EHSRiskUUID | ||
| EHSLocationUUID | EHSLocationUUID | NodeID | ||
| Hazard | Hazard | Hazard | ||
| EHSRiskAssessmentType | EHSRiskAssessmentType | Assessment Type | ||
| EHSAgentUUID | _EHSRiskRoot | EHSAgentUUID | Agent | |
| MethodOfUse | ||||
| EHSRiskLevel | _EHSRiskRoot | EHSRiskLevel | Risk Level | |
| EHSRiskStatus | EHSRiskStatus | |||
| OperationalStatus | _EHSRiskRoot | OperationalStatus | Operational Status | |
| HazardCategory | HazardCategory | Hazard Category | ||
| EHSAgentType | _HazardCategory | EHSAgentType | ||
| EHSJobUUID | _EHSRiskRoot | EHSJobUUID | NodeID | |
| EHSJobUUIDHex | ||||
| EHSRiskAssessmentUUID | EHSRiskAssessmentUUID | UUID | ||
| EHSLocationAuthorizationGroup | _EHSRiskRoot | EHSLocationAuthorizationGroup | ||
| Plant | _EHSRiskRoot | Plant | Valuation Area | |
| CostCenter | _EHSRiskRoot | CostCenter | Cost Center | |
| CompanyCode | _EHSRiskRoot | CompanyCode | Receiver Company Code | |
| BusinessArea | _EHSRiskRoot | BusinessArea | Business Area | |
| _EHSRiskControls | _EHSRiskControls | |||
| _HazardText | _HazardText | |||
| _HazardCategoryText | _HazardCategoryText | |||
| _EHSRiskAssessmentTypeText | _EHSRiskAssessmentTypeText | |||
| _CurrentEHSAgentNameText | _CurrentEHSAgentNameText | |||
| _EHSMethodOfUseText | _EHSMethodOfUseText | |||
| _EHSRiskLevelText | _EHSRiskLevelText | |||
| _EHSRiskStatusText | _EHSRiskStatusText | |||
| _EHSOperationalStatusText | _EHSOperationalStatusText | |||
| _EHSAgentTypeText | _EHSAgentTypeText | |||
| _EHSJobNameText | _EHSJobNameText | |||
| _CurrentEHSLocationNameText | _CurrentEHSLocationNameText |
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 A_EHSRiskForSafetyInfo.
-- 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: AEHSRISKFORSRI
CREATE VIEW A_EHSRiskForSafetyInfo AS
SELECT
EHSRiskUUID,
EHSLocationUUID,
Hazard,
EHSRiskAssessmentType,
_EHSRiskRoot.EHSAgentUUID AS EHSAgentUUID,
EHSRisk._EHSRiskRoot.MethodOfUse AS MethodOfUse,
_EHSRiskRoot.EHSRiskLevel AS EHSRiskLevel,
EHSRiskStatus,
_EHSRiskRoot.OperationalStatus AS OperationalStatus,
HazardCategory,
_HazardCategory.EHSAgentType AS EHSAgentType,
_EHSRiskRoot.EHSJobUUID AS EHSJobUUID,
bintohex(EHSRisk._EHSRiskRoot.EHSJobUUID) AS EHSJobUUIDHex,
EHSRiskAssessmentUUID,
_EHSRiskRoot.EHSLocationAuthorizationGroup AS EHSLocationAuthorizationGroup,
_EHSRiskRoot.Plant AS Plant,
_EHSRiskRoot.CostCenter AS CostCenter,
_EHSRiskRoot.CompanyCode AS CompanyCode,
_EHSRiskRoot.BusinessArea AS BusinessArea
FROM I_EHSRisk AS EHSRisk
LEFT OUTER JOIN A_EHSRiskControlForSafetyInfo AS _EHSRiskControls ON EHSRiskUUID = _EHSRiskControls.EHSRiskUUID -- association [0..*]
LEFT OUTER JOIN A_HazardText AS _HazardText ON Hazard = _HazardText.Hazard -- association [1..*]
LEFT OUTER JOIN A_EHSRiskAssessmentTypeText AS _EHSRiskAssessmentTypeText ON EHSRiskAssessmentType = _EHSRiskAssessmentTypeText.EHSRiskAssessmentType -- association [0..*]
LEFT OUTER JOIN A_CurrentEHSAgentNameText AS _CurrentEHSAgentNameText ON ehsagentuuid = _CurrentEHSAgentNameText.EHSAgentUUID -- association [0..*]
LEFT OUTER JOIN A_EHSMethodOfUseText AS _EHSMethodOfUseText ON MethodOfUse = _EHSMethodOfUseText.MethodOfUse -- association [0..*]
LEFT OUTER JOIN A_EHSRiskLevelText AS _EHSRiskLevelText ON ehsrisklevel = _EHSRiskLevelText.EHSRiskLevel -- association [0..*]
LEFT OUTER JOIN A_EHSRiskStatusText AS _EHSRiskStatusText ON EHSRiskStatus = _EHSRiskStatusText.EHSRiskStatus -- association [0..*]
LEFT OUTER JOIN A_EHSOperationalStatusText AS _EHSOperationalStatusText ON operationalstatus = _EHSOperationalStatusText.OperationalStatus -- association [0..*]
LEFT OUTER JOIN A_EHSAgentTypeText AS _EHSAgentTypeText ON ehsagenttype = _EHSAgentTypeText.EHSAgentType -- association [0..*]
LEFT OUTER JOIN A_HazardCategoryText AS _HazardCategoryText ON HazardCategory = _HazardCategoryText.HazardCategory -- association [0..*]
LEFT OUTER JOIN A_EHSJobNameText AS _EHSJobNameText ON ehsjobuuid = _EHSJobNameText.EHSJobUUID -- association [0..*]
LEFT OUTER JOIN A_CurrentEHSLocationNameText AS _CurrentEHSLocationNameText ON EHSLocationUUID = _CurrentEHSLocationNameText.EHSLocationUUID -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA