P_SlowMovingMaterialGroup
P_SlowMovingMaterialGroup is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 20 fields with key fields Material, Plant, StorageLocation, StockIdentifyingBatch, SpecialStockIdfgSupplier.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialDocumentRecord | I_MaterialDocumentRecord | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | abap.dats | |
| P_InventoryConsumptionGroup | inventory_consumption_group |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PSLOWNOMOMATGP | view | |
| AbapCatalog.compiler.compareFilter | 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 (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | StockIdentifyingMaterial | ||
| KEY | Plant | Plant | ||
| KEY | StorageLocation | StockIdfgStorageLocation | ||
| KEY | StockIdentifyingBatch | StockIdentifyingBatch | ||
| KEY | SpecialStockIdfgSupplier | SpecialStockIdfgSupplier | ||
| KEY | SpecialStockIdfgSalesOrder | SpecialStockIdfgSalesOrder | ||
| KEY | SpecialStockIdfgSalesOrderItem | SpecialStockIdfgSalesOrderItem | ||
| KEY | SpecialStockIdfgWBSElement | SpecialStockIdfgWBSElement | ||
| KEY | SpecialStockIdfgCustomer | SpecialStockIdfgCustomer | ||
| KEY | SpecialStockIdfgStockOwner | SpecialStockIdfgStockOwner | ||
| KEY | InventorySpecialStockType | InventorySpecialStockType | ||
| KEY | InventoryStockType | InventoryStockType | ||
| KEY | MaterialBaseUnit | MaterialBaseUnit | ||
| KEY | Currency | CompanyCodeCurrency | ||
| MatlStkChangeQtyInBaseUnit | MatlStkChangeQtyInBaseUnit | |||
| MatlCnsmpnQtyInMatlBaseUnit | MatlCnsmpnQtyInMatlBaseUnit | |||
| GoodsMovementType | GoodsMovementType | |||
| PostingDate | PostingDate | |||
| DaysBeforeKeydate | ||||
| InventoryConsumptionGroup |
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'PSLOWNOMOMATGP'
@AbapCatalog.compiler.compareFilter: 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_SlowMovingMaterialGroup
with parameters
P_KeyDate : abap.dats,
P_InventoryConsumptionGroup : inventory_consumption_group
as select from I_MaterialDocumentRecord
{
key StockIdentifyingMaterial as Material,
key Plant,
key StockIdfgStorageLocation as StorageLocation,
key StockIdentifyingBatch,
key SpecialStockIdfgSupplier,
key SpecialStockIdfgSalesOrder,
key SpecialStockIdfgSalesOrderItem,
key SpecialStockIdfgWBSElement,
key SpecialStockIdfgCustomer,
key SpecialStockIdfgStockOwner,
key InventorySpecialStockType,
key InventoryStockType,
key MaterialBaseUnit,
key CompanyCodeCurrency as Currency,
MatlStkChangeQtyInBaseUnit,
MatlCnsmpnQtyInMatlBaseUnit,
GoodsMovementType,
PostingDate,
dats_days_between(PostingDate,$parameters.P_KeyDate) as DaysBeforeKeydate,
$parameters.P_InventoryConsumptionGroup as InventoryConsumptionGroup
}
where PostingDate <= $parameters.P_KeyDate and //2940195
MaterialDocumentRecordType = 'MDOC' //2940195
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MATERIALDOCUMENTRECORD"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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