I_ChemicalAttributesC

DDL: I_CHEMICALATTRIBUTESC SQL: ICHMATTRIBC Type: view COMPOSITE

Chemcial Attributes Cube

I_ChemicalAttributesC is a Composite CDS View (Cube) that provides data about "Chemcial Attributes Cube" in SAP S/4HANA. It reads from 1 data source (I_ChemicalRevision) and exposes 15 fields with key fields ChemicalUUID, Material, ListedSubstanceUUID, ECDangerCategory, GHSHazardClassCategory. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ChemicalRevision I_ChemicalRevision from

Parameters (1)

NameTypeDefault
P_KeyDate sydatum

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Chemical _Chemical $projection.ChemicalUUID = _Chemical.ChemicalUUID and $projection.ChemicalRevisionUUID = _Chemical.ChemicalRevisionUUID
[0..*] I_CurrentChemicalNameText _CurrentChemicalNameText $projection.ChemicalUUID = _CurrentChemicalNameText.ChemicalUUID
[0..*] I_LstdSubstPrimNameTxt _LstdSubstPrimNameTxt $projection.listedsubstanceuuid = _LstdSubstPrimNameTxt.ListedSubstanceUUID

Annotations (13)

NameValueLevelField
EndUserText.label Chemcial Attributes Cube view
Analytics.dataCategory #CUBE view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.allowExtensions true view
AbapCatalog.sqlViewName ICHMATTRIBC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY ChemicalUUID ChemicalUUID NodeID
_Chemical _Chemical
_CurrentChemicalNameText _CurrentChemicalNameText
KEY Material _ChemicalMaterial Material Vehicle Model
_Material _ChemicalMaterial _Material
KEY ListedSubstanceUUID _ChemicalHzdsIngredients ListedSubstanceUUID Listed Substance
_LstdSubstPrimNameTxt _LstdSubstPrimNameTxt
KEY ECDangerCategory _ChemicalHazardClassEC ECDangerCategory
_ECDangerCategory _ChemicalHazardClassEC _ECDangerCategory
KEY GHSHazardClassCategory _ChemicalGHSHazardClass GHSHazardClassCategory
_GHSHazardClassCategory _ChemicalGHSHazardClass _GHSHazardClassCategory
KEY ChemicalRevisionUUID ChemicalRevisionUUID UUID
ChemicalType _ChemicalRoot ChemicalType
_ChemicalType _ChemicalRoot _ChemicalType
NumberOfChemicals

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 I_ChemicalAttributesC.
-- 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: ICHMATTRIBC
-- Parameters: P_KeyDate : sydatum

CREATE VIEW I_ChemicalAttributesC AS
SELECT
  ChemicalUUID,
  _ChemicalMaterial.Material AS Material,
  _ChemicalMaterial._Material AS _Material,
  _ChemicalHzdsIngredients.ListedSubstanceUUID AS ListedSubstanceUUID,
  _ChemicalHazardClassEC.ECDangerCategory AS ECDangerCategory,
  _ChemicalHazardClassEC._ECDangerCategory AS _ECDangerCategory,
  _ChemicalGHSHazardClass.GHSHazardClassCategory AS GHSHazardClassCategory,
  _ChemicalGHSHazardClass._GHSHazardClassCategory AS _GHSHazardClassCategory,
  ChemicalRevisionUUID,
  _ChemicalRoot.ChemicalType AS ChemicalType,
  _ChemicalRoot._ChemicalType AS _ChemicalType,
  cast (1 as ehhss_number_of_risks) AS NumberOfChemicals
FROM I_ChemicalRevision
LEFT OUTER JOIN I_Chemical AS _Chemical ON ChemicalUUID = _Chemical.ChemicalUUID AND ChemicalRevisionUUID = _Chemical.ChemicalRevisionUUID  -- association [1..1]
LEFT OUTER JOIN I_CurrentChemicalNameText AS _CurrentChemicalNameText ON ChemicalUUID = _CurrentChemicalNameText.ChemicalUUID  -- association [0..*]
LEFT OUTER JOIN I_LstdSubstPrimNameTxt AS _LstdSubstPrimNameTxt ON listedsubstanceuuid = _LstdSubstPrimNameTxt.ListedSubstanceUUID  -- association [0..*]
;