I_EHSAmountRoot
EHS Amount Root
I_EHSAmountRoot is a Basic CDS View that provides data about "EHS Amount Root" in SAP S/4HANA. It reads from 1 data source (ehfndv_amns_root) and exposes 39 fields with key field EHSAmountUUID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ehfndv_amns_root | ehfndv_amns_root | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [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 |
| [1..1] | E_EHSDataAmount | _Extension | $projection.EHSAmountUUID = _Extension.EHSAmountUUID |
Annotations (21)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IEHSAMNROOT | view | |
| EndUserText.label | EHS Amount Root | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.modelCategory | #BUSINESS_OBJECT | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | false | view | |
| ObjectModel.writeActivePersistence | ehfndv_amns_root | view | |
| ObjectModel.representativeKey | EHSAmountUUID | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.sapObjectNodeType.name | EHSDataAmount | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #BASIC | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSAmountUUID | ehsamountuuid | NodeID | |
| CreationDateTime | Timestamp | |||
| LastChangeDateTime | Timestamp | |||
| CreatedByUser | createdbyuser | User Name | ||
| _CreatedByUser | _CreatedByUser | |||
| LastChangedByUser | lastchangedbyuser | User Name | ||
| EHSAmountSourceUUID | ehsamountsourceuuid | Source | ||
| EHSAmountSourceType | ehsamountsourcetype | Data Type | ||
| _EHSAmountSourceType | _EHSAmountSourceType | |||
| EHSSubjectType | ehssubjecttype | Subject Type | ||
| EHSSubjectUUID | ehssubjectuuid | Subject Ref Key | ||
| EHSAmountProcessUUID | ehsamountprocessuuid | Drive Proc BO Key | ||
| EHSAmountUTCDateTime | ehsamountutcdatetime | Time Stamp | ||
| EHSAmountValue | ehsamountvalue | Value | ||
| EHSAmountValueAsText | value | Value from table | ||
| UnitOfMeasure | unitofmeasure | Unit Protected Qty | ||
| UnitOfMeasureName | ||||
| UnitOfMeasureDimension | Dimension | |||
| EHSAmountCategory | ehsamountcategory | Category | ||
| EHSAmountSubjComponentType | ehsamountsubjcomponenttype | Subject Type | ||
| EHSAmountSubjComponentUUID | ehsamountsubjcomponentuuid | Source | ||
| EHSAmountIsMissing | ehsamountismissing | Missing Value | ||
| EHSAmountIsFaulty | ehsamountisfaulty | Faulty Value | ||
| EHSAmountIsNotAvailable | ehsamountisnotavailable | Not Available | ||
| EHSAmountIsReplaced | ehsamountisreplaced | Substituted | ||
| EHSAmountDeviationID | ehsamountdeviationid | ID | ||
| EHSAmountHasWarning | ehsamounthaswarning | Warning | ||
| EHSAmountIsPreliminary | ehsamountispreliminary | Preliminary Result | ||
| EHSAmountStatus | Status | |||
| EHSAmountStatusName | ehsamountstatus | Status | ||
| EHSAmountExternalSource | ehsamountexternalsource | External Source | ||
| EHSAmtOutOfPrecisenessOptr | ehsamtoutofprecisenessoptr | Operator | ||
| Note | note | TradeRequest Comment | ||
| EHSAmountMigrationSource | ehsamountmigrationsource | Migr. Source | ||
| EHSDataAmountControllingObject | ehsdataamountcontrollingobject | Controlling Object | ||
| _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_EHSAmountRoot.
-- 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: IEHSAMNROOT
CREATE VIEW I_EHSAmountRoot AS
SELECT
EHSAmountUUID,
cast( creationdatetime as ehfnd_datetime_cr preserving type ) AS CreationDateTime,
cast( lastchangedatetime as ehfnd_datetime_ch preserving type ) AS LastChangeDateTime,
CreatedByUser,
LastChangedByUser,
EHSAmountSourceUUID,
EHSAmountSourceType,
EHSSubjectType,
EHSSubjectUUID,
EHSAmountProcessUUID,
EHSAmountUTCDateTime,
EHSAmountValue,
value AS EHSAmountValueAsText,
UnitOfMeasure,
_UnitText._Text[1: Language = $session.system_language ].UnitOfMeasureName AS UnitOfMeasureName,
cast(unitofmeasuredimension as dimid preserving type ) AS UnitOfMeasureDimension,
EHSAmountCategory,
EHSAmountSubjComponentType,
EHSAmountSubjComponentUUID,
EHSAmountIsMissing,
EHSAmountIsFaulty,
EHSAmountIsNotAvailable,
EHSAmountIsReplaced,
EHSAmountDeviationID,
EHSAmountHasWarning,
EHSAmountIsPreliminary,
cast( ehsamountstatus as ehfnd_amns_status_code_nc preserving type ) AS EHSAmountStatus,
ehsamountstatus AS EHSAmountStatusName,
EHSAmountExternalSource,
EHSAmtOutOfPrecisenessOptr,
Note,
EHSAmountMigrationSource,
EHSDataAmountControllingObject
FROM ehfndv_amns_root
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
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]
LEFT OUTER JOIN E_EHSDataAmount AS _Extension ON EHSAmountUUID = _Extension.EHSAmountUUID -- association [1..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