OData Gateway Part 4: Gateway Architecture — Hub vs Embedded
Preview · a free account unlocks the full lesson
Understand how SAP Gateway is split into a frontend (IWFND, service registration, HTTP handling) and a backend (IWBEP, your MPC/DPC code), how hub and embedded deployments differ, how system aliases and trusted RFC connect them, and what SAP recommends for S/4HANA.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 3 built services; before registering and testing them in Part 5, it helps to understand where each piece actually runs. Gateway has two layers: the frontend (IWFND) receives HTTP requests and handles registration, caching, and routing, while the backend (IWBEP) runs your model (MPC) and data provider (DPC) code.
Both layers live inside SAP_GWFND, available since NetWeaver 7.40 — the frontend transactions are the /IWFND/ ones, such as MAINT_SERVICE, GW_CLIENT, ERROR_LOG, TRACES, and CACHE_CLEANUP, while the backend side is /IWBEP/, covering the model and data provider classes, /IWBEP/ERROR_LOG, and backend cache cleanup.
In an embedded deployment, frontend and backend sit in the same system, typically S/4HANA, with the system alias usually set to LOCAL — this gives a simpler landscape, no RFC hop, and one place to check logs, and the Fiori launchpad may run in the same system too.
In a hub deployment, a separate frontend server (FES) runs the Fiori launchpad and UI5 apps, connecting to one or more backends (ECC, S/4HANA, CRM) via trusted RFC; this gives a single entry point for several backends and lets the UI's lifecycle move independently of backend upgrades, though the service code (MPC/DPC) still lives in the backend while registration and HTTP handling happen in the hub.
For S/4HANA, SAP recommends the embedded deployment for Fiori, but hub deployments still exist in many landscapes, so it's important to know which one you're working in before you start debugging.
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
Interview questions on this topic
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
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.