I_EHSAmount
EHS Amount Root
I_EHSAmount is a Basic CDS View that provides data about "EHS Amount Root" in SAP S/4HANA. It reads from 1 data source (ehfndd_amns_root) and exposes 33 fields with key field EHSAmountUUID. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ehfndd_amns_root | ehfndd_amns_root | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_EHSAmountHistory | _EHSAmountHistory | $projection.EHSAmountUUID = _EHSAmountHistory.EHSAmountUUID |
| [0..*] | I_EHSAmountLimitFail | _EHSAmountLimitFail | $projection.EHSAmountUUID = _EHSAmountLimitFail.EHSAmountUUID |
| [1..1] | I_EHSAmountStatus | _EHSAmountStatus | $projection.EHSAmountStatus = _EHSAmountStatus.EHSAmountStatus |
| [0..1] | I_UnitOfMeasure | _UnitText | $projection.UnitOfMeasure = _UnitText.UnitOfMeasure |
| [0..1] | I_EHSAmountSourceType | _EHSAmountSourceType | $projection.EHSAmountSourceType = _EHSAmountSourceType.EHSAmountSourceType |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | EHS Amount Root | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSAmountUUID | db_key | UUID | |
| CreationDateTime | Created On/At | |||
| LastChangeDateTime | Changed On/At | |||
| CreatedByUser | user_id_cr | Created By | ||
| LastChangedByUser | user_id_ch | Changed By | ||
| EHSAmountSourceUUID | source_root_key_ref | Source | ||
| EHSAmountSourceType | Source Type | |||
| EHSSubjectType | subjecttype | Subject Type | ||
| EHSSubjectUUID | subject_root_key_ref | Subject Ref Key | ||
| EHSAmountProcessUUID | business_proc_root_key_ref | Drive Proc BO Key | ||
| EHSAmountUTCDateTime | valuetimestamp | Time Stamp | ||
| EHSAmountValue | Value from table | |||
| UnitOfMeasure | Unit of Measurement | |||
| UnitOfMeasureDimension | Dimension | |||
| EHSAmountSubjComponentType | subj_comp_type | Subject Type | ||
| EHSAmountSubjComponentUUID | subj_comp_key_ref | Source | ||
| EHSAmountIsMissing | missing_ind | Missing Value | ||
| EHSAmountIsFaulty | fault_ind | Faulty Value | ||
| EHSAmountIsNotAvailable | notavailable_ind | Not Available | ||
| EHSAmountIsReplaced | substitute_ind | Substituted | ||
| EHSAmountDeviationID | deviation_id | ID | ||
| EHSAmountHasWarning | warning_ind | Warning | ||
| EHSAmountIsPreliminary | preliminary_ind | Preliminary Result | ||
| EHSAmountStatus | Workflow Status | |||
| EHSAmountExternalSource | external_src | External Source | ||
| EHSAmtOutOfPrecisenessOptr | Operator | |||
| Note | remark | Status Description | ||
| EHSAmountMigrationSource | migration_src | Migration Source | ||
| _EHSAmountSourceType | _EHSAmountSourceType | |||
| _EHSAmountStatus | _EHSAmountStatus | |||
| _UnitText | _UnitText | |||
| _EHSAmountHistory | _EHSAmountHistory | |||
| _EHSAmountLimitFail | _EHSAmountLimitFail |
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_EHSAmount.
-- 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_EHSAmount AS
SELECT
db_key AS EHSAmountUUID,
cast( datetime_cr as ehfnd_datetime_cr preserving type ) AS CreationDateTime,
cast( datetime_ch as ehfnd_datetime_ch preserving type ) AS LastChangeDateTime,
user_id_cr AS CreatedByUser,
user_id_ch AS LastChangedByUser,
source_root_key_ref AS EHSAmountSourceUUID,
cast( sourcetype as ehfnd_amns_src_type_nc preserving type ) AS EHSAmountSourceType,
subjecttype AS EHSSubjectType,
subject_root_key_ref AS EHSSubjectUUID,
business_proc_root_key_ref AS EHSAmountProcessUUID,
valuetimestamp AS EHSAmountUTCDateTime,
cast( value as ehfnd_amns_value_nc preserving type ) AS EHSAmountValue,
cast( valueunit as ehfnd_unit_code_nce preserving type ) AS UnitOfMeasure,
cast( valuedimension as ehfnd_unit_dimension_nc preserving type ) AS UnitOfMeasureDimension,
subj_comp_type AS EHSAmountSubjComponentType,
subj_comp_key_ref AS EHSAmountSubjComponentUUID,
missing_ind AS EHSAmountIsMissing,
fault_ind AS EHSAmountIsFaulty,
notavailable_ind AS EHSAmountIsNotAvailable,
substitute_ind AS EHSAmountIsReplaced,
deviation_id AS EHSAmountDeviationID,
warning_ind AS EHSAmountHasWarning,
preliminary_ind AS EHSAmountIsPreliminary,
cast( status as ehfnd_amns_status_code_nc preserving type ) AS EHSAmountStatus,
external_src AS EHSAmountExternalSource,
cast( outofpreciseness_operator as ehfnd_amns_outofprecis_op_nc preserving type ) AS EHSAmtOutOfPrecisenessOptr,
remark AS Note,
migration_src AS EHSAmountMigrationSource
FROM ehfndd_amns_root
LEFT OUTER JOIN I_EHSAmountHistory AS _EHSAmountHistory ON EHSAmountUUID = _EHSAmountHistory.EHSAmountUUID -- association [0..*]
LEFT OUTER JOIN I_EHSAmountLimitFail AS _EHSAmountLimitFail ON EHSAmountUUID = _EHSAmountLimitFail.EHSAmountUUID -- association [0..*]
LEFT OUTER JOIN I_EHSAmountStatus AS _EHSAmountStatus ON EHSAmountStatus = _EHSAmountStatus.EHSAmountStatus -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitText ON UnitOfMeasure = _UnitText.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_EHSAmountSourceType AS _EHSAmountSourceType ON EHSAmountSourceType = _EHSAmountSourceType.EHSAmountSourceType -- association [0..1]
;
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