Before you start
The Service Layer runs on your SAP Business One server (or at your SAP partner’s cloud). Ask your IT team or SAP partner to:- Make the Service Layer reachable from the internet for Nekt. Nekt connects to it over HTTPS, by default on port 50000 (for example
https://sap.yourcompany.com:50000/b1s/v2). Open the firewall or port forwarding for Nekt’s IP addresses, or publish the Service Layer through a reverse proxy. Contact Nekt support to get the IP addresses. - Create a user for Nekt (recommended) with read access to the objects you want to sync, under Administration > System Initialization > Authorizations > General Authorizations. Business partners, items, sales and purchasing documents, incoming and outgoing payments, journal entries and the setup tables each have their own authorization.
- Check the TLS certificate. The SAP installation creates a self-signed certificate for the Service Layer. Nekt verifies certificates by default, so a certificate issued by a trusted authority for the address you give Nekt is recommended. If that is not possible, see Verify TLS Certificate below.
Configuring SAP Business One as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the SAP Business One option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
The following configurations are available:-
Service Layer URL: The address of your Service Layer as Nekt reaches it over the internet, ending in
/b1s/v2(or/b1s/v1on versions older than 10.0). For example:https://sap.yourcompany.com:50000/b1s/v2. Only HTTPS addresses are accepted. -
Company Database: The database name of the company to read, as shown in the Database Name column of the company selection screen (for example
SBO_MYCOMPANY), not the company’s display name. - User Name and Password: The SAP Business One user the connector signs in with.
- Start Date: (Optional, advanced) Only read records created or changed on or after this date (documents, business partners, items) or posted on or after it (payments, journal entries). Leave it empty to read the whole history. For companies with many years of data, setting a start date is recommended: the first load of journal entries alone can take hours.
- Lookback Days: (Optional, advanced) Days re-read before the last sync position on every incremental run, to catch changes saved late. Default: 2.
- Page Size: (Optional, advanced) Records requested per call to the Service Layer. Default: 100. Lower it if your Service Layer times out on documents with many lines.
- Verify TLS Certificate: (Optional, advanced) On by default. Turn it off only if your Service Layer still uses the self-signed certificate created by the SAP installation and you cannot replace it. The connection stays encrypted, but Nekt can no longer confirm it is talking to your server, and every sync logs a warning.
2. Select streams
Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. You can select entire groups of streams or pick specific ones.Tip: The stream can be found more easily by typing its name.Select the streams and click Next.
3. Configure data streams
Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.- Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
- Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
- Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
- Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
- Incremental: every time the extraction happens, we’ll get only the new data, which is good if, for example, you want to keep every record ever fetched.
- Full table: every time the extraction happens, we’ll get the current state of the data, which is good if, for example, you don’t want to have deleted data in your catalog.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while. A periodic full sync is useful here: it refreshes business partner balances and item quantities, picks up edits to older payments and journal entries, and removes lines deleted from open orders and quotations.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.How data is kept up to date
- Documents, business partners and items are read by their last update date (
update_date). The last synced day and the lookback days before it are always read again. - Documents that change status later (an order closed by a delivery, an invoice paid, cancelled or reopened) are covered even when SAP does not change their update date: every run lists the open documents with a light request and reads again the ones that opened or closed since the previous run. For invoices, credit memos and down payments it also reads again the ones whose paid amount changed (partial payments).
- Orders, quotations and other documents copied into new documents are read again when a later document is created from them (for example, a partial delivery of an open order changes the order’s open quantities and line status). The connector reads again the source document named on the lines of each new or changed document, in the same run when possible, otherwise on the next run. Only the document streams you selected are refreshed this way.
- Payments and journal entries have no update date in the Service Layer. New ones are read by their internal number; payments cancelled after they were synced are detected and read again. Other edits to payments and journal entries made after they were synced (remarks, references, user-defined fields, payment block, due dates of journal entry lines) only reach your tables on a full sync.
- Setup tables, item prices and stock per warehouse are read in full on every run, so they always show the current values.
- If the user loses access to an object, or the Service Layer keeps failing, the run fails with a message saying what to fix. It never finishes successfully with data missing.
current_account_balance and the open balances) and quantities on items (quantity_on_stock and similar) change with every transaction without changing the record’s update date. In incremental syncs they show the value of the last time the record itself changed. Use item_warehouse_stock for current stock, and open invoices for current receivables.Streams and Fields
Available streams
The table below lists every stream, its slug (the exact identifier to pass when creating the source via API) and a short description.Fields by stream
Every stream has the standard fields of its SAP Business One object (several hundred on documents, business partners and items), named in snake_case:DocTotal becomes doc_total, CardCode becomes card_code. Dates come as YYYY-MM-DD (the business date in SAP, with no time zone), times as HH:MM:SS text, amounts as decimal numbers, and SAP enumerations keep their SAP values (for example tYES/tNO, bost_Open/bost_Close). Two fields are common to all streams:
user_fields- Your company’s user-defined fields (UDFs, the fields whose names start withU_) as a JSON object, for example{"U_Segment": "Retail"}.other_fields- Fields returned by the Service Layer that have no column of their own (for example fields added in newer SAP Business One versions), as a JSON object.
Sales and purchasing documents (quotations, orders, deliveries, returns, invoices, credit memos, down payments)
Sales and purchasing documents (quotations, orders, deliveries, returns, invoices, credit memos, down payments)
doc_entry. Incremental key: update_date.doc_entry- Internal key of the documentdoc_num- Document number shown in SAP Business Oneseries- Numbering series of the documentdoc_date,doc_due_date,tax_date- Posting, due and document datescard_code,card_name- Customer or vendordoc_total,doc_total_fc,doc_total_sys- Document total in local, foreign and system currencyvat_sum- Tax amountpaid_to_date- Amount already paid or cleareddoc_currency,doc_rate- Currency and exchange ratedocument_status- Open or closed (bost_Open,bost_Close)cancelled,cancel_status- Whether the document was cancelledsales_person_code- Sales employee (seesales_persons)payment_group_code- Payment terms (seepayment_terms_types)bpl_id_assigned_to_invoice,bpl_name- Business place (branch)sequence_code,sequence_serial,series_string,sequence_model- Nota Fiscal numbering (Brazil)tax_extension,address_extension- Tax, transport and address details (JSON)comments,num_at_card- Remarks and the customer’s or vendor’s reference numbercreation_date,update_date,update_time- When the document was created and last updatedextracted_at- When the connector read the document (shared with its lines and installments)
Document lines (quotation_lines, order_lines, invoice_lines and the other *_lines streams)
Document lines (quotation_lines, order_lines, invoice_lines and the other *_lines streams)
doc_entry + line_num.doc_entry,line_num- Document and line numberitem_code,item_description- Itemquantity,price,unit_price,discount_percent- Quantity, price and discountline_total- Line total before taxwarehouse_code- Warehouseaccount_code- G/L accountcosting_codetocosting_code5,project_code- Distribution rules (cost centers) and projecttax_code,tax_total- Tax code and amountline_status- Open or closedbase_type,base_entry,base_line- Document the line was copied from (for example the order of an invoice line)cfop_code,ncm_code,cst_for_pis,cst_for_cofins,cst_for_ipi- Brazilian tax codesupdate_date- Last update date of the document the line belongs toextracted_at- When the connector read the line’s document: lines whose value differs from their document’s were removed in SAP
Document installments (invoice_installments and the other *_installments streams)
Document installments (invoice_installments and the other *_installments streams)
doc_entry + installment_id.doc_entry- Documentinstallment_id- Installment numberdue_date- Due date of the installmenttotal,total_fc- Installment amount in local and foreign currencypercentage- Share of the document totalpayment_ordered- Whether the installment was already included in a payment run
Incoming and outgoing payments
Incoming and outgoing payments
doc_entry. Incremental key: doc_entry (new payments get higher numbers).doc_entry,doc_num- Internal key and number of the paymentdoc_date,due_date,tax_date- Posting, due and document datescard_code,card_name- Customer or vendorcash_sum,transfer_sum,check_account,transfer_account- Amounts and accounts by payment methoddoc_currency,doc_rate- Currency and exchange ratecancelled- Whether the payment was cancelledpayment_checks,payment_credit_cards,payment_accounts- Payment method details (JSON)bplid,bpl_name- Business place (branch)
Documents settled by payments (incoming_payment_invoices, vendor_payment_invoices)
Documents settled by payments (incoming_payment_invoices, vendor_payment_invoices)
payment_doc_entry + line_num.payment_doc_entry- The payment (join todoc_entryof the payment stream)doc_entry- The settled document; its type is ininvoice_type(for exampleit_Invoicefor an A/R invoice)installment_id- Installment of the settled documentsum_applied,applied_fc,applied_sys- Amount applieddiscount_percent,total_discount- Cash discount
Journal entries and lines
Journal entries and lines
journal_entries: one row per entry, primary and incremental key jdt_num (the transaction number). journal_entry_lines: one row per line, primary key jdt_num + line_id.jdt_num- Transaction numberreference_date,due_date,tax_date- Posting, due and document datesmemo,reference,reference2,reference3- Remarks and referencesoriginal_journal,original,base_reference- Transaction that created the entry (for example an A/R invoice)project_code- Project- Lines:
account_code,short_name,debit,credit,fc_debit,fc_credit,contra_account,costing_codetocosting_code5,bplid,line_memo
Business partners
Business partners
card_code. Incremental key: update_date.card_code,card_name,card_foreign_name- Code and namescard_type- Customer, vendor or leadgroup_code- Group (seebusiness_partner_groups)federal_tax_id- Federal tax IDphone1,email_address,city,county,country- Contact datapay_terms_grp_code,price_list_num,sales_person_code- Default payment terms, price list and sales employeecredit_limit,current_account_balance- Credit limit and balancebp_addresses,contact_employees,bp_fiscal_tax_id_collection,bp_bank_accounts- Addresses, contacts, tax IDs (CNPJ, CPF and state registration in Brazil) and bank accounts (JSON)create_date,update_date- When the record was created and last updated
Items, item prices and stock per warehouse
Items, item prices and stock per warehouse
items: one row per item, primary key item_code, incremental key update_date. item_prices: primary key item_code + price_list. item_warehouse_stock: primary key item_code + warehouse_code.item_code,item_name,foreign_name- Code and namesitems_group_code- Item group (seeitem_groups)inventory_item,sales_item,purchase_item- Item type flagsinventory_uom,sales_unit,purchase_unit- Units of measurencm_code- NCM code (Brazil)valid,frozen- Active and blocked flags- Prices:
price_list,price,currency - Stock:
warehouse_code,in_stock,committed,ordered,minimal_stock,maximal_stock,standard_average_price
Setup tables
Setup tables
chart_of_accounts.code, warehouses.warehouse_code, item_groups.number, sales_persons.sales_employee_code, payment_terms_types.group_number, profit_centers.center_code, distribution_rules.factor_code, projects.code, business_partner_groups.code, business_places.bplid, price_lists.price_list_no.- Chart of accounts:
code,name,account_type,active_account,father_account_key,balance,acct_currency - Payment terms:
group_number,payment_terms_group_name,number_of_additional_days,number_of_installments - Profit centers and distribution rules:
center_code,center_name,in_which_dimension,factor_code,factor_description