Overview & Prerequisites
Integrating SAP Business One: the two paths pull and push, prerequisites, transfer, way back, error patterns and checklist.
SAP Business One remains the leading system for master data, invoicing, payments and clearing. Bilendo takes over receivables management and receives from SAP Business One:
Customers (master data): customer number, name, billing address, contact person, payment terms, email
Open and cleared items (transaction data): invoices, credit memos and incoming payments, the open amount and the clearing date already calculated
Open, undelivered orders (optional)
The fields are in the architecture SAP Business One. The rules for keys, clearing, orders and delta runs are on the page SAP Business One Import; they apply to both paths.
Two paths to the data: pull and push
Pull: A Bilendo data handler reads the data from your SAP Business One and hands it to the Bilendo import. It is set up per customer project and accesses the company database with a read-only SQL query; where no database access is possible, through the Service Layer (HTTPS). You provide the access; the access data is stored securely.
Push: You or your integration partner run the query yourselves and deliver the result to Bilendo as a file, one flat table per category (CSV with header row, UTF-8). The files reach Bilendo over SFTP and are processed there by the batch import; see Transfer.
Both paths deliver the same tables with the same keys. Which path applies to you is agreed with Bilendo at the start of the project.
Prerequisites
Technical user: a dedicated, read-only user (for push for your query, for pull for the data handler) with read permission on business partners (OCRD, CRD1, OCPR), journal entries (OJDT, JDT1), outgoing invoices and credit memos (OINV, ORIN), reconciliations (ITR1, OITR), the master tables for descriptions (OADM, OFPR, OCTG, OCRG, OSLP, OLNG, OCRY) and, if orders are wanted, sales orders (ORDR, RDR1). It needs no write permission.
Only for pull through the Service Layer: The Service Layer is reachable from outside over HTTPS with a valid certificate, and the firewall is open for the Bilendo addresses; Bilendo tells you the addresses at the start of the project.
Only for push: an SFTP access (Bilendo provides it, or you name your own server) and a schedule for your query.
Company: You agree with Bilendo the short code of the company (CompanyCode), which appears in every row and never changes.
Transfer
For push you deliver one file per category (customers, items, optionally orders) with a header row, UTF-8, a consistent separator, amounts with two decimals, dates as ISO dates or DD.MM.YYYY. Place complete files only (write elsewhere, then move). Bilendo fetches the files every 15 minutes, processes one file per company at a time in the order customers before items and deletes a file after the import. An error (unknown file, aborted import) is sent by email to your technical contacts. The basics are in the Marketplace under Batch import and SFTP. For pull the data handler takes care of query and hand-over; you see the result in the import.
Schedule
Recommended: customers once a day, journal entries (open and cleared items) once to three times a day, orders with every journal run as a complete snapshot. You agree the exact schedule with Bilendo.
Dunning level and way back
Dunning level and dunning block have no standard field in SAP Business One. Writing the dunning level back from Bilendo to SAP Business One is not part of the standard scope; if you need it, agree field, path and permissions with Bilendo in the project. If you keep the dunning level in SAP Business One in a user-defined field, Bilendo can read it as a custom field. Without a way back the dunning level in SAP Business One stays unchanged; Bilendo runs the dunning.
Test and go-live
The first import runs against an SAP test environment. Check whether documents and payment status are assigned correctly and whether keys and clearing arrive as the page SAP Business One Import describes them.
Before go-live, clarify who sends dunning notices from now on. Bilendo takes over dunning; switch off the dunning run in SAP Business One for the connected companies so that your customers do not receive duplicate dunning notices.
Go-live requirement: at least one processed file or one processed run within the last seven days.
Error patterns
Duplicate in the batch: A key occurs twice in one delivery; Bilendo does not accept the row. Check that the joins are condensed to one row per key.
Wrong order: An item points to a customer Bilendo does not know yet. Deliver a run's customers before its journal entries.
Line_ID shifted: A manual posting (TransType 30) was changed afterwards; the key of the item changes. Clarify before the first extraction.
Cleared without reconciliation: A row has OpenAmount 0 but no ReconNum; it stays an open item. Check the join on ITR1/OITR.
File not processed: unknown format, unknown CompanyCode or incompletely placed file; a notice arrives by email.
Checklist
Path decided: pull (data handler) or push (your query, file over SFTP)
Technical user with read permissions on the tables named
Company short code (CompanyCode) agreed
For pull through the Service Layer: HTTPS, certificate, firewall for the Bilendo addresses
For push: SFTP access, file format, schedule
Look-back period for cleared items agreed (usually 24 months)
Joins and field names confirmed on your instance by your SAP partner
Way back for the dunning level: yes or no
Test import checked, dunning run in SAP Business One switched off