I_EHSControl
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 22 fields with key field EHSControlUUID. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ehfndd_ctrl_root | EHSControlRoot | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSControlUUID | UUID | ||
| 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,
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..*]
;
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