AdemeroHelp

Import Paige invoices into SAP Business One with the Data Transfer Workbench

Turn a batch of invoices Paige read into SAP Business One A/P invoices with the Data Transfer Workbench: fill DTW's Documents and Document_Lines templates from Paige's one-row-per-document CSV, map them to the Purchase Invoices object, and import.

Administrators1 hour the first time, 15 minutes per batch afterVerified 2026-09-05

Before you begin

  • The Data Transfer Workbench installed and a user allowed to run it against your company database
  • Vendor codes (CardCode) and G/L account codes known
  • A Paige scan job with an invoice document type whose fields include vendor name, invoice number, invoice date, due date, and total

At the end of this guide, a batch of invoices that Paige read becomes a batch of A/P invoices in SAP Business One in one DTW run — vendor, dates, vendor reference, and a service line with account and amount filled from Paige's CSV.

DTW imports the Purchase Invoices object from two files: a Documents file (one row per invoice) and a Document_Lines file (one row per line), linked by a RecordKey column. Paige's CSV has one row per invoice with a column per field, so both DTW files are built from it with a spreadsheet. Attachments aren't part of DTW; add PDFs on each invoice's Attachments tab, or use the Service Layer path.

Step 1 — Get the CSV out of Paige

  • Download: in Paige, open Documents, click Export, and in the Export Documents dialog choose the Scope, the Filters (Reviewed only, Field Data with fields, Status not yet exported), tick Download under Destinations, and confirm. Paige emails a link; the zip contains the PDFs and the data files, including the one-row-per-document CSV.
  • SFTP: if the scan job exports to SFTP, turn on Generate combined metadata file on the FTP card so each export run also writes the combined CSV.

Open it in a spreadsheet. What you should see: a header row with the PDF file name, the document type, and one column per Paige field, then one row per invoice.

Step 2 — Fill DTW's two templates

The templates live in DTW's install folder (…\Data Transfer Workbench\Templates\oPurchaseInvoices): Documents.csv and Document_Lines.csv. Row 1 holds the DTW column names and row 2 the SAP field names; keep both, and put data from row 3.

Documents — one row per invoice:

ColumnFill from
RecordKey1, 2, 3… — a running number that ties the line to the invoice
CardCodeThe vendor's code for Paige's Vendor Name (VLOOKUP against a business partner export)
DocDateInvoice Date, as YYYYMMDD
DocDueDateDue Date, as YYYYMMDD
NumAtCardInvoice Number — the vendor reference
DocTypedDocument_Service (a service-type invoice, posted to a G/L account rather than items)
CommentsOptional, for example Paige – Vendor Invoice

Leave DocTotal, DocNum, and HandWritten blank so SAP calculates the total and numbers the document.

Document_Lines — one row per invoice line (one per invoice for a total-only import):

ColumnFill from
RecordKeyThe same number as the invoice's row in Documents
LineNum0
AccountCodeThe expense G/L account code
LineTotalTotal, as a plain number
ItemDescriptionInvoice INV-20441 or similar

For itemized invoices, add one line per row of Paige's line-item table with LineNum 0, 1, 2… Save both as CSV.

Step 3 — Run DTW

  1. Start the Data Transfer Workbench and log in to the company database.

  2. Choose Import, then business object Purchase Invoices (oPurchaseInvoices) under Purchasing – A/P.

  3. Select the two CSV files as the data source: Documents.csv for the header, Document_Lines.csv for the lines.

  4. On Map Object Fields, confirm each source column maps to its target field (they do automatically when you kept the template headers). Click Next, then Import.

What you should see: DTW reports the number of records imported and writes a log; failures list the row and SAP's message.

Open Purchasing – A/P > A/P Invoice and find the new documents. Attach PDFs on each invoice's Attachments tab if you want them.

When it doesn't work

SymptomWhere to look
"Business partner not found"CardCode isn't a vendor code.
Tax or account errorsThe G/L account isn't allowed for the vendor's tax group or is blocked; the message names it.
Posting period errorsDocDate falls in a closed period.
Dates rejectedUse YYYYMMDD.
Invoices doubledExport each batch once from Paige (use the Status: Not Exported filter); SAP also rejects a duplicate NumAtCard for the same vendor if that check is on.

If a Paige field is consistently misread, improve its extraction guidance: Write extraction guidance the AI can follow.