ERPClimb logoERPClimb
Side-by-Side Extensions
Architect / Cross-trackintermediate 8 min read

Integration Patterns and Runtime Flow for Side-by-Side Extensions (Part 2)

Preview · a free account unlocks the full lesson

Key takeaway

Explains how side-by-side extensions built on BTP communicate with the S/4HANA core at runtime, covering synchronous and asynchronous integration patterns, authentication, and typical failure points.

In this lessonShow sections

Visual overview

Integration Patterns and Runtime Flow for Side-by-Side Extensions (Part 2) — learning sheetIn one line: Explains how side-by-side extensions built on BTP communicate with the S/4HANA core at runtime, covering synchronous and asynchronous integration patterns, authentication, and typical failure points.ERPClimb.com / ARCH / LESSON 2/3 / LEARNING SHEETIntegration Patterns and Runtime Flow for Side-by-SideExtensions (Part 2)1 · IN ONE LINEExplains how side-by-side extensions built on BTP communicate with the S/4HANA core atruntime, covering synchronous and asynchronous integration patterns, authentication, andtypical failure points.2 · KEY IDEAS EXPLAINED1Once an architect decides on a side-by-sideextension, the next critical design work isdefining how it integrates with the digital coreat runtime. There are two broad integrationstyles: synchronous request-response andasynchronous event-driven, and most non-trivial…2Synchronous integration typically uses ODataservices or REST APIs exposed by S/4HANA (eitherstandard released APIs from the SAP API BusinessHub catalog, or custom APIs built via RAP - theABAP RESTful Application Programming Model - inthe core for private cloud/on-premise systems)…3Asynchronous integration uses event-drivenpatterns: S/4HANA can emit business events (suchas a sales order being created or changed) via abroker, and the side-by-side extension subscribesto these events through an event mesh or messagingservice on BTP. This decouples the extension from…4SAP Cloud Connector is a key component when thecore system is on-premise or in a private network:it establishes a secure reverse-invoke tunnel fromBTP into the customer's network, allowingside-by-side apps to reach on-premise APIs withoutopening inbound firewall ports directly to the…3 · DO · AVOIDBest practice!Common mistakeChoose synchronous integration only whenimmediate response is functionally required…Design all event handlers to be idempotentusing a durable processed-event record or…Use principal propagation where fine-grainedbackend authorization matters, accepting the…✕Assuming event delivery is exactly-once whenmost eventing infrastructure only guarantees…✕Using a single broad technical user for allAPI calls instead of scoping authorizations…✕Not load testing the combinedcore-plus-extension flow, only testing each…4 · IN A REAL PROJECTA logistics company's side-by-side extension on BTP subscribes to goods-issue events from an S/4HANA privatecloud system to trigger a customs documentation workflow. During a peak shipping period, duplicate events wereredelivered by the event mesh due to a transient network blip, and the extension briefly generated duplicate…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Once an architect decides on a side-by-side extension, the next critical design work is defining how it integrates with the digital core at runtime. There are two broad integration styles: synchronous request-response and asynchronous event-driven, and most non-trivial extensions use a combination of both.

Synchronous integration typically uses OData services or REST APIs exposed by S/4HANA (either standard released APIs from the SAP API Business Hub catalog, or custom APIs built via RAP - the ABAP RESTful Application Programming Model - in the core for private cloud/on-premise systems). The side-by-side application, often built with CAP on BTP, calls these APIs directly for read or write operations.

This pattern suits scenarios where the extension needs an immediate response, such as validating stock availability before confirming a custom quote. The main runtime risks here are latency (every synchronous call adds network round-trip time to the user's perceived response), availability coupling (if the core API is down or slow, the extension's functionality degrades or fails), and authentication complexity, since calls must be authenticated and authorized end-to-end, typically via OAuth 2.0 client credentials or principal propagation through SAP Cloud Connector for on-premise systems, or direct OAuth trust for cloud-to-cloud calls.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.