I_UnpackagedDangerousGoodReld
Composite View for UPs released CRR
I_UnpackagedDangerousGoodReld is a Composite CDS View that provides data about "Composite View for UPs released CRR" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncInfo) and exposes 8 fields with key field ChmlCmplncInfoUUID. It has 1 association to related views. Part of development package EHDGM_CNS_UNPACKAGED_PRODUCT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ChmlCmplncInfo | ChemicalComplianceInfo | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_ReleasedCRRForUnpckgdDGCount | _RelCRRCount | $projection.ChmlCmplncInfoUUID = _RelCRRCount.ChmlCmplncInfoUUID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IUPDGRELD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Composite View for UPs released CRR | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChmlCmplncInfoUUID | I_ChmlCmplncInfo | ChmlCmplncInfoUUID | |
| Product | ||||
| ProductName | ProductName | |||
| ChmlCmplncInternalName | ChmlCmplncInternalName | |||
| ChmlCmplncInfoCombinedName | ||||
| DangerousGoodBasicDescription | BasicDescForReldRegulation | DangerousGoodBasicDescription | ||
| DngrsGdsRespUnit | DngrsGdsRespUnit | |||
| _RespUnitForDangerousGoods | _RespUnitForDangerousGoods |
@AbapCatalog.sqlViewName: 'IUPDGRELD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Composite View for UPs released CRR'
@ClientHandling:
{
type: #INHERITED,
algorithm: #SESSION_VARIABLE
}
@VDM.viewType: #COMPOSITE
@ObjectModel:
{
usageType:
{
dataClass: #MIXED,
sizeCategory: #L,
serviceQuality: #C
}
}
define view I_UnpackagedDangerousGoodReld
--Select data from master table 'Chemical Compliance Info'
as select from I_ChmlCmplncInfo as ChemicalComplianceInfo
--Join data from primary material assignment
left outer to one join I_ChmlCmplncMatlAssgmt as PrimaryMaterial on ChemicalComplianceInfo.ChmlCmplncInfoUUID = PrimaryMaterial.ChmlCmplncInfoUUID
and MatlAssgmtIsPrimary = 'X'
--Join data from product name in current language to define Combined Name
left outer to one join I_ProductText as ProductText on PrimaryMaterial.Material = ProductText.Product
and Language = $session.system_language
left outer to one join P_BasicDescForReldRegulation as BasicDescForReldRegulation on ChemicalComplianceInfo.ChmlCmplncInfoUUID = BasicDescForReldRegulation.ChmlCmplncInfoUUID
association [0..1] to P_ReleasedCRRForUnpckgdDGCount as _RelCRRCount on $projection.ChmlCmplncInfoUUID = _RelCRRCount.ChmlCmplncInfoUUID
{
@ObjectModel.text.element: ['ChmlCmplncInfoCombinedName']
key ChemicalComplianceInfo.ChmlCmplncInfoUUID,
//@ObjectModel.text.element: ['ChmlCmplncInfoCombinedName']
cast (Material as productnumber preserving type ) as Product,
ProductName,
ChmlCmplncInternalName,
@Semantics.text: true
cast( coalesce( ProductText.ProductName, ChemicalComplianceInfo.ChmlCmplncInternalName ) as ehfnd_cci_product_name ) as ChmlCmplncInfoCombinedName,
BasicDescForReldRegulation.DangerousGoodBasicDescription,
// only needed for DCL
DngrsGdsRespUnit,
_RespUnitForDangerousGoods
}
where
ChmlCmplncInfoType = 'BU'
and MaterialIsTransported = 'X'
and _RelCRRCount.NmbrOfCmplRqRslts > 0;
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