Outgoing payments by date
Vendor payments made in a period, split into cash, transfer, check and card.
Tool
SELECT T0.DocNum, T0.DocDate, T0.CardCode, T0.CardName, T0.CashSum, T0.TrsfrSum, T0.CheckSum, T0.CreditSum, T0.DocTotal FROM OVPM T0 WHERE T0.Canceled = 'N' AND T0.DocDate BETWEEN '[%0]' AND '[%1]' ORDER BY T0.DocDate, T0.DocNum
SELECT T0."DocNum", T0."DocDate", T0."CardCode", T0."CardName", T0."CashSum", T0."TrsfrSum", T0."CheckSum", T0."CreditSum", T0."DocTotal" FROM OVPM T0 WHERE T0."Canceled" = 'N' AND T0."DocDate" BETWEEN '[%0]' AND '[%1]' ORDER BY T0."DocDate", T0."DocNum"
What this query answers
For the weekly cash-flow review, the finance manager wants every vendor payment made in a period, by method. It is also the first list the bookkeeper opens when a bank debit cannot be matched to a supplier.
Sample output
Illustrative demo values. Your columns are the same; the numbers come from your company.
| DocNum | DocDate | CardCode | CardName | CashSum | TrsfrSum | CheckSum | CreditSum | DocTotal |
|---|---|---|---|---|---|---|---|---|
| 870 | 2026-10-05 | V10000 | Global Parts Co. | 0 | 12600 | 0 | 0 | 12600 |
| 871 | 2026-10-05 | V20000 | Metro Packaging | 0 | 0 | 4300 | 0 | 4300 |
| 872 | 2026-10-07 | V23000 | Prime Logistics | 0 | 2400 | 0 | 0 | 2400 |
| 873 | 2026-10-09 | 150 | 0 | 0 | 0 | 150 |
SQL Server vs SAP HANA
Same changes as for incoming payments: the mixed-case column "Canceled" and every other column must be quoted exactly. The OVPM table name needs no quotes because it is already upper case.
Common errors and fixes
- A payment with an empty vendor code: That is an outgoing payment posted straight to a G/L account (DocType 'A'), for example a bank charge or petty cash. Add T0.DocType = 'S' to keep vendor payments only.
- Cancelled payments are still listed: Keep T0.Canceled = 'N'. If a payment was reversed by a manual journal entry instead of being cancelled, it will still appear and must be checked in the journal.
Need this report built into SAP Business One?
A saved query answers the question once. We build SAP Business One vendor portals: vendors confirm purchase orders and delivery dates, upload invoices as A/P drafts and check payment status. Or hire a remote SAP Business One developer for the whole job, fixed price per phase.
Related queries
Table reference: OVPM table (Outgoing Payments (header)) · OPCH table (A/P Invoice (header))
Three steps, no signup
Copy the right version
Use the SQL Server tab for MS SQL databases and the HANA tab for SAP B1 on HANA.
Open Query Generator
In SAP Business One go to Tools → Queries → Query Generator, paste and click Execute.
Save and share
Click Save, pick a category and give the query a name. Your team can run it from Query Manager.
Questions about this tool
How do I run the outgoing payments by date query in SAP Business One?
Copy the version that matches your database, open Tools → Queries → Query Generator, paste it in the SQL box and click Execute. Save it to reuse it later.
Which tables does this query use?
It reads OVPM from the standard SAP Business One schema. No user-defined fields are needed.
What should I enter when the selection window opens?
This query uses parameters: [%0] = from date, [%1] = to date. SAP B1 shows a selection window for each one when you run it.
Can this be turned into a dashboard or alert?
Yes. We turn queries into Crystal reports, Excel reports that refresh themselves, SAP B1 alerts or WhatsApp messages for managers.
Built for SAP Business One teams
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.
