P_SlowMoMatPrMoStockSum
P_SlowMoMatPrMoStockSum is a Composite CDS View 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.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_MatlStkPerdsInMonth | per | from |
| I_MaterialDocumentRecord | rec | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSLOWMOMATSTOAGR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StartDate | StartDate | ||
| KEY | Material | StockIdentifyingMaterial | ||
| KEY | Plant | Plant | ||
| KEY | MaterialBaseUnit | MaterialBaseUnit | ||
| MatlStkChangeQtyInBaseUnit |
@AbapCatalog.sqlViewName: 'PSLOWMOMATSTOAGR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass:#TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck:#NOT_REQUIRED
define view P_SlowMoMatPrMoStockSum as select from P_MatlStkPerdsInMonth as per
inner join I_MaterialDocumentRecord as rec
on rec.mandt = per.mandt
and rec.PostingDate <= per.EndDate
{
key StartDate,
key StockIdentifyingMaterial as Material,
key Plant,
key MaterialBaseUnit,
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
cast(sum(MatlStkChangeQtyInBaseUnit) as nsdm_stock_quantity_flt) as MatlStkChangeQtyInBaseUnit
}
group by
per.StartDate,
rec.StockIdentifyingMaterial,
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