Start a project

Outgoing payments by date

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

Tables: OVPMUse: Cash-flow review and bank reconciliation.Parameters: [%0] = from date, [%1] = to date

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
Need your UDFs in this report, or a dashboard? We extend it for your company.Customize it →

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.

DocNumDocDateCardCodeCardNameCashSumTrsfrSumCheckSumCreditSumDocTotal
8702026-10-05V10000Global Parts Co.0126000012600
8712026-10-05V20000Metro Packaging00430004300
8722026-10-07V23000Prime Logistics02400002400
8732026-10-09150000150

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.

Finance

Related queries

Table reference: OVPM table (Outgoing Payments (header)) · OPCH table (A/P Invoice (header))

How it works

Three steps, no signup

1

Copy the right version

Use the SQL Server tab for MS SQL databases and the HANA tab for SAP B1 on HANA.

2

Open Query Generator

In SAP Business One go to Tools → Queries → Query Generator, paste and click Execute.

3

Save and share

Click Save, pick a category and give the query a name. Your team can run it from Query Manager.

FAQ

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.

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.