P_SlowMoMatPrMoConsSum
Consumption Aggregate
P_SlowMoMatPrMoConsSum is a Composite CDS View that provides data about "Consumption Aggregate" in SAP S/4HANA. It reads from 2 data sources (P_MatlStkPerdsInMonth, P_SlowMoMatPredConsQty) and exposes 6 fields with key fields InventoryConsumptionGroup, StartDate, Material, Plant, MaterialBaseUnit. Part of development package ODATA_MM_IM_SLONOMOMAT.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_MatlStkPerdsInMonth | per | from |
| P_SlowMoMatPredConsQty | rec | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InventoryConsumptionGroup | P_SlowMoMatPredConsQty | InventoryConsumptionGroup | |
| KEY | StartDate | P_MatlStkPerdsInMonth | StartDate | |
| KEY | Material | P_SlowMoMatPredConsQty | Material | |
| KEY | Plant | P_SlowMoMatPredConsQty | Plant | |
| KEY | MaterialBaseUnit | P_SlowMoMatPredConsQty | MaterialBaseUnit | |
| MatlCnsmpnQtyInMatlBaseUnit |
@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_SlowMoMatPrMoConsSum as select from P_MatlStkPerdsInMonth as per
inner join P_SlowMoMatPredConsQty as rec
on rec.PostingDate >= per.StartDate
and rec.PostingDate <= per.EndDate
{
key rec.InventoryConsumptionGroup,
key per.StartDate,
key rec.Material,
key rec.Plant,
key rec.MaterialBaseUnit,
cast(sum(rec.MatlCnsmpnQtyInMatlBaseUnit) as nsdm_consumption_quantity_flt) as MatlCnsmpnQtyInMatlBaseUnit
}
group by
per.StartDate,
rec.InventoryConsumptionGroup,
rec.Material,
rec.Plant,
rec.MaterialBaseUnit
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