SAP Business One query library

24 ready-made reports for sales, finance, purchasing and stock. Every query in SQL Server and HANA versions, free to copy into Query Manager.

Sales

Sales by customer for a date range

Net sales per customer (invoices minus credit notes) between two dates, highest first.

OINVORIN
Sales

Top 20 selling items

Best-selling items by sales value, with quantity sold, for a date range.

OINVINV1
Sales

Sales by sales employee

Invoice count and net sales per sales employee for a period.

OINVOSLP
Sales

Monthly sales trend

Net invoiced sales per month for the last 12 months.

OINV
Sales

Open sales orders with open quantity

Every open sales order line that still has quantity to deliver.

ORDRRDR1
Finance

Customer aging report (AR aging)

Open invoice balance per customer in 0–30, 31–60, 61–90 and 90+ day buckets by due date.

OINV
Finance

Overdue customer invoices

Open invoices past their due date, with days overdue and the customer phone number.

OINVOCRD
Finance

Customer balances

All customers with a non-zero account balance, with credit limit and phone.

OCRD
Finance

Incoming payments by date

Customer payments received in a period, split into cash, transfer, check and card.

ORCT
Finance

Outgoing payments by date

Vendor payments made in a period, split into cash, transfer, check and card.

OVPM
Finance

G/L account transactions

Journal lines for one G/L account in a period, with running debit and credit.

OJDTJDT1OACT
Finance

G/L account balances

Current balance of every postable G/L account, grouped by account level.

OACT
Purchasing

Open purchase orders by vendor

Open purchase order lines with quantity still to receive, grouped by vendor.

OPORPOR1
Purchasing

Last purchase price per item

The most recent A/P invoice price, vendor and date for every item.

OPCHPCH1
Purchasing

Vendor aging report (AP aging)

Open A/P invoice balance per vendor in due-date buckets.

OPCH
Inventory

Stock by warehouse

On hand, committed, ordered and available quantity per item and warehouse.

OITWOITM
Inventory

Items below minimum stock

Inventory items whose on-hand quantity is below the minimum level set on the item.

OITM
Inventory

Inventory value by warehouse

Stock quantity multiplied by the item average cost, totalled per warehouse.

OITWOITM
Inventory

Slow-moving items (no sales in 90 days)

Items with stock on hand that have not been invoiced in the last 90 days.

OITMINV1OINV
Inventory

Batches expiring in the next 60 days

Batch numbers with stock that expire within 60 days, per warehouse.

OBTNOBTQ
Inventory

Items with no price in a price list

Sales items that have a zero price in the chosen price list.

OITMITM1OPLN
Admin

Business partners missing a tax ID

Active customers and vendors with no federal tax ID (VAT / RUC / NIT / NTN).

OCRD
Admin

Invoices created per user today

How many A/R invoices each SAP B1 user created today, with the total value.

OINVOUSR
Admin

Documents waiting for approval

Approval requests still pending, with the document type, originator and age in days.

OWDDOUSR
How it works

Three steps, no signup

1

Find the report

Search by name or table, or filter by Sales, Finance, Purchasing, Inventory and Admin.

2

Pick SQL or HANA

Every query comes in both versions, tested against the standard SAP Business One schema.

3

Paste into Query Manager

Tools → Queries → Query Generator → Execute, then save it in your query category.

FAQ

Questions about this tool

Are these SAP Business One queries free to use?

Yes. Copy them into your SAP B1 Query Manager, change them and share them with your team.

Do the queries work on SAP B1 for HANA?

Yes. Each query page has a SQL Server tab and a HANA tab. The HANA version uses quoted column names and HANA functions such as ADD_DAYS and DAYS_BETWEEN.

What do [%0] and [%1] mean in a query?

They are SAP Business One parameters. When you run the query, B1 opens a selection window and asks for the value, such as a date range or an account code.

Can you add our custom fields (UDFs) to a query?

Yes. We extend queries with your user-defined fields and tables, or turn them into Crystal reports, dashboards or alerts.

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.