Fields (19)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | Batch | Batch | 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 | SpecialStockIdfgStockOwner | SpecialStockIdfgStockOwner | 1 |
| KEY | StorageLocation | StorageLocation | 1 |
| KEY | Supplier | Supplier | 1 |
| KEY | WBSElementInternalID | WBSElementInternalID | 1 |
| CompanyCode | CompanyCode | 1 | |
| FiscalYearVariant | FiscalYearVariant | 1 | |
| MatlCnsmpnQtyInMatlBaseUnit | MatlCnsmpnQtyInMatlBaseUnit | 1 | |
| MatlStkDecrQtyInMatlBaseUnit | MatlStkDecrQtyInMatlBaseUnit | 1 | |
| MatlStkIncrQtyInMatlBaseUnit | MatlStkIncrQtyInMatlBaseUnit | 1 | |
| MatlWrhsStkQtyInMatlBaseUnit | MatlWrhsStkQtyInMatlBaseUnit | 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 STOCK (
BATCH,
CUSTOMER,
INVENTORYSPECIALSTOCKTYPE,
INVENTORYSTOCKTYPE,
MATERIAL,
MATERIALBASEUNIT,
PLANT,
SDDOCUMENT,
SDDOCUMENTITEM,
SPECIALSTOCKIDFGSTOCKOWNER,
STORAGELOCATION,
SUPPLIER,
WBSELEMENTINTERNALID,
COMPANYCODE,
FISCALYEARVARIANT,
MATLCNSMPNQTYINMATLBASEUNIT,
MATLSTKDECRQTYINMATLBASEUNIT,
MATLSTKINCRQTYINMATLBASEUNIT,
MATLWRHSSTKQTYINMATLBASEUNIT,
PRIMARY KEY (BATCH, CUSTOMER, INVENTORYSPECIALSTOCKTYPE, INVENTORYSTOCKTYPE, MATERIAL, MATERIALBASEUNIT, PLANT, SDDOCUMENT, SDDOCUMENTITEM, SPECIALSTOCKIDFGSTOCKOWNER, STORAGELOCATION, SUPPLIER, WBSELEMENTINTERNALID)
);
Learn More
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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