I_Material

DDL: I_MATERIAL Type: view BASIC

Material

I_Material is a Basic CDS View (Dimension) that provides data about "Material" in SAP S/4HANA. It reads from 1 data source (mara) and exposes 17 fields. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
mara mara from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_MaterialText _Text $projection.Material = _Text.Material
[0..1] I_MaterialType _MaterialType $projection.MaterialType = _MaterialType.MaterialType
[0..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] I_UnitOfMeasure _BaseUnit $projection.MaterialBaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _WeightUnit $projection.MaterialWeightUnit = _WeightUnit.UnitOfMeasure
[0..*] I_MaterialPlant _MaterialPlant $projection.Material = _MaterialPlant.Material

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IMATERIAL view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
Analytics.dataCategory #DIMENSION view
VDM.viewType #BASIC view
EndUserText.label Material view
ObjectModel.representativeKey Material view
AccessControl.authorizationCheck #CHECK view
Search.searchable true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view

Fields (17)

KeyFieldSource TableSource FieldDescription
matnrasMaterial Material
_Text _Text
mtartasMaterialType Material Type
_MaterialType _MaterialType
matklasMaterialGroup Material Group
_MaterialGroup _MaterialGroup
meinsasMaterialBaseUnit Base Unit of Measure
_BaseUnit _BaseUnit
brgewasMaterialGrossWeight Gross Weight
ntgewasMaterialNetWeight Net Weight
geweiasMaterialWeightUnit Weight Unit
_WeightUnit _WeightUnit
MaterialManufacturerNumber mara mfrnr
MaterialManufacturerPartNumber mara mfrpn
AuthorizationGroup mara begru
IsBatchManagementRequired mara xchpf
_MaterialPlant _MaterialPlant
@AbapCatalog: {
  sqlViewName: 'IMATERIAL',
  preserveKey: true,
  compiler.compareFilter: true
 }
@Analytics: { dataCategory: #DIMENSION }
@VDM.viewType: #BASIC
@EndUserText.label: 'Material'
@ObjectModel.representativeKey: 'Material'
@AccessControl.authorizationCheck: #CHECK
@Search.searchable: true
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory : #L
@ObjectModel.usageType.dataClass: #MASTER
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions:true
@Metadata.ignorePropagatedAnnotations: true

define view I_Material
  as select from mara
  association [0..*] to I_MaterialText  as _Text          on $projection.Material = _Text.Material
  association [0..1] to I_MaterialType  as _MaterialType  on $projection.MaterialType = _MaterialType.MaterialType
  association [0..1] to I_MaterialGroup as _MaterialGroup on $projection.MaterialGroup = _MaterialGroup.MaterialGroup
  association [0..1] to I_UnitOfMeasure as _BaseUnit      on $projection.MaterialBaseUnit = _BaseUnit.UnitOfMeasure
  association [0..1] to I_UnitOfMeasure as _WeightUnit    on $projection.MaterialWeightUnit = _WeightUnit.UnitOfMeasure
  association [0..*] to I_MaterialPlant as _MaterialPlant on $projection.Material = _MaterialPlant.Material
{
      --@EndUserText.label: 'Material'
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #HIGH
      @ObjectModel.text.association: '_Text'
  key mara.matnr  as Material,
      _Text,

      --@EndUserText.label: 'Material Type'
      mara.mtart  as MaterialType,
      _MaterialType,

      --@EndUserText.label: 'Material Group'
      mara.matkl  as MaterialGroup,
      _MaterialGroup,

      --@EndUserText.label: 'Base Unit of Measure'
      @Semantics.unitOfMeasure: true
      @ObjectModel.foreignKey.association: '_BaseUnit'
      mara.meins  as MaterialBaseUnit,
      _BaseUnit,

      --@EndUserText.label: 'Gross Weight'
      @Semantics.quantity.unitOfMeasure: 'MaterialWeightUnit'
      mara.brgew  as MaterialGrossWeight,

      --@EndUserText.label: 'Net Weight'
      @Semantics.quantity.unitOfMeasure: 'MaterialWeightUnit'
      mara.ntgew  as MaterialNetWeight,

      --@EndUserText.label: 'Weight Unit'
      @Semantics.unitOfMeasure: true
      @ObjectModel.foreignKey.association: '_WeightUnit'
      mara.gewei  as MaterialWeightUnit,
      _WeightUnit,

      mara.mfrnr  as MaterialManufacturerNumber,
      mara.mfrpn  as MaterialManufacturerPartNumber,
      mara.begru  as AuthorizationGroup,
      mara.xchpf  as IsBatchManagementRequired,
      _MaterialPlant
}