I_MaterialValuation

DDL: I_MATERIALVALUATION SQL: IMATVALUATION Type: view BASIC

Material Valuation

I_MaterialValuation is a Basic CDS View (Dimension) that provides data about "Material Valuation" in SAP S/4HANA. It reads from 4 data sources (ebew, mbew, obew, qbew) and exposes 42 fields with key field CostEstimate.

Data Sources (4)

SourceAliasJoin Type
ebew ebew union_all
mbew mbew from
obew obew union_all
qbew qbew union_all

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IMATVALUATION view
EndUserText.label Material Valuation view
VDM.viewType #BASIC view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey CostEstimate view
AbapCatalog.preserveKey true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.allowExtensions true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate kaln1
MaterialValuationClass bklas
InventoryValuationCategory bwtty
Material matnr
InventoryValuationType bwtar
ValuationArea mbew bwkey
WBSElement
InventorySpecialStockType
SDDocument
SDDocumentItem
Supplier
MaterialValuationClass bklas
InventoryValuationCategory bwtty
Material matnr
InventoryValuationType bwtar
ValuationArea ebew bwkey
WBSElement
InventorySpecialStockType sobkz
SDDocument vbeln
SDDocumentItem posnr
Supplier
MaterialValuationClass bklas
InventoryValuationCategory bwtty
Material matnr
InventoryValuationType bwtar
ValuationArea obew bwkey
WBSElement
InventorySpecialStockType sobkz
SDDocument
SDDocumentItem
Supplier lifnr
MaterialValuationClass bklas
InventoryValuationCategory bwtty
Material matnr
InventoryValuationType bwtar
ValuationArea qbew bwkey
WBSElement pspnr
InventorySpecialStockType sobkz
SDDocument
SDDocumentItem
Supplier
PriceDeterminationControl mlast
@AbapCatalog.sqlViewName: 'IMATVALUATION'
@EndUserText.label: 'Material Valuation'
@VDM.viewType: #BASIC
@Analytics: { dataCategory: #DIMENSION, dataExtraction.enabled: true }
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.representativeKey: 'CostEstimate'
 @AbapCatalog.preserveKey:true
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@Metadata.allowExtensions:true
@ClientHandling.algorithm: #SESSION_VARIABLE

define view I_MaterialValuation as 

select from mbew 
{
   key kaln1 as CostEstimate,
   bklas as MaterialValuationClass,
   bwtty as InventoryValuationCategory,
   matnr as Material,
   bwtar as InventoryValuationType,
   mbew.bwkey as ValuationArea,
   cast('00000000' as ps_psp_pnr) as WBSElement,
   cast('' as sobkz) as InventorySpecialStockType,
   cast('' as vbeln) as SDDocument,
   cast('000000' as posnr) as SDDocumentItem,
   cast('' as lifnr) as Supplier,
   mlast as PriceDeterminationControl
}

union all 

select from ebew 
{
   key kaln1 as CostEstimate,
   bklas as MaterialValuationClass,
   bwtty as InventoryValuationCategory,
   matnr as Material,
   bwtar as InventoryValuationType,
   ebew.bwkey as ValuationArea,
   cast('00000000' as ps_psp_pnr) as WBSElement,
   sobkz as InventorySpecialStockType,
   vbeln as SDDocument,
   posnr as SDDocumentItem,
   cast('' as lifnr) as Supplier,
   mlast as PriceDeterminationControl
}

union all

select from obew 
{
   key kaln1 as CostEstimate,
   bklas as MaterialValuationClass,
   bwtty as InventoryValuationCategory,
   matnr as Material,
   bwtar as InventoryValuationType,
   obew.bwkey as ValuationArea,
   cast('00000000' as ps_psp_pnr) as WBSElement,
   sobkz as InventorySpecialStockType,
   cast('' as vbeln) as SDDocument,
   cast('000000' as posnr) as SDDocumentItem,
   lifnr as Supplier,
   mlast as PriceDeterminationControl
}

union all

select from qbew 
{
   key kaln1 as CostEstimate,
   bklas as MaterialValuationClass,
   bwtty as InventoryValuationCategory,
   matnr as Material,
   bwtar as InventoryValuationType,
   qbew.bwkey as ValuationArea,
   pspnr as WBSElement,
   sobkz as InventorySpecialStockType,
   cast('' as vbeln) as SDDocument,
   cast('000000' as posnr) as SDDocumentItem,
   cast('' as lifnr) as Supplier,
   mlast as PriceDeterminationControl
}  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"EBEW",
"MBEW",
"OBEW",
"QBEW"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/