WITH_ITEM table — Withholding Tax Item Table WITH_ITEM
WITH_ITEM stores one row per withholding tax type and code calculated against a specific FI document line item, populated only when extended withholding tax is active. It links to BSEG via company code, document number, fiscal year and line item, and holds the base amount, the calculated tax amount and the rate applied at posting.
This page covers the extended withholding tax item table WITH_ITEM: what a row represents, how it joins to BSEG and the vendor open item tables, and the diagnostic sequence for cases where withholding tax appears missing, doubled, or zero on a posted document. The pitfalls section focuses on distinguishing invoice-time from payment-time withholding and on why an empty result set does not always mean broken configuration.
Published 15 Sept 2026· 981 words
What it stores
A row in WITH_ITEM represents one withholding tax type and code combination calculated for one line item of an accounting document. It exists only under extended withholding tax, not classic withholding tax. A single vendor or customer line in BSEG can generate several WITH_ITEM rows if more than one withholding tax type applies to that business partner, which is common in country versions that separate a base tax and a surcharge or cess into distinct types. Rows are created at the point the relevant posting triggers calculation: some withholding tax types are configured to calculate at invoice entry, others only at payment, so the presence or timing of a row reflects that configuration choice rather than a system defect.
Key fields
- MANDT - client
- BUKRS - company code
- BELNR - accounting document number
- GJAHR - fiscal year
- BUZEI - line item number, links back to BSEG
- WITHT - withholding tax type
- WT_WITHCD - withholding tax code
- WT_QSSHB - withholding tax base amount
- WT_QBSHB - withholding tax amount calculated
- WT_QSATZ - withholding tax rate applied at posting
How it joins the data model
- WITH_ITEM-BUKRS = BSEG-BUKRS and WITH_ITEM-BELNR = BSEG-BELNR and WITH_ITEM-GJAHR = BSEG-GJAHR and WITH_ITEM-BUZEI = BSEG-BUZEI
- WITH_ITEM-BUKRS = BKPF-BUKRS and WITH_ITEM-BELNR = BKPF-BELNR and WITH_ITEM-GJAHR = BKPF-GJAHR
- WITH_ITEM-BUKRS = BSIK-BUKRS and WITH_ITEM-BELNR = BSIK-BELNR and WITH_ITEM-GJAHR = BSIK-GJAHR for open vendor items still subject to withholding
- WITH_ITEM-BUKRS = BSAK-BUKRS and WITH_ITEM-BELNR = BSAK-BELNR and WITH_ITEM-GJAHR = BSAK-GJAHR for cleared vendor items
- WITH_ITEM-BUKRS = T001-BUKRS for company code validation
How to read it safely
WITH_ITEM is client-dependent and can grow large in installations where extended withholding tax is active across many company codes and every AP invoice generates a row. Always restrict by BUKRS and either a document number or a GJAHR range before pulling data; never scan without at least company code as a filter. If the question is about a tax type rather than a document, restrict by WITHT and WT_WITHCD together, since the same type can carry multiple codes with different rates. Avoid joining to BSEG on BELNR alone across company codes, since document numbers are only unique within a company code and fiscal year.
How to prove it in the data
Symptom: a vendor invoice posted but no withholding tax was deducted. Selection: WITH_ITEM where BUKRS, BELNR and GJAHR match the document. No rows at all means withholding tax was never calculated for that document, which points to the vendor master's withholding tax type and code assignment or to the company code's withholding tax activation, not to a fault in this table. Rows present with WT_QBSHB equal to zero mean calculation ran but produced no tax, which points to an exemption, a minimum base threshold, or an incorrect rate in the withholding tax code.
ECC vs S/4HANA
WITH_ITEM continues to exist in S/4HANA and extended withholding tax processing works the same way as in ECC; the table is not superseded by ACDOCA, which holds the general ledger line but not the withholding tax detail. Reporting apps for withholding tax may read the data through a compatibility view rather than the table directly, but the underlying persistence and posting logic for WITH_ITEM itself have not changed in any way relevant to a consultant querying it directly.
Common pitfalls
- No WITH_ITEM rows for a document does not automatically mean configuration is broken. If the withholding tax type is defined to calculate at payment rather than at invoice, no row will exist until the payment posting happens.
- The same document can carry both an invoice-time row and a separate payment-time row if a withholding tax type is misconfigured to fire at both events, inflating totals if row counts are summed without checking the timing setting for each type.
- Reversing an invoice creates a mirrored WITH_ITEM entry with an offsetting amount. Summing WT_QBSHB across a document range without excluding reversed pairs overstates the withholding liability.
- WT_QBSHB is generally recorded in the document currency, not a fixed reporting currency. Comparing totals across documents in different currencies without conversion produces a meaningless number.
- If the company code uses classic withholding tax instead of extended withholding tax, WITH_ITEM will be empty for every document in that company code even though withholding tax was correctly applied through the older BSEG-based fields. Absence of rows here is not proof that no withholding tax exists.
- Data loaded through migration or legacy conversion may lack WITH_ITEM rows even where withholding was actually withheld outside the system before go-live, which shows up as a false gap during reconciliation of historical periods.
Whose problem this is
Configuration of withholding tax types, codes and their timing sits with the FI tax configuration consultant. Assignment of types and codes to individual vendors or customers sits with the AP or AR master data owner. Statutory filing teams consume WITH_ITEM data for tax returns. A discrepancy investigation should start with the FI consultant confirming the master data assignment before treating the table content as suspect.
Related SAP objects
Reviewed pages this object connects to in the ERPClimb knowledge graph.
Source: ERPClimb — https://erpclimb.com/sap-tables/with-itemERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.