I_ChmlComposition

DDL: I_CHMLCOMPOSITION Type: view BASIC Package: EHFND_BO_CCI

Chemical Composition

I_ChmlComposition is a Basic CDS View that provides data about "Chemical Composition" in SAP S/4HANA. It reads from 1 data source (ehfndv_ccmps) and exposes 25 fields. It has 12 associations to related views. Part of development package EHFND_BO_CCI.

Data Sources (1)

SourceAliasJoin Type
ehfndv_ccmps ChemicalComposition from

Associations (12)

CardinalityTargetAliasCondition
[0..*] I_ChmlComponent _ChmlComponent $projection.ChmlCompositionUUID = _ChmlComponent.ChmlCompositionUUID --Link to chemical compliance information
[0..1] I_ChmlCmplncInfo _ChmlCmplncInfo $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID
[0..1] I_Substance _Substance $projection.SubstanceUUID = _Substance.SubstanceUUID --Link to user data
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_User _ReleasedByUser $projection.ReleasedByUser = _ReleasedByUser.UserID --Link to customizing data
[0..1] I_ChmlCompositionType _CompositionType $projection.ChmlCompositionType = _CompositionType.ChmlCompositionType
[0..1] I_ProdCmplncLegalArea _LegalArea $projection.ProdCmplncLegalArea = _LegalArea.ProdCmplncLegalArea
[0..1] I_ChmlCompositionType _LegalAreaRef $projection.ProdCmplncLegalAreaRef = _LegalAreaRef.ChmlCompositionType --Link to domain values
[0..1] I_ChmlCompositionStatus _CompositionStatus $projection.ChmlCompositionStatus = _CompositionStatus.ChmlCompositionStatus
[0..1] I_ProdCmplncPhrs _ChmlCmplncProdCatztnPhrs $projection.ChmlCmplncProdCatztnPhrsUUID = _ChmlCmplncProdCatztnPhrs.ProdCmplncPhrsUUID
[0..1] I_ChmlCompositionProdCatztn _ChmlCmplncProdCatztnPhrsCalc $projection.ChmlCompositionUUID = _ChmlCmplncProdCatztnPhrsCalc.ChmlCompositionUUID

Annotations (10)

NameValueLevelField
EndUserText.label Chemical Composition view
AbapCatalog.sqlViewName ICCOMPOSITION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.representativeKey ChmlCompositionUUID view

Fields (25)

KeyFieldSource TableSource FieldDescription
chmlcompositionuuidasChmlCompositionUUID
CreationUTCDateTime Time Stamp
CreatedByUser User Name
LastChangeUTCDateTime Time Stamp
LastChangedByUser User Name
chmlcmplncinfouuidasChmlCmplncInfoUUID
chmlsuplrmatluuidasChmlSuplrMatlUUID
substanceuuidasSubstanceUUID
chmlcompositiontypeasChmlCompositionType
releasedatetimeasReleaseDateTime
releasedbyuserasReleasedByUser
ValidityStartDateTime ehfndv_ccmps validitystartdatetime Valid From Timestamp
ValidityEndDateTime ehfndv_ccmps validityenddatetime Valid To Timestamp
_ChmlComponent _ChmlComponent
_ChmlCmplncInfo _ChmlCmplncInfo
_Substance _Substance
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_ReleasedByUser _ReleasedByUser
_CompositionType _CompositionType
_CompositionStatus _CompositionStatus
_LegalArea _LegalArea
_LegalAreaRef _LegalAreaRef
_ChmlCmplncProdCatztnPhrs _ChmlCmplncProdCatztnPhrs
_ChmlCmplncProdCatztnPhrsCalc _ChmlCmplncProdCatztnPhrsCalc

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_ChmlComposition.
-- 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_ChmlComposition AS
SELECT
  cast(creationutcdatetime as ehfnd_bo_crea_date_time preserving type ) AS CreationUTCDateTime,
  cast(createdbyuser as ehfnd_bo_crea_uname preserving type ) AS CreatedByUser,
  cast(lastchangeutcdatetime as ehfnd_bo_lchg_date_time preserving type ) AS LastChangeUTCDateTime,
  cast(lastchangedbyuser as ehfnd_bo_lchg_uname preserving type ) AS LastChangedByUser,
  ChemicalComposition.validitystartdatetime AS ValidityStartDateTime,
  ChemicalComposition.validityenddatetime AS ValidityEndDateTime
FROM ehfndv_ccmps AS ChemicalComposition
LEFT OUTER JOIN I_ChmlComponent AS _ChmlComponent ON ChmlCompositionUUID = _ChmlComponent.ChmlCompositionUUID  -- association [0..*]
LEFT OUTER JOIN I_ChmlCmplncInfo AS _ChmlCmplncInfo ON ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID  -- association [0..1]
LEFT OUTER JOIN I_Substance AS _Substance ON SubstanceUUID = _Substance.SubstanceUUID  -- association [0..1]
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_User AS _ReleasedByUser ON ReleasedByUser = _ReleasedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_ChmlCompositionType AS _CompositionType ON ChmlCompositionType = _CompositionType.ChmlCompositionType  -- association [0..1]
LEFT OUTER JOIN I_ProdCmplncLegalArea AS _LegalArea ON ProdCmplncLegalArea = _LegalArea.ProdCmplncLegalArea  -- association [0..1]
LEFT OUTER JOIN I_ChmlCompositionType AS _LegalAreaRef ON ProdCmplncLegalAreaRef = _LegalAreaRef.ChmlCompositionType  -- association [0..1]
LEFT OUTER JOIN I_ChmlCompositionStatus AS _CompositionStatus ON ChmlCompositionStatus = _CompositionStatus.ChmlCompositionStatus  -- association [0..1]
LEFT OUTER JOIN I_ProdCmplncPhrs AS _ChmlCmplncProdCatztnPhrs ON ChmlCmplncProdCatztnPhrsUUID = _ChmlCmplncProdCatztnPhrs.ProdCmplncPhrsUUID  -- association [0..1]
LEFT OUTER JOIN I_ChmlCompositionProdCatztn AS _ChmlCmplncProdCatztnPhrsCalc ON ChmlCompositionUUID = _ChmlCmplncProdCatztnPhrsCalc.ChmlCompositionUUID  -- association [0..1]
;