13 october

Webhook (SAP Business One)

Versino Financial Suite

On Webhook (SAP Business One) is an automatic notification that the Service Layer from SAP Business One to an external application at a specific event in the system. SAP has supported Webhooks in the Service Layer since SAP Business One 10.0 Feature Package 2602.

Functionality

An event occurs when a business object is created or modified, for example via the Service Layer, the DI API, or the client. The Webhook Messenger Service runs as a background service behind the Service Layer and provides the notifications. To do this, it sends an HTTP POST to the stored Webhook URL. In its basic format, the notification only contains the object key, such as the DocEntry of an invoice. Multiple events can arrive in a single request.

Furnishings

Webhooks are disabled by default for each client. They are initially enabled, and the receiving application provides an endpoint. An event subscription is then created. The subscription contains the webhook URL (HTTPS), the authentication type (None, Basic, HMAC, or OAuth), and the list of events. An event catalog lists the supported events per business object. For customer orders, these include creating, modifying, deleting, closing, canceling, and reopening. The catalog includes system objects as well as custom objects and tables. Normal users are not allowed to manage subscriptions by default. Permission is granted through the general permission „Webhook Manipulation“.

Delivery and error handling

The messenger works asynchronously and therefore does not block SAP Business One. In the event of temporary errors, it automatically repeats delivery at increasing intervals. It maintains the order within a given client as best it can. If a webhook fails permanently, the system automatically disables it. It then has to be reactivated via resume. Through Replay, the service provides missed notifications after. Recipients should therefore recognize duplicate notifications and detect deviations in the order.

Extensions with Feature Package 2608

With Feature Package 2608, Webhooks provide more context. BizObjProps sends selected fields directly with the event instead of just passing the key. This reduces the number of subsequent requests. DeliveryDetails provides status information about delivery and errors directly in the payload. FilterExpr triggers an event only when defined conditions are met. The kontextvariable app.Name recognizes the calling application.

Reference to SAP Business One

The service layer thus evolves from a mere data provider to an event-driven system. External applications receive an immediate notification of changes, instead of having to retrieve data only upon request. At the same time, the new filtering logic replaces part of the connection code previously required in the middleware.

Demarcation

A webhook differs from an OData query. With the OData query, the application requests data. With the webhook, the service layer itself reports an event. Webhooks are regular, productive functions of the service layer. The example project for the Model Context Protocol published with Feature Package 2608 (MCP) is, however, a reference material and not a finished product.


 

SAP Business One Shop

Shopware 6 for SAP Business One

The Versino Shopware 6 interface for SAP Business One is a powerful solution for connecting Shopware and SAP Business One.
SAP Business One and DATEV Synchron

SAP Business One and DATEV - Synchronised

The development of the Versino Financial Suite began several years ago as an interface to the DATEV financial system. Initially, we implemented a ...
PEPPOL integration in SAP Business One

DATEV and SAP Business One Export & Import

The export and import of data between DATEV and SAP Business One was a major issue with the increasing spread of SAP B1 ...
Vorteile-E-Rechnung-2025

Electronic invoices to authorities

More and more electronic invoices are being sent worldwide. Numerous different formats have emerged. Here then lies the problem. It...
SAP Business One Booking of shipping & freight

SAP Business One Connect for carriers

With the SAP Business One Integration Hub, SAP Business One users can quickly and easily dock to cloud-based services and applications ...
CAD ERP connector for SAP Business One

CAD/ERP Connector for SAP Business One

SAP Business One is also widely used by manufacturing companies. Of course, this is also thanks to a number of PPS add-ons ...
Wird geladen …