I_EHSPurposeOfUse

DDL: I_EHSPURPOSEOFUSE Type: view_entity BASIC Package: EHFND_CHM_COMMON

EHS Purpose

I_EHSPurposeOfUse is a Basic CDS View that provides data about "EHS Purpose" in SAP S/4HANA. It reads from 1 data source (ehfndc_purp) and exposes 2 fields with key field PurposeOfUse. It has 1 association to related views. Part of development package EHFND_CHM_COMMON.

Data Sources (1)

SourceAliasJoin Type
ehfndc_purp ehfndc_purp from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_EHSPurposeOfUseText _Text $projection.PurposeOfUse = _Text.PurposeOfUse

Annotations (8)

NameValueLevelField
EndUserText.label EHS Purpose view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.representativeKey PurposeOfUse view
VDM.viewType #BASIC view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY PurposeOfUse Water Hazard Cl.
_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_EHSPurposeOfUse.
-- 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 I_EHSPurposeOfUse AS
SELECT
  cast( code as ehfnd_purpose_code_nc preserving type ) AS PurposeOfUse
FROM ehfndc_purp
LEFT OUTER JOIN I_EHSPurposeOfUseText AS _Text ON PurposeOfUse = _Text.PurposeOfUse  -- association [0..*]
;