P_DGR_Gen_Material_Commodity

DDL: P_DGR_GEN_MATERIAL_COMMODITY SQL: PDGRMATCOMMDT Type: view COMPOSITE

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)

SourceAliasJoin Type
I_ACMMaterialMstrData Mara inner
P_DGR_Gen_PlantCCode_Material Material from

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/