I_EHSControl

DDL: I_EHSCONTROL SQL: IEHSCTRL Type: view BASIC

EHS Control

I_EHSControl is a Basic CDS View that provides data about "EHS Control" in SAP S/4HANA. It reads from 1 data source (ehfndd_ctrl_root) and exposes 23 fields with key field EHSControlUUID. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ehfndd_ctrl_root EHSControlRoot from

Associations (8)

CardinalityTargetAliasCondition
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[1..*] I_EHSCtrlTitleText _EHSCtrlTitleTxt $projection.EHSControlUUID = _EHSCtrlTitleTxt.EHSControlUUID
[1..1] I_EHSCtrlEffect _EHSCtrlEffect $projection.DesiredEHSControlEffect = _EHSCtrlEffect.DesiredEHSControlEffect
[1..1] I_EHSCtrlCatalog _EHSCatalog $projection.EHSControlCatalog = _EHSCatalog.EHSControlCatalog
[1..1] I_EHSCtrlGoalTar _EHSGoalTarget $projection.EHSControlTarget = _EHSGoalTarget.EHSControlTarget
[0..*] I_EHSControlAttachment _EHSControlAttachment $projection.EHSControlUUID = _EHSControlAttachment.EHSControlUUID
[0..*] I_EHSTextCollectionText _EHSControlRemarkText $projection.EHSControlRemarkUUID = _EHSControlRemarkText.TextCollectionUUID

Annotations (10)

NameValueLevelField
EndUserText.label EHS Control view
VDM.viewType #BASIC view
ObjectModel.representativeKey EHSControlUUID view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName IEHSCTRL view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY EHSControlUUID UUID
EHSControlId id WorklistID
ControlMigrationSource migration_src Migration Source
EHSControlCatalog catalog_code Control Catalog
EHSControlTarget goal_target_code Target
EHSControlObjective goal_object_code Objective
DesiredEHSControlEffect goal_ctrl_effect Desired Effect
_EHSCtrlTitleTxt _EHSCtrlTitleTxt
_EHSCtrlEffect _EHSCtrlEffect
_EHSCatalog _EHSCatalog
_EHSGoalTarget _EHSGoalTarget
EHSControlImageUUID image_key_ref Location Image
EHSControlSymbolFileName _EHSCatalog EHSControlSymbolFileName
EHSControlImageURL
CreationDateTime datetime_cr Created On/At
CreatedByUser user_id_cr Created By
_CreatedByUser _CreatedByUser
LastChangeDateTime datetime_ch Changed On/At
LastChangedByUser user_id_ch Changed By
_LastChangedByUser _LastChangedByUser
EHSControlRemarkUUID rem_desc_key_ref NodeID
_EHSControlAttachment _EHSControlAttachment
_EHSControlRemarkText _EHSControlRemarkText

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_EHSControl.
-- 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: IEHSCTRL

CREATE VIEW I_EHSControl AS
SELECT
  cast( db_key as ehfnd_ctrl_uuid_ref preserving type ) AS EHSControlUUID,
  id AS EHSControlId,
  migration_src AS ControlMigrationSource,
  catalog_code AS EHSControlCatalog,
  goal_target_code AS EHSControlTarget,
  goal_object_code AS EHSControlObjective,
  goal_ctrl_effect AS DesiredEHSControlEffect,
  image_key_ref AS EHSControlImageUUID,
  _EHSCatalog.EHSControlSymbolFileName AS EHSControlSymbolFileName,
  cast('' as text1024) AS EHSControlImageURL,
  datetime_cr AS CreationDateTime,
  user_id_cr AS CreatedByUser,
  datetime_ch AS LastChangeDateTime,
  user_id_ch AS LastChangedByUser,
  rem_desc_key_ref AS EHSControlRemarkUUID
FROM ehfndd_ctrl_root AS EHSControlRoot
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_EHSCtrlTitleText AS _EHSCtrlTitleTxt ON EHSControlUUID = _EHSCtrlTitleTxt.EHSControlUUID  -- association [1..*]
LEFT OUTER JOIN I_EHSCtrlEffect AS _EHSCtrlEffect ON DesiredEHSControlEffect = _EHSCtrlEffect.DesiredEHSControlEffect  -- association [1..1]
LEFT OUTER JOIN I_EHSCtrlCatalog AS _EHSCatalog ON EHSControlCatalog = _EHSCatalog.EHSControlCatalog  -- association [1..1]
LEFT OUTER JOIN I_EHSCtrlGoalTar AS _EHSGoalTarget ON EHSControlTarget = _EHSGoalTarget.EHSControlTarget  -- association [1..1]
LEFT OUTER JOIN I_EHSControlAttachment AS _EHSControlAttachment ON EHSControlUUID = _EHSControlAttachment.EHSControlUUID  -- association [0..*]
LEFT OUTER JOIN I_EHSTextCollectionText AS _EHSControlRemarkText ON EHSControlRemarkUUID = _EHSControlRemarkText.TextCollectionUUID  -- association [0..*]
;