C_UnpackagedDangerousGood
Unpackaged Dangerous Good
C_UnpackagedDangerousGood is a Consumption CDS View that provides data about "Unpackaged Dangerous Good" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncInfo) and exposes 28 fields with key field ChmlCmplncInfoUUID. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ChmlCmplncInfo | ChemicalComplianceInfo | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [0..*] | I_ProductText | _ProductText | $projection.Product = _ProductText.Product |
| [0..*] | I_ProductGroupText_2 | _ProductGroupText | $projection.productgroup = _ProductGroupText.ProductGroup |
| [0..*] | C_DngrsGdsAnlytlCmpstnComp | _ChmlCompOfReldAnlytlCmpstn | $projection.AnalyticCmpstnReleasedUUID = _ChmlCompOfReldAnlytlCmpstn.ChmlCompositionUUID |
| [0..*] | C_UnpackagedDangerousGoodClfn | _UnpackagedDangerousGoodClfn | $projection.ChmlCmplncInfoUUID = _UnpackagedDangerousGoodClfn.ChmlCmplncInfoUUID -- provide data for related packaged dangerous goods |
| [0..*] | C_UpaDaGdsClfnAssgdPckgdClfn | _RelatedPackagedProduct | $projection.ChmlCmplncInfoUUID = _RelatedPackagedProduct.ChmlCmplncInfoUUID -- needed for the smart link navigation in the up apps |
| [0..1] | P_AssociatedAnlytlReldCmpstn | _AnlytlCmpstn | _AnlytlCmpstn.ChmlCmplncInfoUUID = $projection.ChmlCmplncInfoUUID |
| [0..1] | P_AssociatedMatlReldCmpstn | _MatlBsdCmpstn | _MatlBsdCmpstn.ChmlCmplncInfoUUID = $projection.ChmlCmplncInfoUUID |
| [0..1] | P_ChmlCmplncInfoAssgdPCPhys | _PCPhysProperty | _PCPhysProperty.ChmlCmplncInfoUUID = $projection.ChmlCmplncInfoUUID and _PCPhysProperty.PCPrptyRootType = 'EHFNDD_PHYSCHEM' and ( _PCPhysProperty.PCPrptyInProcProcgSts = 'IP' or _PCPhysProperty.PCPrptyReldProcgSts = 'RE' ) |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CUPDG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Unpackaged Dangerous Good | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChmlCmplncInfoUUID | I_ChmlCmplncInfo | ChmlCmplncInfoUUID | Chemical Compliance Information PP |
| Product | ||||
| RawMaterial | ||||
| SitnInstceAnchorObjectKey | ||||
| ProductGroup | _Product | ProductGroup | Product Sold Group | |
| Specification | I_ChmlCmplncInfo | Specification | Specification | |
| ChmlCmplncInfoCombinedName | ||||
| ChmlCmplncInternalName | I_ChmlCmplncInfo | ChmlCmplncInternalName | Internal Name | |
| ProductName | ProductText | ProductName | Description | |
| AnalyticCmpstnReleasedUUID | ReleasedAnalyticalComposition | ChmlCompositionReleasedUUID | ||
| AnalyticCmpstnReleaseDateTime | ReleasedAnalyticalComposition | ReleaseDateTime | Composition Released On | |
| IsCloudSystem | ||||
| DngrsGdsRespUnit | I_ChmlCmplncInfo | DngrsGdsRespUnit | Responsible Unit for Dangerous Goods | |
| AnalyticCmpstnNavgnLinkUUID | _AnlytlCmpstn | ChmlCompositionReleasedUUID | ||
| MatlBsdCmpstnNavgnLinkUUID | _MatlBsdCmpstn | ChmlCompositionReleasedUUID | ||
| PCPhysPrptyNavgnLinkUUID | _PCPhysProperty | PCPrptyNavgnLinkUUID | ||
| ChmlCmplncInfoType | ||||
| ChmlCmplncProdIsResearched | I_ChmlCmplncInfo | ChmlCmplncProdIsResearched | R&D Sample | |
| MaterialIsSold | I_ChmlCmplncInfo | MaterialIsSold | Is Sold | |
| MaterialIsTransported | I_ChmlCmplncInfo | MaterialIsTransported | Is Transported | |
| MaterialIsSourced | I_ChmlCmplncInfo | MaterialIsSourced | Is Purchased | |
| MaterialIsProduced | I_ChmlCmplncInfo | MaterialIsProduced | Is Produced | |
| ChmlCmplncTypeImageURL | ||||
| Associations_ProductText | ||||
| _ProductGroupText | _ProductGroupText | |||
| _ChmlCompOfReldAnlytlCmpstn | _ChmlCompOfReldAnlytlCmpstn | |||
| _UnpackagedDangerousGoodClfn | _UnpackagedDangerousGoodClfn | |||
| _RelatedPackagedProduct | _RelatedPackagedProduct |
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_UnpackagedDangerousGood.
-- 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: CUPDG
CREATE VIEW C_UnpackagedDangerousGood AS
SELECT
ChemicalComplianceInfo.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
cast (PrimaryMaterial.Material as productnumber preserving type ) AS Product,
cast (PrimaryMaterial.Material as ehfnd_cci_raw_material preserving type ) AS RawMaterial,
cast( bintohex(ChemicalComplianceInfo.ChmlCmplncInfoUUID) as sit_de_ancobjkey ) AS SitnInstceAnchorObjectKey,
_Product.ProductGroup AS ProductGroup,
ChemicalComplianceInfo.Specification AS Specification,
cast( coalesce( ProductText.ProductName, ChemicalComplianceInfo.ChmlCmplncInternalName ) as ehfnd_cci_up ) AS ChmlCmplncInfoCombinedName,
ChemicalComplianceInfo.ChmlCmplncInternalName AS ChmlCmplncInternalName,
ProductText.ProductName AS ProductName,
ReleasedAnalyticalComposition.ChmlCompositionReleasedUUID AS AnalyticCmpstnReleasedUUID,
ReleasedAnalyticalComposition.ReleaseDateTime AS AnalyticCmpstnReleaseDateTime,
cast( 'X' as char1 ) AS IsCloudSystem,
ChemicalComplianceInfo.DngrsGdsRespUnit AS DngrsGdsRespUnit,
_AnlytlCmpstn.ChmlCompositionReleasedUUID AS AnalyticCmpstnNavgnLinkUUID,
_MatlBsdCmpstn.ChmlCompositionReleasedUUID AS MatlBsdCmpstnNavgnLinkUUID,
_PCPhysProperty.PCPrptyNavgnLinkUUID AS PCPhysPrptyNavgnLinkUUID,
ChemicalComplianceInfo.ChmlCmplncProdIsResearched AS ChmlCmplncProdIsResearched,
ChemicalComplianceInfo.MaterialIsSold AS MaterialIsSold,
ChemicalComplianceInfo.MaterialIsTransported AS MaterialIsTransported,
ChemicalComplianceInfo.MaterialIsSourced AS MaterialIsSourced,
ChemicalComplianceInfo.MaterialIsProduced AS MaterialIsProduced,
cast( '' as abap.char( 255 ) ) AS ChmlCmplncTypeImageURL
FROM I_ChmlCmplncInfo AS ChemicalComplianceInfo
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_ProductText AS _ProductText ON Product = _ProductText.Product -- association [0..*]
LEFT OUTER JOIN I_ProductGroupText_2 AS _ProductGroupText ON productgroup = _ProductGroupText.ProductGroup -- association [0..*]
LEFT OUTER JOIN C_DngrsGdsAnlytlCmpstnComp AS _ChmlCompOfReldAnlytlCmpstn ON AnalyticCmpstnReleasedUUID = _ChmlCompOfReldAnlytlCmpstn.ChmlCompositionUUID -- association [0..*]
LEFT OUTER JOIN C_UnpackagedDangerousGoodClfn AS _UnpackagedDangerousGoodClfn ON ChmlCmplncInfoUUID = _UnpackagedDangerousGoodClfn.ChmlCmplncInfoUUID -- association [0..*]
LEFT OUTER JOIN C_UpaDaGdsClfnAssgdPckgdClfn AS _RelatedPackagedProduct ON ChmlCmplncInfoUUID = _RelatedPackagedProduct.ChmlCmplncInfoUUID -- association [0..*]
LEFT OUTER JOIN P_AssociatedAnlytlReldCmpstn AS _AnlytlCmpstn ON _AnlytlCmpstn.ChmlCmplncInfoUUID = ChmlCmplncInfoUUID -- association [0..1]
LEFT OUTER JOIN P_AssociatedMatlReldCmpstn AS _MatlBsdCmpstn ON _MatlBsdCmpstn.ChmlCmplncInfoUUID = ChmlCmplncInfoUUID -- association [0..1]
LEFT OUTER JOIN P_ChmlCmplncInfoAssgdPCPhys AS _PCPhysProperty ON _PCPhysProperty.ChmlCmplncInfoUUID = ChmlCmplncInfoUUID AND _PCPhysProperty.PCPrptyRootType = 'EHFNDD_PHYSCHEM' AND ( _PCPhysProperty.PCPrptyInProcProcgSts = 'IP' OR _PCPhysProperty.PCPrptyReldProcgSts = 'RE' ) -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA