C_SubstanceQryTP

DDL: C_SUBSTANCEQRYTP Type: view CONSUMPTION Package: EHFND_CNS_SUBSTANCE

Manage Substances Compliance

C_SubstanceQryTP is a Consumption CDS View that provides data about "Manage Substances Compliance" in SAP S/4HANA. It reads from 1 data source (I_SubstanceTP) and exposes 53 fields with key field SubstanceUUID. It has 16 associations to related views. It is exposed through 1 OData service (ASQL_F2578). Part of development package EHFND_CNS_SUBSTANCE.

Data Sources (1)

SourceAliasJoin Type
I_SubstanceTP Substance from

Associations (16)

CardinalityTargetAliasCondition
[0..*] C_SubstanceVarAssgmtQryTP _SubstanceVarAssgmt $projection.SubstanceUUID = _SubstanceVarAssgmt.SubstanceUUID --Group Assignment
[0..*] C_SubstanceGrpAssgmt _SubstanceGrpAsgmt $projection.listedsubstance = _SubstanceGrpAsgmt.ListedSubstance -- Additional Identifiers
[0..*] C_SubstanceAdditionalIdfrTP _SubstanceAdditionalIdfrTP $projection.SubstanceUUID = _SubstanceAdditionalIdfrTP.SubstanceUUID --Listed Substance Primary Names
[0..*] C_SubstanceListedSubstanceTxt _ListedSubPrimNames $projection.ListedSubstanceUUID = _ListedSubPrimNames.ListedSubstanceUUID and $projection.ActiveSubstanceUUID = _ListedSubPrimNames.ActiveSubstanceUUID -- Language Dependent Substance Names
[0..*] C_SubstanceTextTP _SubstanceText $projection.SubstanceUUID = _SubstanceText.SubstanceUUID -- Substance Trade Secret Name
[0..*] C_SubstanceTradeSecretTextTP _SubstanceTradeSecretText $projection.SubstanceUUID = _SubstanceTradeSecretText.SubstanceUUID -- Compliance Requirement Versions
[0..*] C_SubstanceObjPgCmplRqVers _SubstanceCmplRqVers $projection.SubstanceUUID = _SubstanceCmplRqVers.SubstanceUUID -- Polymer
[0..*] C_SubstanceAssgdCmpstn _Composition $projection.SubstanceUUID = _Composition.SubstanceUUID -- Properties
[0..*] C_SubstanceAssgdPCPrpty _Properties _Properties.SubstanceUUID = $projection.SubstanceUUID
[0..1] P_SubstanceAssgdPCEctx _PCEctxProperty _PCEctxProperty.SubstanceUUID = $projection.SubstanceUUID
[0..1] P_SubstanceAssgdPCPhys _PCPhysProperty _PCPhysProperty.SubstanceUUID = $projection.SubstanceUUID
[0..1] P_SubstanceAssgdPCTx _PCPToxProperty _PCPToxProperty.SubstanceUUID = $projection.SubstanceUUID
[0..1] P_SubstanceAssgdPCSfty _PCPSftyProperty _PCPSftyProperty.SubstanceUUID = $projection.SubstanceUUID -- Counters to determine if variants facet shall be shown
[0..1] P_SubstanceVariantsCt _ListedSubstanceVariantsCt $projection.ListedSubstanceUUID = _ListedSubstanceVariantsCt.ListedSubstanceUUID
[0..1] P_SubstanceVarAssgmtCt _ListedSubstanceVarAssCt $projection.ActiveSubstanceUUID = _ListedSubstanceVarAssCt.SubstanceUUID --Value help
[0..1] I_RespUnitSubstanceVH _ResponsibleUnit $projection.ResponsibleUnit = _ResponsibleUnit.ResponsibleUnit

Annotations (20)

NameValueLevelField
EndUserText.label Manage Substances Compliance view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CSUBQRYTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.compositionRoot true view
ObjectModel.draftEnabled true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.representativeKey SubstanceUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
Consumption.semanticObject CompanySubstance view
Search.searchable true view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F2578 ASQL_F2578 C2 NOT_RELEASED

Fields (53)

KeyFieldSource TableSource FieldDescription
KEY SubstanceUUID I_SubstanceTP SubstanceUUID Substance
ActiveSubstanceUUID I_SubstanceTP ActiveSubstanceUUID Substance
SubstanceName I_SubstanceTP SubstanceName Substance Name
SubstanceInternalName I_SubstanceTP SubstanceInternalName Internal Name
ListedSubstanceName
CntntListedSubstanceDfltName
CustListedSubstanceDfltName
CompanySubstanceName I_SubstanceTP CompanySubstanceName Substance Name
ListedSubstanceUUID I_SubstanceTP ListedSubstanceUUID Listed Substance
ListedSubstance
CntntListedSubstance
CustListedSubstance
CASNumber
CntntCASNumber
CustCASNumber
ECNumber
CntntECNumber
CustECNumber
MolecularFormula
CntntMolecularFormula
CustMolecularFormula
ResponsibleUnit I_SubstanceTP ResponsibleUnit Responsible Unit
ResponsibleUnitName _ResponsibleUnit ResponsibleUnitName
CreationUTCDateTime I_SubstanceTP CreationUTCDateTime Time Stamp
CreatedByUser I_SubstanceTP CreatedByUser User Name
LastChangeUTCDateTime I_SubstanceTP LastChangeUTCDateTime Time Stamp
LastChangedByUser I_SubstanceTP LastChangedByUser User Name
Specification I_SubstanceTP Specification Specification
NmbrOfAvailLstdSubstVariants _ListedSubstanceVariantsCt VariantCount
NmbrOfAssgdLstdSubstVariants _ListedSubstanceVarAssCt VariantAssignmentCount
SubstGrpAssgmtRankingIsVisible
PCEctxPrptyNavgnLinkUUID _PCEctxProperty PCPrptyNavgnLinkUUID
PCEctxPrptyIsActive _PCEctxProperty PCPrptyIsActive
PCPhysPrptyNavgnLinkUUID _PCPhysProperty PCPrptyNavgnLinkUUID
PCPhysPrptyIsActive _PCPhysProperty PCPrptyIsActive
PCPrptyNavgnLinkUUID _PCPToxProperty PCPrptyNavgnLinkUUID
PCPrptyIsActive _PCPToxProperty PCPrptyIsActive
PCSftyPrptyNavgnLinkUUID _PCPSftyProperty PCPrptyNavgnLinkUUID
PCSftyPrptyIsActive _PCPSftyProperty PCPrptyIsActive
PolymerIsBsdOnOECDDef I_SubstanceTP PolymerIsBsdOnOECDDef OECD Polymer
ProdCmplncLegalAreaasProdCmplncLegalArea
SubstanceAdditionalIdfrType
SubstanceAdditionalIdfrDesc
_SubstanceText _SubstanceText
_SubstanceTradeSecretText _SubstanceTradeSecretText
_SubstanceCmplRqVers _SubstanceCmplRqVers
_SubstanceVarAssgmt _SubstanceVarAssgmt
_SubstanceAdditionalIdfrTP _SubstanceAdditionalIdfrTP
_SubstanceGrpAsgmt _SubstanceGrpAsgmt
_ListedSubPrimNames _ListedSubPrimNames
_ResponsibleUnit _ResponsibleUnit
_Properties _Properties
_Composition _Composition

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_SubstanceQryTP.
-- 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.

CREATE VIEW C_SubstanceQryTP AS
SELECT
  Substance.SubstanceUUID AS SubstanceUUID,
  Substance.ActiveSubstanceUUID AS ActiveSubstanceUUID,
  Substance.SubstanceName AS SubstanceName,
  Substance.SubstanceInternalName AS SubstanceInternalName,
  cast(Substance._ListedSubstance.ListedSubstanceDefaultName as ehfnd_lisu_name_text_long) AS ListedSubstanceName,
  Substance._ListedSubstance.CntntListedSubstanceDfltName AS CntntListedSubstanceDfltName,
  Substance._ListedSubstance.CustListedSubstanceDfltName AS CustListedSubstanceDfltName,
  Substance.CompanySubstanceName AS CompanySubstanceName,
  Substance.ListedSubstanceUUID AS ListedSubstanceUUID,
  Substance._ListedSubstance.ListedSubstance AS ListedSubstance,
  Substance._ListedSubstance.CntntListedSubstance AS CntntListedSubstance,
  Substance._ListedSubstance.CustListedSubstance AS CustListedSubstance,
  Substance._ListedSubstance.CASNumber AS CASNumber,
  Substance._ListedSubstance.CntntCASNumber AS CntntCASNumber,
  Substance._ListedSubstance.CustCASNumber AS CustCASNumber,
  Substance._ListedSubstance.ECNumber AS ECNumber,
  Substance._ListedSubstance.CntntECNumber AS CntntECNumber,
  Substance._ListedSubstance.CustECNumber AS CustECNumber,
  Substance._ListedSubstance.MolecularFormula AS MolecularFormula,
  Substance._ListedSubstance.CntntMolecularFormula AS CntntMolecularFormula,
  Substance._ListedSubstance.CustMolecularFormula AS CustMolecularFormula,
  Substance.ResponsibleUnit AS ResponsibleUnit,
  _ResponsibleUnit.ResponsibleUnitName AS ResponsibleUnitName,
  Substance.CreationUTCDateTime AS CreationUTCDateTime,
  Substance.CreatedByUser AS CreatedByUser,
  Substance.LastChangeUTCDateTime AS LastChangeUTCDateTime,
  Substance.LastChangedByUser AS LastChangedByUser,
  Substance.Specification AS Specification,
  _ListedSubstanceVariantsCt.VariantCount AS NmbrOfAvailLstdSubstVariants,
  _ListedSubstanceVarAssCt.VariantAssignmentCount AS NmbrOfAssgdLstdSubstVariants,
  cast( 'X' as ehfnd_boolean ) AS SubstGrpAssgmtRankingIsVisible,
  _PCEctxProperty.PCPrptyNavgnLinkUUID AS PCEctxPrptyNavgnLinkUUID,
  _PCEctxProperty.PCPrptyIsActive AS PCEctxPrptyIsActive,
  _PCPhysProperty.PCPrptyNavgnLinkUUID AS PCPhysPrptyNavgnLinkUUID,
  _PCPhysProperty.PCPrptyIsActive AS PCPhysPrptyIsActive,
  _PCPToxProperty.PCPrptyNavgnLinkUUID AS PCPrptyNavgnLinkUUID,
  _PCPToxProperty.PCPrptyIsActive AS PCPrptyIsActive,
  _PCPSftyProperty.PCPrptyNavgnLinkUUID AS PCSftyPrptyNavgnLinkUUID,
  _PCPSftyProperty.PCPrptyIsActive AS PCSftyPrptyIsActive,
  Substance.PolymerIsBsdOnOECDDef AS PolymerIsBsdOnOECDDef,
  cast('' as ehfnd_sub_add_identifier ) AS SubstanceAdditionalIdfrType,
  cast('' as ehfnd_sub_add_identif_concat ) AS SubstanceAdditionalIdfrDesc
FROM I_SubstanceTP AS Substance
LEFT OUTER JOIN C_SubstanceVarAssgmtQryTP AS _SubstanceVarAssgmt ON SubstanceUUID = _SubstanceVarAssgmt.SubstanceUUID  -- association [0..*]
LEFT OUTER JOIN C_SubstanceGrpAssgmt AS _SubstanceGrpAsgmt ON listedsubstance = _SubstanceGrpAsgmt.ListedSubstance  -- association [0..*]
LEFT OUTER JOIN C_SubstanceAdditionalIdfrTP AS _SubstanceAdditionalIdfrTP ON SubstanceUUID = _SubstanceAdditionalIdfrTP.SubstanceUUID  -- association [0..*]
LEFT OUTER JOIN C_SubstanceListedSubstanceTxt AS _ListedSubPrimNames ON ListedSubstanceUUID = _ListedSubPrimNames.ListedSubstanceUUID AND ActiveSubstanceUUID = _ListedSubPrimNames.ActiveSubstanceUUID  -- association [0..*]
LEFT OUTER JOIN C_SubstanceTextTP AS _SubstanceText ON SubstanceUUID = _SubstanceText.SubstanceUUID  -- association [0..*]
LEFT OUTER JOIN C_SubstanceTradeSecretTextTP AS _SubstanceTradeSecretText ON SubstanceUUID = _SubstanceTradeSecretText.SubstanceUUID  -- association [0..*]
LEFT OUTER JOIN C_SubstanceObjPgCmplRqVers AS _SubstanceCmplRqVers ON SubstanceUUID = _SubstanceCmplRqVers.SubstanceUUID  -- association [0..*]
LEFT OUTER JOIN C_SubstanceAssgdCmpstn AS _Composition ON SubstanceUUID = _Composition.SubstanceUUID  -- association [0..*]
LEFT OUTER JOIN C_SubstanceAssgdPCPrpty AS _Properties ON _Properties.SubstanceUUID = SubstanceUUID  -- association [0..*]
LEFT OUTER JOIN P_SubstanceAssgdPCEctx AS _PCEctxProperty ON _PCEctxProperty.SubstanceUUID = SubstanceUUID  -- association [0..1]
LEFT OUTER JOIN P_SubstanceAssgdPCPhys AS _PCPhysProperty ON _PCPhysProperty.SubstanceUUID = SubstanceUUID  -- association [0..1]
LEFT OUTER JOIN P_SubstanceAssgdPCTx AS _PCPToxProperty ON _PCPToxProperty.SubstanceUUID = SubstanceUUID  -- association [0..1]
LEFT OUTER JOIN P_SubstanceAssgdPCSfty AS _PCPSftyProperty ON _PCPSftyProperty.SubstanceUUID = SubstanceUUID  -- association [0..1]
LEFT OUTER JOIN P_SubstanceVariantsCt AS _ListedSubstanceVariantsCt ON ListedSubstanceUUID = _ListedSubstanceVariantsCt.ListedSubstanceUUID  -- association [0..1]
LEFT OUTER JOIN P_SubstanceVarAssgmtCt AS _ListedSubstanceVarAssCt ON ActiveSubstanceUUID = _ListedSubstanceVarAssCt.SubstanceUUID  -- association [0..1]
LEFT OUTER JOIN I_RespUnitSubstanceVH AS _ResponsibleUnit ON ResponsibleUnit = _ResponsibleUnit.ResponsibleUnit  -- association [0..1]
;