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.


Humans and AI

SAP KI Vision: The Autonomous Enterprise

Hardly a week goes by without the announcement of more intelligent language models, new co-pilots or more powerful AI agents. Nevertheless, SAP CEO Christian Klein states in...
Crystal Reports for AI

Crystal Reports on AI

Anyone developing their own reports in SAP Business One quickly encounters the same problem: The B1 database schema is extensive, Crystal Reports has...
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 ...
Wird geladen …