28 apr

Service Layer v1 vs. v2


E-invoicing in Germany: How to implement the obligation with SAP Business One

Of the Service Layer is the modern, HTTPS-based REST interface of SAP Business One. It provides the ERP system's data objects as an OData service and is offered in two protocol variants: v1 under the path /b1s/v1/ based on OData Version 3, v2 under /b1s/v2/ on OData version 4. Technically, it is the same service, which simultaneously delivers two URL endpoints with different metadata models.

Context

Since Feature Package 2405, OData v3 is considered deprecatedSAP strongly recommends migrating to v2, as only this version will receive new features, bug fixes, and long-term support. v2 utilises current OData functionalities such as Cross-Joins, Singleton entities, Delta Links and delivers significantly more precise error and metadata structures. For integrators, this means specifically: the login endpoint is POST /b1s/v2/Login, Pagination is via @odata.nextLink Instead of __next, and nested lines (e.g. DocumentLines) will be about $select included instead of over $expand. The EntitySets and Property names of DI API and Service Layer are identical, but the paths and method calls differ — those migrating from v1 will need to adjust JSON schema, error handling and query strings.

Demarcation

v1 remains available for compatibility reasons but should no longer be chosen for new developments. The Service Layer is not a replacement for the DI API (local COM component for high write loads) nor for UI API (SAP client control); it is the network-compatible, platform-independent alternative and runs on the service layer server of the HANA-based B1 installation. Cloud solutions such as Cloudiax exclusively use v2.


AI in the company

Why companies are hesitant about AI in ERP

Artificial intelligence in the ERP context raises high expectations, as significant productivity gains, far-reaching automation and more informed decisions are on the cards. Nevertheless ...
Predictive maintenance

Predictive maintenance: how to turn SMEs into smart factories

In today's intelligent world, the ability to solve problems before they even arise is no longer a futuristic scenario, but ...
RPA

RPA in the ERP environment: increasing efficiency through digital process assistants

Many ERP systems run processes on a daily basis that are necessary but do not add value. Employees spend valuable time processing orders ...
Generative AI in ERP

Generative AI in ERP: How LLMs are changing the role of ERP systems

With the advent of generative AI and large language models (LLMs), the role of ERP systems is changing fundamentally. Instead of ...
ERP FUTURE

Preparing the ERP future with APIs and microservices

Many medium-sized companies are still working with ERP monoliths that have grown over the years. The modules of these systems are closely ...
DATA-QUALITY

Data quality & AI : AI can only be as good as your data

Companies today are investing heavily in AI technologies, intelligent automation and modern ERP architectures. Despite this, many modernisation projects fail in the early stages because ...
Wird geladen …