C_CmplRqRsltHzdsIngrdntSubstVH

DDL: C_CMPLRQRSLTHZDSINGRDNTSUBSTVH SQL: CCRRHZISUBVH Type: view CONSUMPTION Package: EHFND_CNS_HZI

Substance indicated as Hazardous Ingredient VH

C_CmplRqRsltHzdsIngrdntSubstVH is a Consumption CDS View that provides data about "Substance indicated as Hazardous Ingredient VH" in SAP S/4HANA. It reads from 3 data sources (I_ChmlComponent, I_ChmlComposition, I_CmplRqRsltHzdsIngrdntDraft) and exposes 18 fields with key fields CmplRqRsltUUID, SubstanceUUID. It has 3 associations to related views. It is exposed through 1 OData service (ASQL_F5086). Part of development package EHFND_CNS_HZI.

Data Sources (3)

SourceAliasJoin Type
I_ChmlComponent _ChmlComponent from
I_ChmlComposition _ChmlComposition inner
I_CmplRqRsltHzdsIngrdntDraft _CmplRqRsltHzdsIngrdntDraft inner

Parameters (1)

NameTypeDefault
P_CmplRqRsltUUID sysuuid_x

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_SubstanceTP _Substance _ChmlComponent.SubstanceUUID = _Substance.SubstanceUUID -- Unit Of Measure Value Help
[0..*] I_UnitOfMeasureText _UnitOfMeasureText $projection.ChmlCompReldQtyUnit = _UnitOfMeasureText.UnitOfMeasure --Link to 'Chemcial Compliance Info' as root
[1..1] I_ChmlCmplncInfo _ChmlCmplncInfo $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID

Annotations (14)

NameValueLevelField
EndUserText.label Substance indicated as Hazardous Ingredient VH view
AbapCatalog.sqlViewName CCRRHZISUBVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey 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_F5086 ASQL_F5086 C2 NOT_RELEASED

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY CmplRqRsltUUID
KEY SubstanceUUID I_ChmlComponent SubstanceUUID Substance
SubstanceName _Substance SubstanceName Substance Name
SubstanceInternalName _Substance SubstanceInternalName Internal Name
CompanySubstanceName _Substance CompanySubstanceName Substance Name
ECNumberasECNumber
CASNumber
ResponsibleUnit _Substance ResponsibleUnit Responsible Unit
ChmlCompTypeasChmlCompType
ChmlCompTypeNameasChmlCompTypeName
ChmlCompQtyAsTextasChmlCompReldQtyAsText
ChmlCompReldLowrLimitQtyAsText I_ChmlComponent ChmlCompQtyLowerLimitAsText Lower Limit
ChmlCompReldUprLimitQtyOptr I_ChmlComponent ChmlCompOperatorUpperLimit Operator Upper Limit
ChmlCompReldUprLimitQtyAsText I_ChmlComponent ChmlCompQtyUpperLimitAsText Upper Limit
ChmlCompQtyUnitasChmlCompReldQtyUnit
ChmlCmplncInfoUUID I_ChmlComposition ChmlCmplncInfoUUID Chemical Compliance Information PP
_Substance _Substance
_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_CmplRqRsltHzdsIngrdntSubstVH.
-- 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: CCRRHZISUBVH
-- Parameters: P_CmplRqRsltUUID : sysuuid_x

CREATE VIEW C_CmplRqRsltHzdsIngrdntSubstVH AS
SELECT
  $parameters.P_CmplRqRsltUUID AS CmplRqRsltUUID,
  _ChmlComponent.SubstanceUUID AS SubstanceUUID,
  _Substance.SubstanceName AS SubstanceName,
  _Substance.SubstanceInternalName AS SubstanceInternalName,
  _Substance.CompanySubstanceName AS CompanySubstanceName,
  _Substance._ListedSubstance.CASNumber AS CASNumber,
  _Substance.ResponsibleUnit AS ResponsibleUnit,
  _ChmlComponent.ChmlCompQtyLowerLimitAsText AS ChmlCompReldLowrLimitQtyAsText,
  _ChmlComponent.ChmlCompOperatorUpperLimit AS ChmlCompReldUprLimitQtyOptr,
  _ChmlComponent.ChmlCompQtyUpperLimitAsText AS ChmlCompReldUprLimitQtyAsText,
  _ChmlComposition.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID
FROM I_ChmlComponent AS _ChmlComponent
INNER JOIN I_CmplRqRsltHzdsIngrdntDraft AS _CmplRqRsltHzdsIngrdntDraft ON /* join condition not captured in parsed metadata */
INNER JOIN I_ChmlComposition AS _ChmlComposition ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SubstanceTP AS _Substance ON _ChmlComponent.SubstanceUUID = _Substance.SubstanceUUID  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasureText AS _UnitOfMeasureText ON ChmlCompReldQtyUnit = _UnitOfMeasureText.UnitOfMeasure  -- association [0..*]
LEFT OUTER JOIN I_ChmlCmplncInfo AS _ChmlCmplncInfo ON ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID  -- association [1..1]
;