C_MatlBasedReplacedSubstanceVH

DDL: C_MATLBASEDREPLACEDSUBSTANCEVH SQL: CMCRPLCDSUBVH Type: view CONSUMPTION Package: EHFND_CNS_CMPS_MATLBASED

Value Help for Replaced Substances for Matl Bsd Composition

C_MatlBasedReplacedSubstanceVH is a Consumption CDS View that provides data about "Value Help for Replaced Substances for Matl Bsd Composition" in SAP S/4HANA. It reads from 2 data sources (I_MatlBsdCmpstnLglDvtnDrft, I_SubstanceTP) and exposes 20 fields with key fields LegalDeviationUUID, 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_MatlBsdCmpstnLglDvtnDrft _LegalDeviationDraft inner
I_SubstanceTP _Substance from

Parameters (3)

NameTypeDefault
P_LegalDeviationUUID sysuuid_x
P_ReplacedSubstanceUUID sysuuid_x
P_MatlBsdCmpstnSubstType ehfnd_cci_ccomp_mbc_subst_type

Associations (1)

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

Annotations (13)

NameValueLevelField
EndUserText.label Value Help for Replaced Substances for Matl Bsd Composition view
AbapCatalog.sqlViewName CMCRPLCDSUBVH 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 LegalDeviationUUID
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_MatlBasedReplacedSubstanceVH.
-- 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: CMCRPLCDSUBVH
-- Parameters: P_LegalDeviationUUID : sysuuid_x, P_ReplacedSubstanceUUID : sysuuid_x, P_MatlBsdCmpstnSubstType : ehfnd_cci_ccomp_mbc_subst_type

CREATE VIEW C_MatlBasedReplacedSubstanceVH AS
SELECT
  $parameters.P_LegalDeviationUUID AS LegalDeviationUUID,
  _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_MatlBsdCmpstnLglDvtnDrft AS _LegalDeviationDraft ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SubstanceText AS _SubstanceText ON SubstanceUUID = _SubstanceText.SubstanceUUID  -- association [0..*]
;