C_SftyInstrnRskAssmt2Loc

DDL: C_SFTYINSTRNRSKASSMT2LOC Type: view_entity CONSUMPTION Package: EHHSS_CNS_FSI

Risk Assessment Location

C_SftyInstrnRskAssmt2Loc is a Consumption CDS View that provides data about "Risk Assessment Location" in SAP S/4HANA. It reads from 1 data source (I_EHSRskAssmt2Location) and exposes 5 fields with key field EHSRiskAssessmentLocationUUID. It has 1 association to related views. Part of development package EHHSS_CNS_FSI.

Data Sources (1)

SourceAliasJoin Type
I_EHSRskAssmt2Location I_EHSRskAssmt2Location from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_CurrentEHSLocationNameText _EHSLocationName $projection.EHSLocationUUID = _EHSLocationName.EHSLocationUUID and _EHSLocationName.Language = $session.system_language

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Risk Assessment Location view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY EHSRiskAssessmentLocationUUID EHSRiskAssessmentLocationUUID UUID
EHSRiskAssessmentUUID EHSRiskAssessmentUUID UUID
EHSLocationUUID EHSLocationUUID NodeID
LocationName _EHSLocationName EHSLocationName
_RiskAssessment _RiskAssessment

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_SftyInstrnRskAssmt2Loc.
-- 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.

CREATE VIEW C_SftyInstrnRskAssmt2Loc AS
SELECT
  EHSRiskAssessmentLocationUUID,
  EHSRiskAssessmentUUID,
  EHSLocationUUID,
  _EHSLocationName.EHSLocationName AS LocationName
FROM I_EHSRskAssmt2Location
LEFT OUTER JOIN I_CurrentEHSLocationNameText AS _EHSLocationName ON EHSLocationUUID = _EHSLocationName.EHSLocationUUID AND _EHSLocationName.Language = $session.system_language  -- association [1..1]
;