# SAP Business One Document Object Type Codes (ObjType)

> Source: https://netray.co/tools/sap-business-one-document-object-type-codes
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: Free Tools

## Short answer

Lookup of ObjType numbers used in B1 queries, UDO links and approval templates, with header and row tables.

## Category

sap

## Erp

SAP Business One

## Audience

- B1 developer
- B1 consultant
- Report writer

## Tool

**Kind:** worksheet

**Mode:** reference

**Columns:**

#### ObjType

**Key:** code

**Type:** text

#### Object

**Key:** object

**Type:** text

#### Header table

**Key:** header

**Type:** text

#### Row table

**Key:** row

**Type:** text

#### DI API enum

**Key:** sdk

**Type:** text

**Rows:**

**Code:** 1

**Object:** Chart of accounts

**Header:** OACT

**Row:** -

**Sdk:** oChartOfAccounts

**Code:** 2

**Object:** Business partner

**Header:** OCRD

**Row:** CRD1

**Sdk:** oBusinessPartners

**Code:** 4

**Object:** Item master

**Header:** OITM

**Row:** -

**Sdk:** oItems

**Code:** 13

**Object:** A/R invoice

**Header:** OINV

**Row:** INV1

**Sdk:** oInvoices

**Code:** 14

**Object:** A/R credit memo

**Header:** ORIN

**Row:** RIN1

**Sdk:** oCreditNotes

**Code:** 15

**Object:** Delivery

**Header:** ODLN

**Row:** DLN1

**Sdk:** oDeliveryNotes

**Code:** 16

**Object:** Returns

**Header:** ORDN

**Row:** RDN1

**Sdk:** oReturns

**Code:** 17

**Object:** Sales order

**Header:** ORDR

**Row:** RDR1

**Sdk:** oOrders

**Code:** 18

**Object:** A/P invoice

**Header:** OPCH

**Row:** PCH1

**Sdk:** oPurchaseInvoices

**Code:** 19

**Object:** A/P credit memo

**Header:** ORPC

**Row:** RPC1

**Sdk:** oPurchaseCreditNotes

**Code:** 20

**Object:** Goods receipt PO

**Header:** OPDN

**Row:** PDN1

**Sdk:** oPurchaseDeliveryNotes

**Code:** 21

**Object:** Goods return

**Header:** ORPD

**Row:** RPD1

**Sdk:** oPurchaseReturns

**Code:** 22

**Object:** Purchase order

**Header:** OPOR

**Row:** POR1

**Sdk:** oPurchaseOrders

**Code:** 23

**Object:** Sales quotation

**Header:** OQUT

**Row:** QUT1

**Sdk:** oQuotations

**Code:** 24

**Object:** Incoming payment

**Header:** ORCT

**Row:** RCT2

**Sdk:** oIncomingPayments

**Code:** 30

**Object:** Journal entry

**Header:** OJDT

**Row:** JDT1

**Sdk:** oJournalEntries

**Code:** 46

**Object:** Outgoing payment

**Header:** OVPM

**Row:** VPM2

**Sdk:** oVendorPayments

**Code:** 59

**Object:** Goods receipt (inventory)

**Header:** OIGN

**Row:** IGN1

**Sdk:** oInventoryGenEntry

**Code:** 60

**Object:** Goods issue (inventory)

**Header:** OIGE

**Row:** IGE1

**Sdk:** oInventoryGenExit

**Code:** 66

**Object:** Bill of materials

**Header:** OITT

**Row:** ITT1

**Sdk:** oProductTrees

**Code:** 67

**Object:** Inventory transfer

**Header:** OWTR

**Row:** WTR1

**Sdk:** oStockTransfer

**Code:** 202

**Object:** Production order

**Header:** OWOR

**Row:** WOR1

**Sdk:** oProductionOrders

**Code:** 203

**Object:** A/R down payment invoice

**Header:** ODPI

**Row:** DPI1

**Sdk:** oDownPayments

**Code:** 204

**Object:** A/P down payment invoice

**Header:** ODPO

**Row:** DPO1

**Sdk:** oPurchaseDownPayments

**Code:** 540000006

**Object:** Purchase quotation

**Header:** OPQT

**Row:** PQT1

**Sdk:** oPurchaseQuotations

**Code:** 1250000001

**Object:** Inventory transfer request

**Header:** OWTQ

**Row:** WTQ1

**Sdk:** oInventoryTransferRequest

**Code:** 1470000113

**Object:** Purchase request

**Header:** OPRQ

**Row:** PRQ1

**Sdk:** oPurchaseRequest

**Notes:** Codes are the standard ObjType values. DI API enum names are given for BoObjectTypes; verify against the SDK help of your exact version before building on them.

## Content

**Intro:** Almost every cross-document query in SAP Business One filters on an ObjType number: the base document of a row, the type of a journal source, or the object a UDO links to. This list maps the numbers to the document, its tables and the DI API enum.

**Sections:**

#### Where ObjType appears

**Body:** Rows carry BaseType and BaseEntry, which point to the document they were copied from. A delivery row with BaseType 17 and a BaseEntry equals the sales order DocEntry. Journal entries carry TransType and BaseRef, so you can walk from a posting to its source. Approval templates, alerts and Query Manager formatted searches also use these numbers.

**Bullets:**

- BaseType and BaseEntry give document flow
- TransType in OJDT shows the source document type
- BoObjectTypes enums wrap the same codes in the SDK
- UDO registration uses object codes of its own

#### Tracing a sales chain

**Body:** To trace a sales order forward, select delivery rows where BaseType is 17 and BaseEntry is the order DocEntry, then invoice rows where BaseType is 15 and BaseEntry is the delivery DocEntry. Reverse the direction for purchasing with 22 and 20. For production, a production order is 202, and its issue and receipt documents (60 and 59) reference it through BaseType 202.

#### Mistakes to avoid

**Body:** Do not confuse 59 and 20: 59 is an inventory goods receipt without a purchase order, 20 is a goods receipt PO. Do not assume DocNum equals DocEntry when you filter by base entry. And remember that document types added in later versions may have codes not in this list, so check the SDK help for yours.

**Cta:** Need a document-flow report or a trace across orders, deliveries and invoices built for your Business One setup? Netray can help automate it read-only.

**Faq:**

#### What is the difference between BaseType and ObjType?

**Answer:** ObjType is the type of the document the row belongs to. BaseType is the type of the document the row was copied from, such as a delivery row copied from a sales order. Together with BaseEntry they form the document-flow link.

#### Is 202 the production order in every version?

**Answer:** Yes, the production order object type is 202 in the standard schema. Always confirm any code against the SDK help of your version, since newer releases add objects.

#### How do I find the source of a journal entry?

**Answer:** Check TransType and BaseRef in OJDT. TransType holds the ObjType of the source document and BaseRef holds its number, so a TransType of 13 points to an A/R invoice.

#### Do user-defined objects have ObjType codes?

**Answer:** User-defined objects are registered with their own code string, and user tables are prefixed with an at sign. They do not take the numeric codes of standard documents.

## Search terms

sap b1 objtype list, sap business one object type codes, sap b1 objtype 17, sap b1 objtype 202, sap business one document types, sap b1 base type, sap b1 basetype objtype, sap b1 transtype

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
