SAP VBAP
VBAP is a key SAP table in SD (Sales). It stores sales document items, the line-level data (materials, quantities, values) of sales orders and related documents.
VBAP holds sales document items in SAP, keyed by sales document VBELN and item POSNR: one row per order line, with the material, order quantity and net value. The header sits in VBAK, schedule lines in VBEP and the document flow in VBFA. Join it to VBAK on VBELN for a full order.
- VBELN, sales document (key).
- POSNR, item number (key).
- Watch out: VBAP holds the requested quantity, and VBEP holds the quantity the system actually confirmed.
What it stores
It stores sales document items, the line-level data (materials, quantities, values) of sales orders and related documents.
Key fields
- VBELN, sales document (key).
- POSNR, item number (key).
- MATNR, material.
- KWMENG, order quantity.
- NETWR, net value.
Keys and relationships
The key is VBELN + POSNR, one row per order line. It links to the header (VBAK) via VBELN and to schedule lines (VBEP) and document flow (VBFA).
Working with it
VBAP holds sales line detail, materials, quantities, values, and is central to sales reporting. Join with VBAK on VBELN for full orders. View its structure in SE11 and its data (with authorization) in SE16N.
Common pitfalls
- Reading tables directly instead of using CDS/reports where appropriate.
- Ignoring header/item relationships.
- Performance: querying large tables without indexed selection.