Connecting SAP Business One

Send your customers, price list items, invoices, credit notes, payments and refunds to SAP Business One automatically, and keep them up to date there — and, optionally, have SAP file your DGII e-CF invoices. Here's what to ask your SAP partner for, the safe order to set it up, and the rules that protect your books.

Connecting SAP Business One

If your company keeps its books in SAP Business One, nobody should be re-typing Suprata's invoices and payments into it. The SAP Business One integration sends them across for you: all your customers and price list items, and your invoices, credit notes, payments and refunds, every few minutes, posted to the accounts you choose. When something changes in Suprata afterwards — a customer's address, an item's name, an invoice you corrected — SAP is brought up to date too.

It works one way. You work in Suprata; SAP receives copies. Nothing typed into SAP comes back — with one exception: if SAP files your electronic invoices with the DGII, the e-NCF it assigns is read back onto your Suprata invoice.

Read this whole article before switching it on. Accounting integrations are easy to start and tedious to clean up.

When you'd use this

  • Your accountant or head office works in SAP Business One, and you invoice and take payments in Suprata.
  • Several business units invoice under one SAP company, each under its own SAP branch.
  • Your SAP company already files Dominican e-CF invoices through an e-CF add-on, and you want Suprata's invoices filed the same way.

If you use QuickBooks Online instead, see QuickBooks prerequisites.

One accounting system at a time

Suprata sends your books to one accounting system. Two would book the same revenue twice, and nobody could say which set of books is right. If QuickBooks sync is switched on, turning SAP on is refused with a message saying so — switch QuickBooks sync off first. The same works the other way round.

What to ask your SAP partner for

Before you open the settings page, get these from whoever looks after your SAP:

  1. Your SAP server address (your partner may call it the Service Layer address) — something like https://sap.yourcompany.com:50000 — and the company database name, for a test company first and your live company later.
  2. A dedicated SAP user for Suprata, exempt from approval procedures. Otherwise SAP holds every document waiting for approval instead of posting it.
  3. A non-inventory sales item for charges that aren't on your price list — fees, deposits, typed-in lines. It's required. A second one for discount lines is optional.
  4. Their recommendation for tax groups (for example, ITBIS at 18% and exempt), which accounts card, bank and cash payments land in, and which branch each of your business units invoices under.
  5. If the server uses its own certificate, its certificate pin (it starts with sha256//).

Setting it up — in this order

Go to Integrations → SAP Business One. Only people who can manage integrations can open it.

1. Connection

Fill in the test company first: server address, company database, SAP user and password. Passwords are stored encrypted and never shown again; leave the box blank to keep the saved one.

Then press Check your setup. It signs in, reads your company's settings, and checks that the fields SAP's e-CF add-on uses exist. It posts nothing.

If SAP refuses the password, Suprata waits 15 minutes before trying again on its own, so SAP doesn't lock the user. Saving new details or checking your setup tries again straight away.

Suprata's own practice sites always connect to your test company, whatever you choose — a stray invoice in a live ledger that files with the DGII is a real tax document.

2. Sync settings

  • Item for charges not on your price list (required) — the item from step 3 above.
  • Customer code starts with — Suprata customers become SAP customers coded like SUP000123. Pick a prefix your existing SAP customers don't use.
  • Customer group, item group, default branch, numbering series — optional; numbers from SAP.
  • How tax is sent on each line — as a VAT group or a tax code. Ask your partner.
  • Send records dated from — invoices dated before this, and payments taken before it, are never sent. It's set to the day you switch sending on, so your history isn't posted on top of the opening balances SAP already holds.

3. Mappings

  • Tax. The SAP tax group for each of your tax categories, including items with no tax category — map that one to your exempt group. SAP works out the tax itself from these, so they must match what you charge. If SAP's total for an invoice disagrees with Suprata's, the activity list says so.
  • Payments. For each payment type, whether it's recorded as cash or bank/card, and the SAP account it lands in. Card payments usually go to a clearing account (the money is on its way from the card company); cash to your cash account. Fill in Any other payment type too, or a payment of a new type waits until you do.
  • Branches. If you use business units, the SAP branch each one invoices under.
  • Revenue accounts by price list category — optional, only if you want certain sales booked to particular accounts.

4. Price list items SAP already has

Every item on your price list is sent to SAP. If SAP already has some of them — a product your other business units sell, a service your accountant set up years ago — you don't want a second copy of each. In the Price list items in SAP section, Suprata reads SAP's items and suggests a match for each of yours: the same code (your item's SKU equals the SAP item code), or failing that the same name.

  • Check each suggestion and press Use this, or type the SAP item code yourself. Use every suggestion on this page fills in the lot; nothing is kept until you press Save matches.
  • Use the search box and the With a suggested match / Not matched / Matched filter to work through a long price list a page at a time. Once you trust the suggestions, Use all suggested matches takes them all at once.
  • A matched item is SAP's: invoices use it, and Suprata never renames or otherwise changes it.
  • Anything you don't match is created in SAP as a non-inventory item, coded like SUP-17.

Do this before you turn practice mode off. Items that aren't matched by then are created in SAP. You can still match one later — new invoices use SAP's item from then on — but the copy Suprata created stays in SAP, unused.

5. Switch on — in practice mode

Practice mode is on by default. With sending switched on in practice mode, every record is prepared and logged exactly as it would be sent, and nothing is posted to SAP. This is how you prove the mappings before anything reaches your books.

Lock a few real invoices, take a couple of payments, issue a credit note, then look at Recent activity to see exactly what would have gone to SAP.

6. Go live

When it all looks right:

  1. Switch sending off, choose your live company, and switch sending back on. (The company can't be changed while sending is on.)
  2. Set Send records dated from to your go-live day.
  3. Turn practice mode off. Records prepared during practice are then sent for real.

Switching between test and live sets aside what was sent to the old company, so the new one starts fresh from the start date. Check that date before you switch.

What gets sent, and when

In Suprata In SAP
Every active customer A customer — or, if one with the same RNC or cédula already exists, linked to that one
Every active price-list item A non-inventory item (Suprata keeps your stock) — or the SAP item you matched it to
A change to a customer or item The same change in SAP — except customers and items SAP already had, which Suprata never changes
An invoice, once locked or closed An A/R invoice, numbered with your Suprata invoice number as the customer reference
A credit note A credit note based on the original SAP invoice
A payment An incoming payment to the mapped account, applied to the SAP invoice
A refund An outgoing payment from the same account
A cancelled invoice, or a voided or bounced payment Cancelled in SAP
An invoice you change after it was sent Replaced in SAP by the new version (see below)

Drafts are never sent — an invoice goes when it's locked. A reservation's running master invoice isn't sent as an invoice; payments on it go to the customer's account in SAP.

A big customer list goes a little at a time. The day you switch on, every customer and item has to reach SAP. Suprata sends them in batches every few minutes, so a company with thousands of customers is fully across within a few hours — and invoices keep going meanwhile, each taking its own customer with it.

Nothing is posted twice. SAP has no way to spot a duplicate, so before creating anything Suprata looks in SAP for its own copy; a retry after a timeout links to the one already there. If it can't check, it doesn't post, and tries again later.

When you change an invoice that's already in SAP

SAP doesn't let anyone edit a posted invoice, so Suprata replaces it: the payments Suprata sent against it are taken off, the SAP invoice is cancelled, the corrected version is posted, and the payments go back on against it. The invoice's history in Suprata says when that happened and which SAP number it has now.

It happens once the invoice is locked again — while you're still editing, it waits. It isn't done, and the invoice shows as out of date in SAP with the reason, when:

  • a credit note or refund for it is already in SAP — correct it there, or with another credit note;
  • SAP won't cancel something — typically a payment already included in a bank deposit or reconciled in SAP. SAP's own message is shown. Undo that in SAP, then press Try again;
  • its payments now come to more than its new total — sort out the payments first, then Try again;
  • DGII through SAP is on — a filed invoice is corrected with a credit note, never replaced.

Credit notes, refunds and cancellations are still the right way to correct anything a customer has already been given: they're sent across as their own documents.

Seeing where things stand

  • On each invoice, a small database icon beside the invoice number shows its state in SAP — green when it's posted and up to date, amber when it has changed since or is out of date, red when there's a problem. Hover over it, or open the invoice's history, for the full line: for example Posted to SAP as document 1048 - up to date.
  • On the SAP page, Kept up to date in SAP counts, for customers, items, invoices, credit notes, payments and refunds, what's in SAP, what's waiting to go, what's out of date and what has a problem. Click a count to see those records in Recent activity, and use Try again once you've fixed the cause.

Filing DGII e-CF invoices through SAP

If your SAP company has an e-CF add-on that files with the DGII, Suprata can use it instead of Alanube. Each invoice goes to SAP when you lock it; SAP gives it its e-NCF and files it; the number and QR code then appear on your Suprata invoice once SAP has signed it. SAP numbers every invoice, so there are no number ranges to enter in Suprata.

To switch it on, in the DGII through SAP section:

  • Sending to SAP must be on — SAP can only file what it receives.
  • Enter your RNC.
  • Alanube must be switched off. Only one provider can file your invoices.
  • Check Kind of income (almost everyone uses 01), the invoice type for customers without an RNC (normally consumer), and your NCF type codes (usually 31, 32 and 34 — change them only if your partner says so).
  • Leave Send to SAP the moment an invoice is locked ticked, so the e-NCF is usually on the invoice before you print or send it.

Understand the trade-off before you confirm: once an invoice has been sent to SAP it's filed, so it can't be unlocked or changed in Suprata — only corrected with a credit note. The one exception is an invoice the DGII refuses (below). Customers with an RNC or cédula on file get tax-credit invoices, so fill those in first (Adding a customer's RNC or cédula).

Switching it off stops new invoices going for an e-NCF; invoices already sent still receive theirs when SAP signs them. Sending to SAP can't be switched off while DGII through SAP is on.

Try it on your SAP test company first. Ask your SAP partner to confirm that the test company files with the DGII's test system, so nothing you send while trying it out counts.

What the e-NCF status on an invoice means

SAP usually numbers and signs an invoice within seconds of receiving it. The DGII's own answer follows, usually within minutes, but it can take hours or days when the DGII's systems are down. SAP keeps retrying on its own.

Status What it means What to do
Waiting for the DGII SAP has the invoice and hasn't numbered it yet. Nothing; wait a moment.
Issued - waiting for DGII confirmation SAP has numbered and signed it. The e-NCF, security code and QR code are on the invoice. Print it and hand it over. It's valid; the DGII just hasn't confirmed it yet.
Accepted The DGII has it on file. Nothing.
Accepted with observations On file, with a remark from the DGII, shown on the invoice. Read the remark and fix it on future invoices.
Refused by the DGII The DGII rejected it; the reason is shown. The invoice isn't valid, so its e-NCF no longer prints. Cancel it — that cancels it in SAP too — and raise a corrected invoice. If payments are on it, refund them or move them to the customer's account credit first. Tell whoever manages your SAP which e-NCF was refused.

A credit note always points back to the invoice it corrects, so it goes to SAP once that invoice has its e-NCF. A refused invoice can't be credited; cancel it instead.

Reservation deposits

Dominican law taxes a deposit the day it's paid, not when the stay is billed. So with DGII through SAP on:

  • A deposit that goes toward the stay gets its own e-CF, with ITBIS, when you take it. When the deposit is used to pay the stay, it comes off the stay's invoice with a credit note that names the deposit's e-NCF. That way the DGII never sees the same money twice. Suprata uses the newest invoice so the credit note stays within the 30 days in which it can reduce ITBIS.
  • A refundable deposit (a reservation type set to refund the deposit) is money you're holding, not a sale. It's never filed, and neither is its refund.

For this to come out right, the price list item you use for deposits needs the same tax category as the stays it pays for. The DGII card on the SAP page lists any deposit item that has no tax.

Say a guest pays an RD$5,900 deposit (RD$5,000 + RD$900 ITBIS) for a stay billed day by day. The deposit's e-CF declares RD$900 of ITBIS that day. When the deposit is used, a credit note takes RD$5,000 + RD$900 off the latest day's invoices. The DGII ends up with exactly the stay's ITBIS, declared from the day the money arrived.

Credit notes more than 30 days after the invoice

Dominican law lets a credit note reduce ITBIS only within 30 days of the invoice. After that, the ITBIS on the original sale stays owed, whether or not you refund the customer.

Suprata handles this for you. When you credit an invoice more than 30 days after it was issued, the customer still gets back the full amount they paid, but the credit note carries no ITBIS. The tax part shows on it as a line of its own ("ITBIS charged on invoice #…"), and SAP files it with the DGII as a late credit note. The ITBIS stays declared, so it's a cost to your business. Suprata warns you before you issue one.

Say an RD$11,800 invoice (RD$10,000 + RD$1,800 ITBIS) is refunded on day 45. The customer gets RD$11,800 back, and the RD$1,800 isn't recovered from the DGII. If a refund is likely, issuing it within the 30 days saves you the ITBIS.

Common mistakes

  • Turning practice mode off before checking Recent activity. Practice mode exists so the first real posting is one you've already seen.
  • Leaving "items with no tax category" unmapped. Untaxed charges then pick up your default tax group, and SAP charges ITBIS you never billed. A credit note more than 30 days after its invoice won't go to SAP at all until that group is set.
  • A deposit item with no tax. With DGII through SAP on, the deposit is filed without ITBIS, and the stay's ITBIS still goes down when the deposit is used. Give the deposit item the same tax category as the stays.
  • A SAP user that needs approval. Documents sit waiting in SAP. Have the user exempted.
  • Locking a large invoice for a customer with no ID. A consumer invoice of RD$250,000 or more must carry the customer's cédula, RNC or passport number. Suprata holds it back, with the reason on the invoice, until the number is on the customer's account.
  • Entering the same invoices in SAP by hand. That's a double count. Suprata sends them; don't re-key them.
  • Correcting an invoice by editing it when the customer already has it. Suprata can replace it in SAP, but the customer's copy is still the old one. If they've been given it, issue a credit note and a new invoice instead, so both sets of books and the customer agree (Crediting part of an invoice). With DGII through SAP on, unlocking a sent invoice is refused anyway.
  • Editing in SAP the customers and items Suprata sends. Suprata is the authority: the next change made in Suprata overwrites what was typed in SAP. Make the change in Suprata. (Customers and items SAP already had, and that you matched, are the exception — Suprata leaves those alone.)
  • Turning practice mode off before matching your items. Every unmatched item is created in SAP, and those copies stay there even if you match the item later.
  • Moving the start date backwards. Everything dated from it is sent, including what SAP already has in its opening balances.
  • Switching QuickBooks back on "just to check something". It's refused while SAP is on — one accounting system at a time.

Related articles