I_EHSAmount

DDL: I_EHSAMOUNT Type: view_entity BASIC

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)

SourceAliasJoin Type
ehfndd_amns_root ehfndd_amns_root from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;