VBAP
transaction S/4HANA status: ActiveSales Document: Item Data
What the badges mean
- S/4HANA status: Active
- Active and unchanged in S/4HANA.
- S/4HANA status: Deprecated
- Still readable today, but no longer SAP's strategic path — plan around it.
- S/4HANA status: Replaced
- Replaced by a new persistence in S/4HANA; the classic name may still answer reads (see read mechanism).
- S/4HANA status: Migrating to IBP
- Planning scope is moving from APO toward IBP.
- S/4HANA status: Active (StRM) · Replaced (EWM)
- Path-dependent: active with SAP Stock Room Management, replaced where EWM is the warehouse path.
- S/4HANA status: Replaced · Compat View
- Compatibility view: the classic table name is redirected to a view over the new persistence — see how the physical model moved.
- S/4HANA status: Active · Proxy View
- Proxy view: reads route through NSDM proxy/CDS views — see how the physical model moved.
- master
- Data class: what the table holds — master data, transaction documents, org structure, config, or texts (one row per language — see the quirks guide).
- Linked type codes
CLNT — the client key; filter it explicitly and carry it through every join.
NUMC — fixed-width numeric text; keep it a string and keep the leading zeros.
DATS, TIMS — character date (YYYYMMDD) and time (HHMMSS), zero-filled when initial.
CURR, CUKY, QUAN, UNIT — amounts and quantities, meaningful only beside the currency key or unit that qualifies them.
LANG — a language key in a text table — one row per language.
Fields
52 fields · 3 key
The join key is all 3 key fields together — matching on any single one fans out. See composite keys in the quirks guide.
52 fields.
| Key | Field | Description | Type | Length | References |
|---|---|---|---|---|---|
| Primary key | MANDT | Client | CLNT | 3 | T000 |
| Primary key | VBELN | Sales Document | CHAR | 10 | VBAK |
| Primary key | POSNR | Sales Document Item | NUMC | 6 | |
| MATNR | Material Number | CHAR | 18 / 40 | MARA | |
| MATWA | Material Entered | CHAR | 18 | ||
| PMATN | Pricing Reference Material | CHAR | 18 | ||
| CHARG | Batch Number | CHAR | 10 | ||
| MATKL | Material Group | CHAR | 9 | T023 | |
| ARKTX | Short Text for Sales Order Item | CHAR | 40 | ||
| PSTYV | Sales Document Item Category | CHAR | 4 | ||
| POSAR | Item Type | CHAR | 1 | ||
| LFREL | Item Is Relevant for Delivery | CHAR | 1 | ||
| FKREL | Relevant for Billing | CHAR | 1 | ||
| UEPOS | Higher-Level Item in BOM Structures | NUMC | 6 | ||
| GRPOS | Alternative for Item | NUMC | 6 | ||
| ABGRU | Reason for Rejection of Quotations and Sales Orders | CHAR | 2 | ||
| NETWR | Net Value of the Order Item in Document Currency | CURR | 15,2 | ||
| WAERK | SD Document Currency | CUKY | 5 | TCURC | |
| NETPR | Net Price | CURR | 11,2 | ||
| KPEIN | Condition Price Unit | DEC | 5 | ||
| KMEIN | Condition Unit | UNIT | 3 | T006 | |
| KWMENG | Cumulative Order Quantity in Sales Units | QUAN | 15,3 | ||
| VRKME | Sales Unit | UNIT | 3 | T006 | |
| UMVKZ | Numerator (factor) for Conversion of Sales Qty into SKU | DEC | 5 | ||
| UMVKN | Denominator (divisor) for Conversion of Sales Qty into SKU | DEC | 5 | ||
| MEINS | Base Unit of Measure | UNIT | 3 | T006 | |
| NTGEW | Net Weight of the Item | QUAN | 15,3 | ||
| BRGEW | Gross Weight of the Item | QUAN | 15,3 | ||
| GEWEI | Weight Unit | UNIT | 3 | T006 | |
| VOLUM | Volume of the Item | QUAN | 15,3 | ||
| VOLEH | Volume Unit | UNIT | 3 | T006 | |
| SPART | Division | CHAR | 2 | TSPA | |
| WERKS | Plant (Own or External) | CHAR | 4 | T001W | |
| LGORT | Storage Location | CHAR | 4 | T001L | |
| VSTEL | Shipping Point/Receiving Point | CHAR | 4 | ||
| ROUTE | Route | CHAR | 6 | ||
| STKEY | Bill of Material Origin | CHAR | 1 | ||
| STDAT | BOM Date | DATS | 8 | ||
| STLNR | Bill of Material | CHAR | 8 | ||
| OBJNR | Object Number at Item Level | CHAR | 22 | ||
| PRCTR | Profit Center | CHAR | 10 | CEPC | |
| MVGR1 | Material Group 1 | CHAR | 3 | ||
| MVGR2 | Material Group 2 | CHAR | 3 | ||
| MVGR3 | Material Group 3 | CHAR | 3 | ||
| MVGR4 | Material Group 4 | CHAR | 3 | ||
| MVGR5 | Material Group 5 | CHAR | 3 | ||
| PRODH | Product Hierarchy | CHAR | 18 | ||
| SHKZG | Returns Item | CHAR | 1 | ||
| SKTOF | Cash Discount Indicator | CHAR | 1 | ||
| KNUMH | Number of Condition Record from Batch Determination | CHAR | 10 | ||
| CMPRE | Item Credit Price | CURR | 11,2 | ||
| KOUPD | Condition Update | CHAR | 1 |
Lengths shown as ECC / S/4HANA where the extended material number applies.
Linked type codes in the Type column jump to the matching section of the SAP data quirks guide.
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading VBAP on Databricks. Set your Unity Catalog location and filter values below — they’re substituted into the SQL and the copy button.
3 parameters not filled: <catalog>, <schema>, <MANDT>
-- ============================================================
-- Table : VBAP Sales Document: Item Data
-- Purpose: Column-selected read of VBAP — auto-generated from field metadata
-- Grain : One row per VBELN + POSNR
-- Notes : Auto-generated skeleton. For multi-table transaction query patterns, see the linked t-codes on this page. Set catalog/schema to your Unity Catalog location; fill remaining placeholders (<...>) for your tenant.
-- ============================================================
SELECT
l.MANDT AS "Client",
l.VBELN AS "Sales Document",
l.POSNR AS "Sales Document Item",
l.MATNR AS "Material Number",
l.MATWA AS "Material Entered",
l.PMATN AS "Pricing Reference Material",
l.CHARG AS "Batch Number",
l.MATKL AS "Material Group",
l.ARKTX AS "Short Text for Sales Order Item",
l.PSTYV AS "Sales Document Item Category",
l.POSAR AS "Item Type",
l.LFREL AS "Item Is Relevant for Delivery",
l.FKREL AS "Relevant for Billing",
l.UEPOS AS "Higher-Level Item in BOM Structures",
l.GRPOS AS "Alternative for Item",
l.ABGRU AS "Reason for Rejection of Quotations and Sales Orders",
l.NETWR AS "Net Value of the Order Item in Document Currency",
l.WAERK AS "SD Document Currency",
l.NETPR AS "Net Price",
l.KPEIN AS "Condition Price Unit",
l.KMEIN AS "Condition Unit",
l.KWMENG AS "Cumulative Order Quantity in Sales Units",
l.VRKME AS "Sales Unit",
l.UMVKZ AS "Numerator (factor) for Conversion of Sales Qty into SKU",
l.UMVKN AS "Denominator (divisor) for Conversion of Sales Qty into SKU",
l.MEINS AS "Base Unit of Measure",
l.NTGEW AS "Net Weight of the Item",
l.BRGEW AS "Gross Weight of the Item",
l.GEWEI AS "Weight Unit",
l.VOLUM AS "Volume of the Item",
l.VOLEH AS "Volume Unit",
l.SPART AS "Division",
l.WERKS AS "Plant (Own or External)",
l.LGORT AS "Storage Location",
l.VSTEL AS "Shipping Point/Receiving Point",
l.ROUTE AS "Route",
l.STKEY AS "Bill of Material Origin",
l.STDAT AS "BOM Date",
l.STLNR AS "Bill of Material",
l.OBJNR AS "Object Number at Item Level"
-- … plus 12 more columns — full list in the Fields section above
FROM <catalog>.<schema>.vbap l
WHERE
l.MANDT = '<MANDT>'
ORDER BY l.VBELN;Verified August 2026
Released CDS views over this table
Released SAP standard VDM views that read over VBAP. Prefer these over classic-table reads on S/4HANA where available.
Relationships
Diagram of 1-hop neighbors — join details below.
Transaction Codes That Use This Table
R read · W write · R/W read + write