I_PackagedDangerousGood

DDL: I_PACKAGEDDANGEROUSGOOD SQL: PPDG Type: view COMPOSITE Package: EHDGM_BO_CRR

Packaged Dangerous Good

I_PackagedDangerousGood is a Composite CDS View that provides data about "Packaged Dangerous Good" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncInfo) and exposes 18 fields with key field ChmlCmplncInfoUUID. It has 4 associations to related views. Part of development package EHDGM_BO_CRR.

Data Sources (1)

SourceAliasJoin Type
I_ChmlCmplncInfo ChemicalComplianceInfo from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Product _Product $projection.Product = _Product.Product
[1..1] I_ChmlCmplncInfo _ChmlCmplncInfo $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID
[0..*] I_DangerousGoodsClassification _Classification $projection.ChmlCmplncInfoUUID = _Classification.ChmlCmplncInfoUUID
[0..1] I_UnpackagedDangerousGood _UnpackagedDangerousGood $projection.UnpckgdChmlCmplncInfoUUID = _UnpackagedDangerousGood.ChmlCmplncInfoUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PPDG view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Packaged Dangerous Good view
VDM.viewType #COMPOSITE view
Metadata.allowExtensions false view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncInfoUUID I_ChmlCmplncInfo ChmlCmplncInfoUUID Chemical Compliance Information PP
CreationUTCDateTime I_ChmlCmplncInfo CreationUTCDateTime Time Stamp
CreatedByUser I_ChmlCmplncInfo CreatedByUser User Name
LastChangeUTCDateTime I_ChmlCmplncInfo LastChangeUTCDateTime Time Stamp
LastChangedByUser I_ChmlCmplncInfo LastChangedByUser User Name
DngrsGdsRespUnit I_ChmlCmplncInfo DngrsGdsRespUnit Responsible Unit for Dangerous Goods
ChmlCmplncInternalName I_ChmlCmplncInfo ChmlCmplncInternalName Internal Name
ChemicalComplianceInfo
Product
UnpckgdChmlCmplncInfoUUID ProductAssignment ChmlCmplncProdUUID Product Assignment
_Product _Product
_ChmlCmplncInfo _ChmlCmplncInfo
_UnpackagedDangerousGood _UnpackagedDangerousGood
_Classification _Classification
_CreatedByUser I_ChmlCmplncInfo _CreatedByUser
_LastChangedByUser I_ChmlCmplncInfo _LastChangedByUser
_PrimaryMaterial I_ChmlCmplncInfo _PrimaryMaterial
_RespUnitForDangerousGoods I_ChmlCmplncInfo _RespUnitForDangerousGoods

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_PackagedDangerousGood.
-- 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: PPDG

CREATE VIEW I_PackagedDangerousGood AS
SELECT
  ChemicalComplianceInfo.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
  ChemicalComplianceInfo.CreationUTCDateTime AS CreationUTCDateTime,
  ChemicalComplianceInfo.CreatedByUser AS CreatedByUser,
  ChemicalComplianceInfo.LastChangeUTCDateTime AS LastChangeUTCDateTime,
  ChemicalComplianceInfo.LastChangedByUser AS LastChangedByUser,
  ChemicalComplianceInfo.DngrsGdsRespUnit AS DngrsGdsRespUnit,
  ChemicalComplianceInfo.ChmlCmplncInternalName AS ChmlCmplncInternalName,
  cast( ChemicalComplianceInfo.Specification as ehfnd_internal_nr preserving type ) AS ChemicalComplianceInfo,
  cast( ChemicalComplianceInfo._PrimaryMaterial.Material as productnumber preserving type ) AS Product,
  ProductAssignment.ChmlCmplncProdUUID AS UnpckgdChmlCmplncInfoUUID,
  ChemicalComplianceInfo._CreatedByUser AS _CreatedByUser,
  ChemicalComplianceInfo._LastChangedByUser AS _LastChangedByUser,
  ChemicalComplianceInfo._PrimaryMaterial AS _PrimaryMaterial,
  ChemicalComplianceInfo._RespUnitForDangerousGoods AS _RespUnitForDangerousGoods
FROM I_ChmlCmplncInfo AS ChemicalComplianceInfo
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_ChmlCmplncInfo AS _ChmlCmplncInfo ON ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID  -- association [1..1]
LEFT OUTER JOIN I_DangerousGoodsClassification AS _Classification ON ChmlCmplncInfoUUID = _Classification.ChmlCmplncInfoUUID  -- association [0..*]
LEFT OUTER JOIN I_UnpackagedDangerousGood AS _UnpackagedDangerousGood ON UnpckgdChmlCmplncInfoUUID = _UnpackagedDangerousGood.ChmlCmplncInfoUUID  -- association [0..1]
;