P_DGR_Gen_Material_Commodity
P_DGR_Gen_Material_Commodity is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_ACMMaterialMstrData, P_DGR_Gen_PlantCCode_Material) and exposes 5 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ACMMaterialMstrData | Mara | inner |
| P_DGR_Gen_PlantCCode_Material | Material | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDGRMATCOMMDT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | CompanyCode | |||
| Plant | Plant | |||
| Material | P_DGR_Gen_PlantCCode_Material | Material | ||
| MaterialBaseUnit | I_ACMMaterialMstrData | MaterialBaseUnit | ||
| Commodity | I_ACMMaterialMstrData | Commodity |
@AbapCatalog.sqlViewName: 'PDGRMATCOMMDT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #D -- View will be consumed for Analytical Reporting
@ObjectModel.usageType.sizeCategory: #XXL -- No. of Records > 100,000
//@EndUserText.label: 'Get Commodity for Material'
define view P_DGR_Gen_Material_Commodity
as select from P_DGR_Gen_PlantCCode_Material as Material
inner join I_ACMMaterialMstrData as Mara on Material.Material = Mara.Material
and Mara.Commodity is not initial
{
CompanyCode,
Plant,
Material.Material as Material,
Mara.MaterialBaseUnit as MaterialBaseUnit,
Mara.Commodity as Commodity
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACMMATERIALMSTRDATA",
"P_DGR_GEN_PLANTCCODE_MATERIAL"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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