C_MatlBasedProducedSubstanceVH

DDL: C_MATLBASEDPRODUCEDSUBSTANCEVH SQL: CMCPRODSUBVH Type: view CONSUMPTION Package: EHFND_CNS_CMPS_MATLBASED

Value Help for Produced Substances for Matl Bsd Composition

C_MatlBasedProducedSubstanceVH is a Consumption CDS View that provides data about "Value Help for Produced Substances for Matl Bsd Composition" in SAP S/4HANA. It reads from 2 data sources (I_MatlBasedCompositionDraft, I_SubstanceTP) and exposes 20 fields with key fields ChmlCompositionUUID, SubstanceUUID. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F8392). Part of development package EHFND_CNS_CMPS_MATLBASED.

Data Sources (2)

SourceAliasJoin Type
I_MatlBasedCompositionDraft _MatlBasedCompositionDraft inner
I_SubstanceTP _Substance from

Parameters (1)

NameTypeDefault
P_ChmlCompositionUUID sysuuid_x

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_SubstanceText _SubstanceText $projection.SubstanceUUID = _SubstanceText.SubstanceUUID

Annotations (13)

NameValueLevelField
EndUserText.label Value Help for Produced Substances for Matl Bsd Composition view
AbapCatalog.sqlViewName CMCPRODSUBVH view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.representativeKey SubstanceUUID view
ObjectModel.dataCategory #VALUE_HELP view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F8392 ASQL_F8392 C2 NOT_RELEASED

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY ChmlCompositionUUID
KEY SubstanceUUID I_SubstanceTP SubstanceUUID Substance
ListedSubstanceUUID I_SubstanceTP ListedSubstanceUUID Listed Substance
SubstanceName I_SubstanceTP SubstanceName Substance Name
SubstanceInternalName I_SubstanceTP SubstanceInternalName Internal Name
CustListedSubstanceDfltName
CntntListedSubstanceDfltName
CompanySubstanceName I_SubstanceTP CompanySubstanceName Substance Name
CustListedSubstance
CntntListedSubstance
ECNumber
CustECNumber
CntntECNumber
CASNumber
CustCASNumber
CntntCASNumber
CustMolecularFormula
CntntMolecularFormula
ResponsibleUnit I_SubstanceTP ResponsibleUnit Responsible Unit
_SubstanceText _SubstanceText

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

CREATE VIEW C_MatlBasedProducedSubstanceVH AS
SELECT
  $parameters.P_ChmlCompositionUUID AS ChmlCompositionUUID,
  _Substance.SubstanceUUID AS SubstanceUUID,
  _Substance.ListedSubstanceUUID AS ListedSubstanceUUID,
  _Substance.SubstanceName AS SubstanceName,
  _Substance.SubstanceInternalName AS SubstanceInternalName,
  _Substance._ListedSubstance.CustListedSubstanceDfltName AS CustListedSubstanceDfltName,
  _Substance._ListedSubstance.CntntListedSubstanceDfltName AS CntntListedSubstanceDfltName,
  _Substance.CompanySubstanceName AS CompanySubstanceName,
  _Substance._ListedSubstance.CustListedSubstance AS CustListedSubstance,
  _Substance._ListedSubstance.CntntListedSubstance AS CntntListedSubstance,
  _Substance._ListedSubstance.ECNumber AS ECNumber,
  _Substance._ListedSubstance.CustECNumber AS CustECNumber,
  _Substance._ListedSubstance.CntntECNumber AS CntntECNumber,
  _Substance._ListedSubstance.CASNumber AS CASNumber,
  _Substance._ListedSubstance.CustCASNumber AS CustCASNumber,
  _Substance._ListedSubstance.CntntCASNumber AS CntntCASNumber,
  _Substance._ListedSubstance.CustMolecularFormula AS CustMolecularFormula,
  _Substance._ListedSubstance.CntntMolecularFormula AS CntntMolecularFormula,
  _Substance.ResponsibleUnit AS ResponsibleUnit
FROM I_SubstanceTP AS _Substance
INNER JOIN I_MatlBasedCompositionDraft AS _MatlBasedCompositionDraft ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SubstanceText AS _SubstanceText ON SubstanceUUID = _SubstanceText.SubstanceUUID  -- association [0..*]
;