C_ChmlCmpstnSubstanceVH

DDL: C_CHMLCMPSTNSUBSTANCEVH SQL: CMCMPSTNSUBVH Type: view CONSUMPTION Package: EHFND_CNS_CMPS_COMN

Value Help for Substance in Composition

C_ChmlCmpstnSubstanceVH is a Consumption CDS View that provides data about "Value Help for Substance in Composition" in SAP S/4HANA. It reads from 2 data sources (I_ChmlCompositionDraft, I_SubstanceTP) and exposes 20 fields with key fields ChmlCompositionUUID, SubstanceUUID. It has 1 association to related views. It is exposed through 3 OData services (ASQL_F1497A, ASQL_F3210, ASQL_F5709). Part of development package EHFND_CNS_CMPS_COMN.

Data Sources (2)

SourceAliasJoin Type
I_ChmlCompositionDraft _ChmlCompositionDraft 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 Substance in Composition view
AbapCatalog.sqlViewName CMCMPSTNSUBVH 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 (3)

ServiceBindingVersionContractRelease
ASQL_F1497A ASQL_F1497A C2 NOT_RELEASED
ASQL_F3210 ASQL_F3210 C2 NOT_RELEASED
ASQL_F5709 ASQL_F5709 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_ChmlCmpstnSubstanceVH.
-- 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: CMCMPSTNSUBVH
-- Parameters: P_ChmlCompositionUUID : sysuuid_x

CREATE VIEW C_ChmlCmpstnSubstanceVH 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_ChmlCompositionDraft AS _ChmlCompositionDraft ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SubstanceText AS _SubstanceText ON SubstanceUUID = _SubstanceText.SubstanceUUID  -- association [0..*]
;