Dataset
SAP Business One document and ledger datasets for AI training
An SAP Business One dataset is an extract of one company database: marketing documents such as A/R invoices (OINV, INV1), sales orders (ORDR), purchase orders (OPOR) and A/P invoices (OPCH), with incoming and outgoing payments, journal entries (OJDT, JDT1), the business partner and item masters and the warehouse journal. SourceX sources it to a buyer's spec from established businesses that run SAP Business One on Microsoft SQL Server or SAP HANA. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- One company database's marketing documents with row-level base links, payments, journal entries, masters, the warehouse journal and history tables
- Typical systems
- SAP Business One on Microsoft SQL Server or SAP HANA, on-premise or partner-hosted, with add-ons that write user-defined fields and user tables
- Typical history
- From go-live or the last migration to the extract date. Specify the fiscal years and document types you need
- Modality
- Structured table rows with short remarks, item descriptions and journal memos
- Delivery formats
- Parquet or CSV per table under original names, or JSONL per document with nested rows, plus user-field definitions and an object type lookup
- Preparation
- Business partner names, contact persons, addresses, tax IDs and bank details removed; CardCode pseudonymized with one mapping; remarks, memos and U_ text fields scanned
- Licensing
- Scoped per company database, document types, fiscal years and add-on tables; permitted use agreed per license
- Availability
- Sourced to your spec; depends on the database access the company and its host can give, and supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| company_db_ref | string | A token for the company database, with local and system currency from the company details table, OADM. |
| doc_key | object | The header table (OINV, ORDR, OPOR, OPCH or a sibling), its object type and DocEntry, with DocNum and Series. |
| header | object | Header columns: DocDate, a CardCode token, DocType (item or service), DocCur, DocTotal, VatSum, DocStatus, CANCELED and TransId. |
| rows | array | Row table records (INV1, RDR1, POR1, PCH1): LineNum, ItemCode, Dscription, Quantity, Price, LineTotal, WhsCode and AcctCode. |
| rows[].base_link | object | BaseType, BaseEntry and BaseLine from the row: the object type, DocEntry and LineNum it was copied from, with the source row's Quantity and OpenQty once resolved. |
| rows[].open_state | object | The row's LineStatus and OpenQty, with TargetType and TrgetEntry, which name one document the row was copied to. |
| journal_entry | object | The OJDT entry found through the document's TransId and its JDT1 lines: Account, ShortName, Debit, Credit and RefDate. |
| payments | array | ORCT incoming and OVPM outgoing payments with RCT2 or VPM2 rows, each naming an invoice DocEntry and its SumApplied. |
| master_refs | object | OCRD attributes kept after de-identification (CardType, GroupCode, payment terms, country) and OITM attributes (item group, valuation method), with OITW rows per warehouse. |
| warehouse_journal | array | OINM rows for the document: TransType, CreatedBy, ItemCode, Warehouse, InQty, OutQty and TransValue. |
| history_instances | array | Earlier versions from ADOC and ADO1 (told apart by ObjType), ACRD or AITM, ordered by LogInstanc, with update date and a user token. |
| user_fields | object | U_ columns on the header or row and linked @ user table rows, with CUFD definitions and UFD1 valid values. |
| extract_route | enum | How the rows left Business One: database backup, direct SQL, Service Layer, DI API or a saved query. |
Field names from the table above; values are masked placeholders.
Example record
{
"company_db_ref": "b1co_4e7a",
"doc_key": {
"table": "ODLN",
"object": "delivery",
"doc_entry": 48213,
"doc_num": 2400917
},
"header": {
"doc_date": "2024-03-12",
"card_code": "bp_c_0193",
"doc_cur": "USD",
"doc_total": 1300.0,
"doc_status": "C",
"trans_id": 120455
},
"rows": [
{
"line_num": 0,
"item_code": "itm_7731",
"dscription": "Frozen cod loin, 10 kg case",
"quantity": 40,
"price": 32.5,
"line_total": 1300.0,
"whs_code": "01",
"base_link": {
"base_type": "sales_order",
"base_entry": 39874,
"base_line": 2,
"source_row": {
"table": "RDR1",
"doc_entry": 39874,
"line_num": 2,
"quantity": 100,
"open_qty": 25,
"line_status": "O"
}
},
"open_state": {
"line_status": "C",
"open_qty": 0,
"target_type": "ar_invoice",
"trget_entry": 51102
},
"user_fields": {
"U_LotGrade": "B",
"U_CatchWtKg": 412.6
}
}
],
"journal_entry": {
"trans_id": 120455,
"ref_date": "2024-03-12",
"lines": [
{
"account": "5010",
"debit": 832.0,
"credit": 0
},
{
"account": "1400",
"debit": 0,
"credit": 832.0
}
]
},
"warehouse_journal": [
{
"trans_type": "delivery",
"created_by": 48213,
"warehouse": "01",
"out_qty": 40,
"trans_value": -832.0
}
],
"extract_route": "sql_server_backup"
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Trace order to cash at row level
Base links from invoice rows back to order rows show what shipped, was billed and is still open.
Learn how documents post
Each document paired with its JDT1 lines shows which accounts an item, warehouse and tax code produce.
Apply cash to open invoices
RCT2 and VPM2 rows record which invoices each payment settled, including part payments.
Model how orders change
ADOC and ADO1 instances show an order's quantities cut, prices overridden and delivery dates moved.
Evaluate ERP agents on a customized schema
A schema with U_ fields and @ tables tests whether an agent can read an unfamiliar configuration.
Use-case guides: Finance and accounting agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Base links resolve
Delivery and invoice rows point to source rows that are present in the dataset.
Headers and rows together
Every header table arrives with its row table, and row totals reconcile to the header.
Journal entries balance
Each TransId finds JDT1 lines whose debits equal credits.
History tables present
ADOC, ADO1, ACRD and AITM are included, with several instances for edited records.
User fields defined
Every U_ column and @ table comes with its definition and the add-on that owns it.
One partner pseudonym
A CardCode maps to the same token in documents, payments, JDT1 ShortName and free-text remarks.
Record timeline
SAP Business One dataset
Every row names the row it was copied from
Business One calls its sales and purchasing documents marketing documents, and all share one shape: a header table and a row table. A quotation is OQUT and QUT1, an order ORDR and RDR1, a delivery ODLN and DLN1, an A/R invoice OINV and INV1, and purchasing mirrors this with OPOR, OPDN and OPCH. Users build the next document with Copy To or Copy From, and each new row records its origin: BaseType holds the source document's object type, BaseEntry its DocEntry and BaseLine its LineNum. The source row's OpenQty falls by the copied quantity, and its LineStatus closes at zero.
The flow is kept on the rows themselves. An order line shipped in three parts is three DLN1 rows naming the same RDR1 row, and one invoice can draw rows from several deliveries. The source row's TargetType and TrgetEntry name only one target document, so follow the chain backward from the child rows' base columns. Join on BaseType with DocEntry, each table's internal key. DocNum, the number users see, comes from a numbering series and should not be treated as unique. Chains have gaps: an invoice typed directly has no base, and a row closed by hand with open quantity left is demand never shipped.
A posting document's TransId finds its journal entry in OJDT and lines in JDT1, where Account is the G/L account and ShortName holds the business partner's CardCode on control account lines. Incoming payments in ORCT name the invoices they settle in RCT2 rows, and OVPM does the same for suppliers. Stock moves append to the warehouse journal, OINM. What Business One overwrites are running totals: a partner's balance in OCRD, and on-hand quantity and item cost in OITM and OITW. Values as of a past date must be rebuilt from the journals.
History tables and U_ fields are in the database, not in the reports
Business One keeps earlier versions of what users edit. A saved update of a marketing document copies the header to ADOC and the rows to ADO1, numbered by LogInstanc, with every document type in the same two tables and told apart by ObjType. Business partners and items do the same in ACRD and AITM. These are whole-row snapshots, so a change is found by comparing two instances, not read as an old and a new value. They are richest where editing is allowed: an open order's quantity, price and delivery date can be amended many times, while a posted invoice is mostly locked and is corrected by a credit memo or cancellation document.
The database also holds what the reseller built. Partners adapt Business One with add-ons that store industry data in user-defined fields, physical columns prefixed U_ on standard tables, and in user tables whose names start with @. Definitions sit in CUFD, valid values in UFD1 and the table list in OUTB. A food distributor's catch weights or a rental firm's contracts can live entirely there. Standard reports and the spreadsheet exports made from them usually omit these fields unless someone added them by hand. Add-on tables can also hold content the add-on's vendor supplied, which the company may have no right to license.
A database backup, or SQL against the SQL Server database or HANA schema, returns every table, but a partner-hosted company may have no database access and must get it from the host. The Service Layer and DI API return current business objects such as Orders and Invoices, so ask how history would be reached through them. Expect single-letter flags such as O and C, and amounts in local, foreign and system currency. To test a sample, resolve fifty delivery rows to their order rows, confirm each invoice's journal lines balance, and compare the U_ columns present with CUFD.
What to check before licensing
- Have the data owner and your counsel check the SAP license, the reseller's or hosting partner's contract and each add-on vendor's terms on database extraction, API use and exported data.
- Confirm that business partner names, OCPR contact persons, CRD1 addresses, OCRB bank accounts and tax IDs are removed, with card and check details gone from payment rows.
- Ask which route produced the extract and for the table list, and check that it includes row tables, history tables and payment invoice rows.
- On a sample, resolve BaseType, BaseEntry and BaseLine for delivery and invoice rows, and compare copied quantities with the source row's OpenQty.
- Follow TransId from sampled invoices and payments to OJDT and JDT1, check that debits equal credits, and confirm the CardCode token in ShortName matches the document's.
- Ask for CUFD, UFD1 and OUTB, which add-on owns each U_ field and @ table, and which of them hold third-party content.
- Ask how many log instances the company keeps, how canceled documents appear in its release, and whether older fiscal years were archived out.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Which tables does an SAP Business One dataset include?
A typical request covers marketing document headers and rows (OQUT, ORDR, ODLN, OINV and ORIN for sales, OPOR, OPDN and OPCH for purchasing), payments in ORCT and OVPM, journal entries in OJDT and JDT1, the OCRD and OITM masters and the OINM warehouse journal. History tables and user-defined fields arrive only if requested.
Can a quotation, order, delivery and invoice chain be rebuilt?
Yes, at row level, wherever users copied each document from the one before. A copied row stores BaseType, BaseEntry and BaseLine, naming the source document's type, DocEntry and row. Documents entered directly have no base link, so measure what share of sampled invoice rows resolves to an order.
Does SAP Business One keep a history of changes?
Yes, as snapshots. Updates to marketing documents are copied to ADOC and ADO1, business partners to ACRD and items to AITM, numbered by LogInstanc with the user and date. Changes are derived by comparing instances. Posted invoices change little once added, so most history sits on quotations, orders and master records.
What are U_ fields and @ tables, and why ask for them?
They are how resellers and add-ons extend Business One. A user-defined field is a column prefixed U_ on a standard table, and a user table has a name starting with @. Industry add-ons keep their data there, so these often hold what makes one company's records distinctive. Ask for their definitions and which add-on tables hold third-party content.
Can a partner-hosted Business One system be extracted?
Sometimes, and it needs checking first. Many companies run Business One in a hosting partner's environment with no direct access to the database. The company, its host and counsel need to confirm that the license and hosting contract allow a database-level extract. Otherwise the fallbacks are the Service Layer or saved queries run inside the client, which are slower routes and may not reach every table.
Is SourceX affiliated with SAP?
SAP Business One is named to identify the system the records come from. That does not imply a partnership with or endorsement by SAP. The records belong to the business that runs SAP Business One, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- ERP transaction histories across modules
One company's ERP documents across modules, with flow links, change logs, master data and the data dictionary
- Purchase order histories from requisition to receipt
Purchase orders followed from requisition and approval through revisions, acknowledgment, receipt and invoice match
- Inventory ledger histories
Item-location stock ledgers with movements, adjustments, reorder settings, lots and valuation
- Business Central ledger and document records
Ledger entries, open and posted sales and purchase documents, and customer, vendor, item and account masters with dimensions from one company in a Business Central tenant
- Acumatica ERP transaction records
Ledger batches and lines, payables and receivables documents with lines and applications, sales and purchase orders, and inventory transactions from one tenant
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.