Skip to content

SAP Integration

PayInvoice Next integrates with SAP to keep both systems in sync. You work in PayInvoice Next for daily procurement, while SAP receives the financial data it needs for enterprise accounting and compliance.

What SAP Integration Does

The integration provides bidirectional data flow:

From SAP to PayInvoice Next:

  • Master data — Suppliers, items, cost centers, profit centers, and business areas are synced from SAP so that your procurement team works with up-to-date reference data.
  • Payment status — When a payment is processed in SAP, the payment status and paid amounts flow back to PayInvoice Next, keeping your invoice records current.

From PayInvoice Next to SAP:

  • Purchase Invoices — Submitted invoices sync to SAP for posting in the financial ledger.
  • Credit notes and debit notes — These also sync as their respective document types.
  • Provisional accounting entries — GRN-based provisional liabilities sync to SAP with their own status tracking (see Provisional Accounting).

How to Check Sync Status

Every Purchase Invoice has two key fields that show its SAP sync state:

Send to SAP

The Send to SAP checkbox on the Purchase Invoice form controls whether the invoice is included in the sync. When this checkbox is ticked, the invoice is queued for the next automatic sync cycle. If it is unticked, the invoice stays in PayInvoice Next only.

SAP Status

The SAP Status field on the Purchase Invoice shows where the document stands in SAP. The possible values are:

  • Draft — The invoice has been sent to SAP but has not yet been posted.
  • Posted — SAP has accepted and posted the invoice in its financial ledger.
  • Paid — The invoice has been fully paid in SAP.

This field updates automatically as SAP processes the document. You do not need to update it manually.

Document Type

The Document Type field indicates how the document is classified in SAP:

  • INV — Standard purchase invoice.
  • CRN — Credit note (return or reduction).
  • DBN — Debit note (additional charge).

Payment Tracking from SAP

When SAP processes a payment against an invoice, two read-only fields on the Purchase Invoice update automatically:

  • Payment Status — Reflects the payment progression in SAP.
  • Total Paid Amount — Shows the cumulative amount SAP has recorded as paid against this invoice.

These fields give your accounts team visibility into payment progress without needing to log into SAP.

[VERIFY IN SANDBOX] Confirm the exact values available in the "Payment Status" dropdown on Purchase Invoice — the registry shows it as a Select field from SAP but does not list all possible values.

Sync Frequency

Sync runs automatically in the background on a regular schedule. Invoice data is sent to SAP, payment status updates flow back, and a periodic health check monitors the pipeline. You do not need to trigger any sync manually.

GRN and Provisional Sync

When provisional accounting is enabled on a GRN, the provisional entry also syncs to SAP. The GRN form shows the SAP Provisional Status (sync state of the provisional entry), the Synced from SAP flag (whether the GRN originated from SAP), and the Linked to Invoice field (which Purchase Invoice triggered the provisional reversal). See Provisional Accounting for full details.

Troubleshooting

SAP Status stays on "Draft" longer than expected — Verify that the Send to SAP checkbox is ticked on the invoice. If it is, allow a few minutes for the next sync cycle. If the status still does not change, contact your system administrator — a validation issue on the SAP side may be blocking the post.

Payment Status does not match your bank records — The payment fields reflect what SAP has recorded. If your bank confirms a payment but the field has not updated, the payment may still be processing in SAP or may have been recorded under a different reference. Check with your SAP administrator.

SAP Status shows an unexpected value — Contact your system administrator, who can review the detailed sync logs to identify the specific error returned by SAP.

[VERIFY IN SANDBOX] Confirm whether SAP Status can show error states directly on the Purchase Invoice, or whether errors are only visible in the backend sync logs.

PayInvoice Next — P2P Documentation v1.0.0-beta