C_CmbndChmlAnlytlCmpstn

DDL: C_CMBNDCHMLANLYTLCMPSTN SQL: CCMBCHLANLCMPTN Type: view CONSUMPTION Package: EHFND_CNS_CCI

Substance based Analytical Composition

C_CmbndChmlAnlytlCmpstn is a Consumption CDS View that provides data about "Substance based Analytical Composition" in SAP S/4HANA. It reads from 4 data sources (P_CmbndChmlAssocdAnlytlCmpstn, I_ChmlCmplncInfo, I_ChmlComponent, I_ChmlComposition) and exposes 10 fields with key fields ChmlCmplncInfoUUID, ChmlCompositionUUID, ChmlCompUUID. It has 1 association to related views. Part of development package EHFND_CNS_CCI.

Data Sources (4)

SourceAliasJoin Type
P_CmbndChmlAssocdAnlytlCmpstn ActiveComposition inner
I_ChmlCmplncInfo ChmlCmplncInfo from
I_ChmlComponent Component inner
I_ChmlComposition Composition inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_SubstanceNameText _Substance Component.SubstanceUUID = _Substance.SubstanceUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CCMBCHLANLCMPTN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Substance based Analytical Composition view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncInfoUUID I_ChmlComposition ChmlCmplncInfoUUID Chemical Compliance Information PP
KEY ChmlCompositionUUID I_ChmlComposition ChmlCompositionUUID Chemical Composition
KEY ChmlCompUUID I_ChmlComponent ChmlCompUUID Chemical Component
SubstanceUUID I_ChmlComponent SubstanceUUID Substance
SubstanceName _Substance SubstanceName Substance Name
CASNumber _Substance CASNumber CAS Number
ChmlCompQty I_ChmlComponent ChmlCompQty Concentration Value
ChmlCompQtyUnitasChmlCompQtyUnit
ChmlCompositionStatusName
_ChmlCmplncInfo _ChmlCmplncInfo

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 C_CmbndChmlAnlytlCmpstn.
-- 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: CCMBCHLANLCMPTN

CREATE VIEW C_CmbndChmlAnlytlCmpstn AS
SELECT
  Composition.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
  Composition.ChmlCompositionUUID AS ChmlCompositionUUID,
  Component.ChmlCompUUID AS ChmlCompUUID,
  Component.SubstanceUUID AS SubstanceUUID,
  _Substance.SubstanceName AS SubstanceName,
  _Substance.CASNumber AS CASNumber,
  Component.ChmlCompQty AS ChmlCompQty,
  Composition._CompositionStatus._Text[1: Language = $session.system_language ].ChmlCompositionStatusName AS ChmlCompositionStatusName
FROM I_ChmlCmplncInfo AS ChmlCmplncInfo
INNER JOIN I_ChmlComposition AS Composition ON /* join condition not captured in parsed metadata */
INNER JOIN P_CmbndChmlAssocdAnlytlCmpstn AS ActiveComposition ON /* join condition not captured in parsed metadata */
INNER JOIN I_ChmlComponent AS Component ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_SubstanceNameText AS _Substance ON Component.SubstanceUUID = _Substance.SubstanceUUID  -- association [0..1]
;