P_MATERIALSTOCK_AGGR
P_MATERIALSTOCK_AGGR is a CDS View in S/4HANA. It contains 15 fields. 2 CDS views read from this table.
CDS Views using this table (2)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| P_MaterialStockByKeyDate1 | view | from | COMPOSITE | |
| P_MaterialStockTimeSeries1 | view | left_outer | COMPOSITE |
Fields (15)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | Batch | Batch | 1 |
| KEY | CompanyCode | CompanyCode | 1 |
| KEY | CostEstimate | CostEstimate | 1 |
| KEY | Currency | Currency | 1 |
| KEY | Customer | Customer | 1 |
| KEY | InventorySpecialStockType | InventorySpecialStockType | 1 |
| KEY | InventoryStockType | InventoryStockType | 1 |
| KEY | Material | Material | 1 |
| KEY | MaterialBaseUnit | MaterialBaseUnit | 1 |
| KEY | Plant | Plant | 1 |
| KEY | SDDocument | SDDocument | 1 |
| KEY | SDDocumentItem | SDDocumentItem | 1 |
| KEY | StorageLocation | StorageLocation | 1 |
| KEY | Supplier | Supplier | 1 |
| KEY | WBSElementInternalID | WBSElementInternalID | 1 |
Derived SQL schema, reconstructed from the indexed DDIC field metadata (field names, types, lengths and key flags) — a functional representation, not the verbatim SAP source.
-- Derived schema, generated from indexed DDIC field metadata (not the verbatim SAP source).
CREATE TABLE P_MATERIALSTOCK_AGGR (
BATCH,
COMPANYCODE,
COSTESTIMATE,
CURRENCY,
CUSTOMER,
INVENTORYSPECIALSTOCKTYPE,
INVENTORYSTOCKTYPE,
MATERIAL,
MATERIALBASEUNIT,
PLANT,
SDDOCUMENT,
SDDOCUMENTITEM,
STORAGELOCATION,
SUPPLIER,
WBSELEMENTINTERNALID,
PRIMARY KEY (BATCH, COMPANYCODE, COSTESTIMATE, CURRENCY, CUSTOMER, INVENTORYSPECIALSTOCKTYPE, INVENTORYSTOCKTYPE, MATERIAL, MATERIALBASEUNIT, PLANT, SDDOCUMENT, SDDOCUMENTITEM, STORAGELOCATION, SUPPLIER, WBSELEMENTINTERNALID)
);
Learn More
- Understanding Data Lineage in SAP S/4HANA
- SAP Tables vs CDS Views — Key Differences
- Understanding the SAP S/4HANA Data Model
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA