P_StkValueByType1
'Stock value by type level 1
P_StkValueByType1 is a Composite CDS View that provides data about "'Stock value by type level 1" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 9 fields with key fields Material, Plant, StorageLocation, InventoryStockType, InventorySpecialStockType. Part of development package MM_IM_VDM_STOCK.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialDocumentRecord | I_MaterialDocumentRecord | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | StockIdentifyingMaterial | ||
| KEY | Plant | Plant | ||
| KEY | StorageLocation | StockIdfgStorageLocation | ||
| KEY | InventoryStockType | InventoryStockType | ||
| KEY | InventorySpecialStockType | InventorySpecialStockType | ||
| KEY | CostEstimate | CostEstimate | ||
| KEY | MaterialBaseUnit | MaterialBaseUnit | ||
| KEY | CompanyCode | CompanyCode | ||
| MatlWrhsStkQtyInMatlBaseUnit |
@ObjectModel: {
usageType: {
sizeCategory: #XXL,
serviceQuality: #D,
dataClass:#TRANSACTIONAL
}
}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM: {
private: true,
viewType: #COMPOSITE
}
define view entity P_StkValueByType1 as
select from I_MaterialDocumentRecord
{
key StockIdentifyingMaterial as Material,
key Plant,
key StockIdfgStorageLocation as StorageLocation,
key InventoryStockType,
key InventorySpecialStockType,
key CostEstimate,
key MaterialBaseUnit,
key CompanyCode,
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
sum(MatlStkChangeQtyInBaseUnit) as MatlWrhsStkQtyInMatlBaseUnit
}
group by StockIdentifyingMaterial, Plant, StockIdfgStorageLocation, InventoryStockType, InventorySpecialStockType, CostEstimate, MaterialBaseUnit, CompanyCode
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