I_ChmlCmplncAnlyts2
Dimension Product Assignment
I_ChmlCmplncAnlyts2 is a Composite CDS View that provides data about "Dimension Product Assignment" in SAP S/4HANA. It reads from 3 data sources (I_ChmlComposition, I_ChmlCmplncInfo, Composition) and exposes 7 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_ChmlComposition | _ChemicalComposition | inner |
| I_ChmlCmplncInfo | ChmlCmplncInfo | from |
| Composition | Composition | inner |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICCMPLCNINFOA2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.representativeKey | Material | view | |
| EndUserText.label | Dimension Product Assignment | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| VDM.viewType | #COMPOSITE | view | |
| Metadata.allowExtensions | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ChmlCompositionType | ||||
| SubstanceUUID | ||||
| MatlAssgmtIsPrimary | ||||
| Country | ||||
| ChmlCmplncProdnAllwd | ||||
| MaterialIsDisposed | MaterialIsDisposed | |||
| MaterialIsEmissionRelevant | MaterialIsEmissionRelevant |
@AbapCatalog.sqlViewName: 'ICCMPLCNINFOA2'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.personalData.blocking: #REQUIRED
@ObjectModel.representativeKey: 'Material'
@EndUserText.label: 'Dimension Product Assignment'
@AccessControl.authorizationCheck: #CHECK
@ClientHandling:
{
type: #INHERITED,
algorithm: #SESSION_VARIABLE
}
@ObjectModel.usageType:{
dataClass: #MIXED,
sizeCategory: #XL,
serviceQuality: #D
}
@VDM.viewType: #COMPOSITE
@Metadata.allowExtensions: true
define view I_ChmlCmplncAnlyts2
as select from I_ChmlCmplncInfo as ChmlCmplncInfo
-- inner join Composition
inner join I_ChmlComposition as _ChemicalComposition on ChmlCmplncInfo.ChmlCmplncInfoUUID = _ChemicalComposition.ChmlCmplncInfoUUID
and _ChemicalComposition.ChmlCompositionType <> 'MATLBSD1'
and _ChemicalComposition.ChmlCompositionType <> 'MATLBSD2'
and _ChemicalComposition.ChmlCompositionStatus = 'RE'
{
-- UUID of Unpackaged Product
key cast( ChmlCmplncInfo.ChmlCmplncInfoUUID as ehfnd_cci_uuid preserving type ) as ChmlCmplncInfoUUID,
-- Composition Type
key _ChemicalComposition.ChmlCompositionType,
-- UUID of Company Substance from Composition of Unpackaged Product
key _ChemicalComposition._ChmlComponent.SubstanceUUID,
-- Material assigned to Unpackaged Product
key cast( _MaterialAssignment.Material as ehfnd_cci_product preserving type ) as Material,
-- Indicator that Material assigned to unpackaged product is primary
key _MaterialAssignment.MatlAssgmtIsPrimary,
--Market Coverage Country
key _MarketCoverage.Country,
--Material Group
cast(_MaterialAssignment._Product.ProductGroup as ehfnd_cci_material_group_l preserving type ) as MaterialGroup,
--Production Status
_MarketCoverage.ChmlCmplncProdnAllwd,
-- Responsible Unit (used for DCL)
ProdStewardshipRespUnit as ProdStewardshipRespUnit,
-- Indicator that Material is Sold (used for DCL)
MaterialIsSold,
-- Indicator that Material is Transported (used for DCL)
MaterialIsTransported,
-- Indicator that Material is Produced (used for DCL)
MaterialIsProduced,
-- Indicator that Material is Sourced (used for DCL)
MaterialIsSourced,
MaterialIsDisposed,
MaterialIsEmissionRelevant
}
where
ChmlCmplncInfoType = 'BU'
and MaterialIsProduced = 'X'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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