P_SlowMoMatPrMoStockSum

DDL: P_SLOWMOMATPRMOSTOCKSUM Type: view_entity COMPOSITE Package: ODATA_MM_IM_SLONOMOMAT

Stock Aggregate

P_SlowMoMatPrMoStockSum is a Composite CDS View that provides data about "Stock Aggregate" in SAP S/4HANA. It reads from 2 data sources (P_MatlStkPerdsInMonth, I_MaterialDocumentRecord) and exposes 5 fields with key fields StartDate, Material, Plant, MaterialBaseUnit. Part of development package ODATA_MM_IM_SLONOMOMAT.

Data Sources (2)

SourceAliasJoin Type
P_MatlStkPerdsInMonth per from
I_MaterialDocumentRecord rec inner

Annotations (6)

NameValueLevelField
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY StartDate P_MatlStkPerdsInMonth StartDate
KEY Material I_MaterialDocumentRecord StockIdentifyingMaterial
KEY Plant I_MaterialDocumentRecord Plant
KEY MaterialBaseUnit I_MaterialDocumentRecord MaterialBaseUnit
MatlStkChangeQtyInBaseUnit
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass:#TRANSACTIONAL
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck:#NOT_REQUIRED

define view entity P_SlowMoMatPrMoStockSum as select from  P_MatlStkPerdsInMonth    as per
                                        inner join  I_MaterialDocumentRecord as rec
                                                on  rec.PostingDate <= per.EndDate  

{

  key per.StartDate,  
  key rec.StockIdentifyingMaterial  as Material,
  key rec.Plant,
  key rec.MaterialBaseUnit,  
  
  cast(sum(rec.MatlStkChangeQtyInBaseUnit) as nsdm_stock_quantity_flt) as MatlStkChangeQtyInBaseUnit
  
}

group by

  per.StartDate,
  rec.StockIdentifyingMaterial,
  rec.Plant,
  rec.MaterialBaseUnit