SAP Business One table finder

Search 99 SAP B1 tables by code, meaning or field name. See line tables and the key fields to join on.

SAP Business One tables list (search 99 tables)

OQUT

Sales QuotationSales

Related: QUT1 lines, QUT3 freight

Key fields: DocEntry, DocNum, CardCode, DocDate, DocTotal

QUT1

Sales Quotation linesSales

Related: OQUT.DocEntry

Key fields: DocEntry, LineNum, ItemCode, Quantity, Price, LineTotal

ORDR

Sales OrderSales

Related: RDR1 lines, RDR3 freight

Key fields: DocEntry, DocNum, CardCode, DocStatus, DocDueDate

RDR1

Sales Order linesSales

Related: ORDR.DocEntry

Key fields: DocEntry, LineNum, ItemCode, Quantity, OpenQty, LineStatus, WhsCode

ODLN

DeliverySales

Related: DLN1 lines

Key fields: DocEntry, DocNum, CardCode, DocDate

ORDN

Sales ReturnSales

Related: RDN1 lines

Key fields: DocEntry, DocNum, CardCode

OINV

A/R InvoiceSales

Related: INV1 lines, INV3 freight, INV5 withholding tax, INV6 installments

Key fields: DocEntry, DocNum, CardCode, DocTotal, PaidToDate, DocStatus

INV6

A/R Invoice installmentsSales

Related: OINV.DocEntry

Key fields: DocEntry, InstlmntID, DueDate, InsTotal, Status

ORIN

A/R Credit MemoSales

Related: RIN1 lines

Key fields: DocEntry, DocNum, CardCode, DocTotal

RIN1

A/R Credit Memo linesSales

Related: ORIN.DocEntry

Key fields: DocEntry, LineNum, ItemCode, Quantity, LineTotal, BaseType, BaseEntry

ODPI

A/R Down PaymentSales

Related: DPI1 lines

Key fields: DocEntry, DocNum, CardCode, DocTotal

ORRR

Return RequestSales

Related: RRR1 lines

Key fields: DocEntry, DocNum, CardCode

OSLP

Sales EmployeesSales

Related: OINV.SlpCode, ORDR.SlpCode

Key fields: SlpCode, SlpName, Commission

OPRQ

Purchase RequestPurchasing

Related: PRQ1 lines

Key fields: DocEntry, DocNum, ReqDate, Requester

OPQT

Purchase QuotationPurchasing

Related: PQT1 lines

Key fields: DocEntry, DocNum, CardCode

OPOR

Purchase OrderPurchasing

Related: POR1 lines

Key fields: DocEntry, DocNum, CardCode, DocStatus

OPDN

Goods Receipt PO (GRPO)Purchasing

Related: PDN1 lines

Key fields: DocEntry, DocNum, CardCode

PDN1

Goods Receipt PO linesPurchasing

Related: OPDN.DocEntry

Key fields: DocEntry, LineNum, ItemCode, Quantity, BaseType, BaseEntry

ORPD

Goods ReturnPurchasing

Related: RPD1 lines

Key fields: DocEntry, DocNum, CardCode

OPCH

A/P InvoicePurchasing

Related: PCH1 lines, PCH5 withholding tax

Key fields: DocEntry, DocNum, CardCode, DocTotal, PaidToDate

ORPC

A/P Credit MemoPurchasing

Related: RPC1 lines

Key fields: DocEntry, DocNum, CardCode

ODPO

A/P Down PaymentPurchasing

Related: DPO1 lines

Key fields: DocEntry, DocNum, CardCode

OIPF

Landed CostsPurchasing

Related: IPF1 lines, IPF2 cost lines

Key fields: DocEntry, DocNum

OCRD

Business PartnersBusiness Partners

Related: CRD1 addresses, OCPR contacts, CRD7 tax IDs

Key fields: CardCode, CardName, CardType, LicTradNum, Balance, CreditLine

CRD1

BP AddressesBusiness Partners

Related: OCRD.CardCode

Key fields: CardCode, Address, AdresType, Street, City, Country

OCPR

BP Contact PersonsBusiness Partners

Related: OCRD.CardCode

Key fields: CntctCode, CardCode, Name, Tel1, E_MailL

OCRG

BP GroupsBusiness Partners

Related: OCRD.GroupCode

Key fields: GroupCode, GroupName, GroupType

OCTG

Payment TermsBusiness Partners

Related: OCRD.GroupNum

Key fields: GroupNum, PymntGroup, ExtraDays

OCRY

Countries/RegionsBusiness Partners

Related: OCRD.Country

Key fields: Code, Name, IsEC, TaxIdDigts

OITM

ItemsInventory

Related: ITM1 prices, OITW warehouse stock, OITB groups

Key fields: ItemCode, ItemName, OnHand, AvgPrice, InvntItem, SellItem, PrchseItem

OITW

Item Warehouse StockInventory

Related: OITM.ItemCode, OWHS.WhsCode

Key fields: ItemCode, WhsCode, OnHand, IsCommited, OnOrder

stock by warehouse query

OITB

Item GroupsInventory

Related: OITM.ItmsGrpCod

Key fields: ItmsGrpCod, ItmsGrpNam

OWHS

WarehousesInventory

Related: OITW.WhsCode, OBIN bins

Key fields: WhsCode, WhsName, BinActivat

ITM1

Item PricesInventory

Related: OITM.ItemCode, OPLN.ListNum

Key fields: ItemCode, PriceList, Price, Currency

OPLN

Price ListsInventory

Related: ITM1.PriceList

Key fields: ListNum, ListName, BASE_NUM, Factor

OSPP

Special Prices (BP)Inventory

Related: SPP1 periods, SPP2 quantities

Key fields: ItemCode, CardCode, Price, Discount

OIGN

Goods Receipt (Inventory)Inventory

Related: IGN1 lines

Key fields: DocEntry, DocNum, DocDate

IGN1

Goods Receipt (Inventory) linesInventory

Related: OIGN.DocEntry

Key fields: DocEntry, LineNum, ItemCode, Quantity, WhsCode

OIGE

Goods Issue (Inventory)Inventory

Related: IGE1 lines

Key fields: DocEntry, DocNum, DocDate

IGE1

Goods Issue (Inventory) linesInventory

Related: OIGE.DocEntry

Key fields: DocEntry, LineNum, ItemCode, Quantity, WhsCode

OWTQ

Inventory Transfer RequestInventory

Related: WTQ1 lines

Key fields: DocEntry, DocNum, Filler, ToWhsCode

OWTR

Inventory TransferInventory

Related: WTR1 lines

Key fields: DocEntry, DocNum, Filler, ToWhsCode

WTR1

Inventory Transfer linesInventory

Related: OWTR.DocEntry

Key fields: DocEntry, LineNum, ItemCode, Quantity, FromWhsCod, WhsCode

OINM

Warehouse journal (inventory audit)Inventory

Related: TransType + CreatedBy = source document; SDK 10.0 documents OIVL

Key fields: TransNum, ItemCode, InQty, OutQty, Warehouse

OIVL

Inventory Transactions LogInventory

Related: IVL1 cost layers

Key fields: TransSeq, ItemCode, LocCode, InQty, OutQty, TransValue

OINC

Inventory CountingInventory

Related: INC1 lines

Key fields: DocEntry, DocNum, CountDate

OIQR

Inventory PostingInventory

Related: IQR1 lines

Key fields: DocEntry, DocNum

OBTN

Batch Numbers (master)Inventory

Related: OBTQ quantities, OBTW warehouse details

Key fields: AbsEntry, ItemCode, DistNumber, ExpDate, MnfDate

OBTQ

Batch Quantities per WarehouseInventory

Related: OBTN.AbsEntry = MdAbsEntry

Key fields: ItemCode, WhsCode, Quantity, MdAbsEntry

OSRN

Serial Numbers (master)Inventory

Related: OSRQ quantities

Key fields: AbsEntry, ItemCode, DistNumber, Status

OSRQ

Serial Number Quantities per WarehouseInventory

Related: OSRN.AbsEntry = MdAbsEntry

Key fields: ItemCode, SysNumber, WhsCode, Quantity, MdAbsEntry

OMRC

ManufacturersInventory

Related: OITM.FirmCode

Key fields: FirmCode, FirmName

OBIN

Bin LocationsInventory

Related: OIBQ bin quantities

Key fields: AbsEntry, BinCode, WhsCode

OUOM

Units of MeasureInventory

Related: OUGP UoM groups, UGP1

Key fields: UomEntry, UomCode, UomName

OITT

Bill of MaterialsProduction

Related: ITT1 components

Key fields: Code, TreeType, Qauntity, ToWH

ITT1

Bill of Materials componentsProduction

Related: OITT.Code = Father

Key fields: Father, ChildNum, Code, Quantity, Warehouse

OWOR

Production OrderProduction

Related: WOR1 components

Key fields: DocEntry, DocNum, ItemCode, PlannedQty, CmpltQty, Status (P/R/L/C)

WOR1

Production Order rows (components)Production

Related: OWOR.DocEntry

Key fields: DocEntry, LineNum, ItemCode, BaseQty, PlannedQty, IssuedQty, IssueType, wareHouse

ORSC

ResourcesProduction

Related: RSC4 capacities

Key fields: VisResCode, ResName, ResType

OACT

Chart of AccountsFinance

Related: JDT1.Account

Key fields: AcctCode, AcctName, CurrTotal, Postable, GroupMask

OJDT

Journal Entry (header)Finance

Related: JDT1 lines

Key fields: TransId, RefDate, TransType, BaseRef, Memo

JDT1

Journal Entry LinesFinance

Related: OJDT.TransId

Key fields: TransId, Line_ID, Account, ShortName, Debit, Credit

OBTF

Journal VouchersFinance

Related: BTF1 lines

Key fields: BatchNum, TransId

ORCT

Incoming PaymentsFinance

Related: RCT2 invoices paid, RCT1 checks, RCT3 credit cards

Key fields: DocEntry, DocNum, CardCode, DocTotal, CashSum, TrsfrSum

OVPM

Outgoing PaymentsFinance

Related: VPM2 invoices paid, VPM1 checks

Key fields: DocEntry, DocNum, CardCode, DocTotal

OCHH

Checks for Payment (received)Finance

Related: ORCT

Key fields: CheckKey, CheckNum, BankCode, CheckSum, Deposited

ODPS

DepositsFinance

Related: DPS1 lines

Key fields: DeposId, DeposDate, BanckAcct

OPRC

Profit Centers / Cost CentersFinance

Related: OOCR distribution rules

Key fields: PrcCode, PrcName, DimCode

OOCR

Distribution RulesFinance

Related: OCR1 lines

Key fields: OcrCode, OcrName, DimCode

OPRJ

ProjectsFinance

Related: Used on documents and JDT1.Project

Key fields: PrjCode, PrjName, Active

OCRN

CurrenciesFinance

Related: ORTT exchange rates

Key fields: CurrCode, CurrName

ORTT

Exchange RatesFinance

Related: OCRN.CurrCode

Key fields: RateDate, Currency, Rate

OSTC

Tax CodesFinance

Related: STC1 tax types

Key fields: Code, Name, Rate

OVTG

Tax Groups (VAT)Finance

Related: Used on lines (VatGroup)

Key fields: Code, Name, Rate, Category

OFPR

Posting PeriodsFinance

Related: OACP period definitions

Key fields: AbsEntry, Code, F_RefDate, T_RefDate, PeriodStat

OBNK

Bank Statement LinesBanking

Related: Reconciliation

Key fields: AcctCode, Sequence, DueDate, Memo

DSC1

House Bank AccountsBanking

Related: ODSC banks

Key fields: BankCode, Account, GLAccount

OSCL

Service CallsService

Related: SCL1 solutions, SCL5 activities

Key fields: callID, customer, subject, status, priority

OINS

Customer Equipment CardService

Related: OSCL.insID

Key fields: insID, itemCode, manufSN, customer

OCTR

Service ContractsService

Related: CTR1 items

Key fields: ContractID, CstmrCode, StartDate, EndDate

OCLG

ActivitiesCRM

Related: OCRD.CardCode

Key fields: ClgCode, CardCode, Action, Recontact, Notes

OOPR

Sales OpportunitiesCRM

Related: OPR1 stages

Key fields: OpprId, CardCode, MaxSumLoc, Status

OHEM

EmployeesAdministration

Related: HEM6 roles

Key fields: empID, firstName, lastName, dept, manager

OUSR

UsersAdministration

Related: UserSign on every document

Key fields: USERID, USER_CODE, U_NAME, E_Mail, Locked

OADM

Company DetailsAdministration

Related: ADM1 extra details

Key fields: CompnyName, MainCurncy, SysCurrncy, TaxIdNum

ONNM

Document NumberingAdministration

Related: NNM1 series

Key fields: ObjectCode, AutoKey, DfltSeries

NNM1

Numbering SeriesAdministration

Related: Series on every document

Key fields: Series, SeriesName, NextNumber, ObjectCode

OWDD

Approval RequestsApprovals

Related: WDD1 approval steps

Key fields: WddCode, ObjType, DocEntry, OwnerID, Status

OWTM

Approval TemplatesApprovals

Related: WTM1 originators, WTM2 stages

Key fields: WtmCode, Name, Active

OALR

Alerts / Internal MessagesAdministration

Related: ALR1, AIB1 recipients

Key fields: Code, Subject, UserSign

ADOC

Document History (log)Administration

Related: Archived versions of OINV/ORDR…

Key fields: DocEntry, ObjType, LogInstanc

ODRF

Drafts (all document types)Administration

Related: DRF1 lines, ObjType = draft document type

Key fields: DocEntry, DocNum, ObjType, CardCode, DocDate

DRF1

Draft linesAdministration

Related: ODRF.DocEntry

Key fields: DocEntry, LineNum, ItemCode, Quantity, ObjType

CUFD

User-Defined Fields (definitions)Customization

Related: UFD1 valid values

Key fields: TableID, FieldID, AliasID, Descr

UFD1

User-Defined Field valid valuesCustomization

Related: CUFD.TableID + FieldID

Key fields: TableID, FieldID, IndexID, FldValue, Descr

OUTB

User-Defined Tables (definitions)Customization

Related: Tables named @NAME

Key fields: TableName, Descr, ObjectType

OUQR

Saved QueriesCustomization

Related: OQCN query categories

Key fields: IntrnalKey, QCategory, QName, QString

CSHS

Formatted SearchesCustomization

Related: Links OUQR to form fields

Key fields: FormID, ItemID, ColID, QueryId

RDOC

Report & Layout DefinitionsCustomization

Related: Crystal and PLD layouts

Key fields: DocCode, DocName, TypeCode

How are SAP Business One tables named?

The table code tells you what kind of table it is:

  • O prefix: master data or document header, one row per record: OINV (A/R invoice), OITM (items), OCRD (business partners).
  • Same stem + number: lines and sub-tables of that object: INV1 (invoice lines), INV6 (invoice installments), RDR1 (sales order lines).
  • A prefix: history (log) copies kept each time a record changes: ACRD for business partners, AITM for items, with sub-tables such as ACR1 in the SDK table reference.
  • @ prefix: user-defined tables, for example @MY_TABLE. User-defined fields start with U_, for example U_HSCode.

Example pair: ORIN / RIN1, header and lines of the A/R credit memo, joined on DocEntry. (OINV / INV1; SDK table reference (ACR1))

The most used SAP Business One tables

Full pages with fields, joins and SQL/HANA queries: OINV table · INV1 table · OITM table · OITW table · ORDR table · OCRD table · OJDT table · JDT1 table · OPCH table · ORPC table · ORCT table · OVPM table · OPOR table · OACT table · OBTN table · ORIN table · RIN1 table · RDR1 table · OWHS table · ODLN table · OINM table · OWOR table · WOR1 table · ITM1 table · OPLN table · OITB table · OSRN table · OSRQ table · OBTQ table · OWTR table · WTR1 table · OWTQ table · OIGN table · IGN1 table · OIGE table · IGE1 table · OITT table · ITT1 table · OMRC table · OQUT table · QUT1 table · OPDN table · PDN1 table · ODRF table · DRF1 table · OPRQ table · ORDN table · INV6 table · OCRG table · OSLP table · OUSR table · OCRY table · OCTG table · OPRJ table · OOCR table · NNM1 table · OVTG table · OSTC table · OCRN table · ORTT table · OHEM table · CUFD table · UFD1 table · OUTB table · ADOC table · CRD1 table · OCPR table · PCH1 table · DLN1 table · POR1 table · RCT2 table · VPM2 table · RPC1 table · RDN1 table

OITM table · OINV / INV1 · ORDR / RDR1 · OCRD · OITW · OJDT / JDT1

OITM table (Item master data)

OITM stores one row per item: its code, name, group, units and the stock totals for all warehouses together. The key is ItemCode; prices are in ITM1 and the stock per warehouse is in OITW, both joined on ItemCode.

  • ItemCode: the item key
  • ItemName: description
  • ItmsGrpCod: item group, joins to OITB
  • OnHand: total stock in all warehouses
  • IsCommited: total quantity on open sales orders
  • OnOrder: total quantity on open purchase orders
  • DfltWH: default warehouse
  • CodeBars: barcode

Query: Items with no price in a price list · Inventory value by warehouse

OINV / INV1 (A/R invoice header and lines)

OINV holds the A/R invoice header and INV1 its lines. Both use DocEntry as the internal key, so the lines join with INV1.DocEntry = OINV.DocEntry; DocNum is the number users see.

  • DocEntry: internal key (header and lines)
  • DocNum: invoice number shown to users
  • CardCode: customer, joins to OCRD
  • DocDate / DocDueDate: posting and due date
  • DocTotal, VatSum, PaidToDate: totals and amount paid
  • CANCELED: Y for cancelled invoices
  • INV1.ItemCode, Quantity, LineTotal, WhsCode: line data

Query: Sales by customer · Overdue invoices

Sales totals from INV1 run high when invoices carry a footer discount: why a LineTotal sum misses the OINV header discount.

ORDR / RDR1 (Sales order)

ORDR is the sales order header and RDR1 its lines, joined on DocEntry. DocStatus O means open; on the lines, OpenQty is what is still to be delivered.

  • DocEntry, DocNum: key and order number
  • CardCode: customer, joins to OCRD
  • DocDueDate: delivery date
  • DocStatus: O = open, C = closed
  • RDR1.ItemCode, Quantity, OpenQty: ordered and open quantity
  • RDR1.LineStatus, WhsCode: line status and warehouse

Query: Open sales orders with open quantity

OCRD (Business partners)

OCRD stores customers, vendors and leads in one table; CardType tells them apart (C, S, L). The key is CardCode; addresses are in CRD1 and contact persons in OCPR, both joined on CardCode.

  • CardCode: business partner key
  • CardName: name
  • CardType: C = customer, S = vendor, L = lead
  • GroupCode: BP group, joins to OCRG
  • LicTradNum: tax ID (NIT, RUC, VAT number)
  • Balance, CreditLine: account balance and credit limit
  • SlpCode: sales employee, joins to OSLP

Query: Customer balances · Business partners missing a tax ID

OITW (Item stock per warehouse)

OITW has one row per item and warehouse with the quantity on hand, committed and on order. Its key is ItemCode plus WhsCode; it joins to OITM on ItemCode and to OWHS on WhsCode.

  • ItemCode: joins to OITM
  • WhsCode: joins to OWHS
  • OnHand: stock in this warehouse
  • IsCommited: committed to sales orders (spelled with one t)
  • OnOrder: ordered from vendors
  • MinStock: minimum level for this warehouse

Query: Stock by warehouse · Items below minimum stock

OJDT / JDT1 (Journal entries)

OJDT is the journal entry header and JDT1 the debit and credit lines, joined on TransId. Every posting document (invoice, payment, goods receipt) creates a journal entry here; TransType tells you which kind.

  • TransId: journal entry key (header and lines)
  • RefDate: posting date
  • TransType: source document type (13 = A/R invoice, 24 = incoming payment…)
  • BaseRef: number of the source document
  • JDT1.Account: G/L account, joins to OACT
  • JDT1.ShortName: business partner or account code
  • JDT1.Debit, Credit: amounts in local currency

Query: G/L account transactions · Account balances

Sources: SAP Business One documentation and SDK (DI API database tables reference), SAP Help Portal.

How it works

Three steps, no signup

1

Type what you need

Search by table code (OINV), by meaning (invoice, batch, approval) or by field name (CardCode).

2

See the line tables

Each result shows the header table, its line tables and the fields you usually join on.

3

Write the query

Use the key fields to join tables, or send the result to the SQL to HANA converter. For a full SQL Server to HANA migration (queries, add-ons and reports), we do the move by phase.

FAQ

Questions about this tool

What is the difference between OINV and INV1?

OINV is the A/R invoice header (one row per invoice: customer, dates, totals) and INV1 holds its lines (one row per item or service). They join on DocEntry: INV1.DocEntry = OINV.DocEntry, and INV1.LineNum numbers the lines.

Where are A/R invoices stored in SAP Business One?

The invoice header is in OINV and the lines are in INV1. They join on DocEntry. Open balance is DocTotal minus PaidToDate.

What is the difference between OITM and OITW?

OITM is the item master with totals for all warehouses. OITW holds the stock of each item per warehouse: OnHand, IsCommited (committed) and OnOrder.

Which table holds batch numbers and expiry dates?

OBTN is the batch master with DistNumber and ExpDate. OBTQ holds the batch quantity per warehouse and joins to OBTN on OBTN.AbsEntry = OBTQ.MdAbsEntry.

How do I find user-defined fields and tables?

CUFD lists every user-defined field (TableID, AliasID, Descr). OUTB lists user-defined tables, which are stored in the database with an @ prefix, for example @MY_TABLE.

Are the table names the same on SQL Server and HANA?

Yes. Only the query syntax changes: on HANA column names must be written in double quotes, for example T0."CardCode".

Need this inside SAP Business One?

We build add-ons, reports and integrations for SAP B1 on SQL Server and HANA. Tell us what you need and get a fixed price, usually within 24 hours.