C_MatlBsdSubstInRmngCompVH

DDL: C_MATLBSDSUBSTINRMNGCOMPVH Type: view CONSUMPTION

Substances in Aft Prod Comp of MbC

C_MatlBsdSubstInRmngCompVH is a Consumption CDS View that provides data about "Substances in Aft Prod Comp of MbC" in SAP S/4HANA. It reads from 3 data sources (I_MatlBsdAfterProdnCompDraft, I_ChmlComposition, I_ChmlComponent) and exposes 19 fields with key field ChmlCompUUID. It has 2 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_MatlBsdAfterProdnCompDraft _AfterProdnComp inner
I_ChmlComposition _ChemicalComposition inner
I_ChmlComponent ChmlComponent from

Parameters (1)

NameTypeDefault
P_ChmlCompositionUUID sysuuid_x

Associations (2)

CardinalityTargetAliasCondition
[0..1] C_ChmlCmplncPrimMatl _PrimaryMaterial ChmlComponent.ChmlCmplncInfoUUID = _PrimaryMaterial.ChmlCmplncInfoUUID --Substance
[0..1] I_SubstanceTP _Substance ChmlComponent.SubstanceUUID = _Substance.SubstanceUUID

Annotations (14)

NameValueLevelField
EndUserText.label Substances in Aft Prod Comp of MbC view
AbapCatalog.sqlViewName MBCREMCOMPSUBVH view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.representativeKey ChmlCompUUID view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
Search.searchable true view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY ChmlCompUUID I_ChmlComponent ChmlCompUUID Chemical Component
ChmlCompositionUUID I_ChmlComponent ChmlCompositionUUID Chemical Composition
ChmlCmplncInfoUUID I_ChmlComponent ChmlCmplncInfoUUID Chemical Compliance Information PP
ChmlCompositionUUIDasMatlBsdCompUUID
SubstanceUUID I_ChmlComponent SubstanceUUID Substance
SubstanceName _Substance SubstanceName Substance Name
CASNumber
ChmlCompQty I_ChmlComponent ChmlCompQty Concentration Value
ChmlCompQtyAsText I_ChmlComponent ChmlCompQtyAsText Concentration
ChmlCompQtyUnit I_ChmlComponent ChmlCompQtyUnit Unit of Measurement
ChmlCompOperatorLowerLimit I_ChmlComponent ChmlCompOperatorLowerLimit Operator Lower Limit
ChmlCompQtyLowerLimit I_ChmlComponent ChmlCompQtyLowerLimit Lower Limit Value
ChmlCompQtyLowerLimitAsText I_ChmlComponent ChmlCompQtyLowerLimitAsText Lower Limit
ChmlCompOperatorUpperLimit I_ChmlComponent ChmlCompOperatorUpperLimit Operator Upper Limit
ChmlCompQtyUpperLimit I_ChmlComponent ChmlCompQtyUpperLimit Upper Limit Value
ChmlCompQtyUpperLimitAsText I_ChmlComponent ChmlCompQtyUpperLimitAsText Upper Limit
ResponsibleUnit _Substance ResponsibleUnit Responsible Unit
_PrimaryMaterial _PrimaryMaterial
_Substance _Substance

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_MatlBsdSubstInRmngCompVH.
-- 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.
-- Parameters: P_ChmlCompositionUUID : sysuuid_x

CREATE VIEW C_MatlBsdSubstInRmngCompVH AS
SELECT
  ChmlComponent.ChmlCompUUID AS ChmlCompUUID,
  ChmlComponent.ChmlCompositionUUID AS ChmlCompositionUUID,
  ChmlComponent.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
  ChmlComponent.SubstanceUUID AS SubstanceUUID,
  _Substance.SubstanceName AS SubstanceName,
  _Substance._ListedSubstance.CASNumber AS CASNumber,
  ChmlComponent.ChmlCompQty AS ChmlCompQty,
  ChmlComponent.ChmlCompQtyAsText AS ChmlCompQtyAsText,
  ChmlComponent.ChmlCompQtyUnit AS ChmlCompQtyUnit,
  ChmlComponent.ChmlCompOperatorLowerLimit AS ChmlCompOperatorLowerLimit,
  ChmlComponent.ChmlCompQtyLowerLimit AS ChmlCompQtyLowerLimit,
  ChmlComponent.ChmlCompQtyLowerLimitAsText AS ChmlCompQtyLowerLimitAsText,
  ChmlComponent.ChmlCompOperatorUpperLimit AS ChmlCompOperatorUpperLimit,
  ChmlComponent.ChmlCompQtyUpperLimit AS ChmlCompQtyUpperLimit,
  ChmlComponent.ChmlCompQtyUpperLimitAsText AS ChmlCompQtyUpperLimitAsText,
  _Substance.ResponsibleUnit AS ResponsibleUnit
FROM I_ChmlComponent AS ChmlComponent
INNER JOIN I_MatlBsdAfterProdnCompDraft AS _AfterProdnComp ON /* join condition not captured in parsed metadata */
INNER JOIN I_ChmlComposition AS _ChemicalComposition ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_ChmlCmplncPrimMatl AS _PrimaryMaterial ON ChmlComponent.ChmlCmplncInfoUUID = _PrimaryMaterial.ChmlCmplncInfoUUID  -- association [0..1]
LEFT OUTER JOIN I_SubstanceTP AS _Substance ON ChmlComponent.SubstanceUUID = _Substance.SubstanceUUID  -- association [0..1]
;