ERPClimb logoERPClimb
OData Gateway
Architect / Cross-trackintermediate 6 min read

OData Gateway Part 4: Gateway Architecture — Hub vs Embedded

Preview · a free account unlocks the full lesson

Key takeaway

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 sections

Visual overview

OData Gateway Part 4: Gateway Architecture — Hub vs Embedded — learning sheetFlow: Check in your system whether /IWFND/MAINT_SERVICE shows alias LOCAL (embedded) or a remote alias (hub) → Open SM59 for the alias RFC destination if hub; note the trusted setting → Trace one request path for your Part 1 service → Write down where frontend and backend logs are for your landscape. Key ideas: COMPONENTS; EMBEDDED DEPLOYMENT; HUB DEPLOYMENT; SYSTEM ALIAS AND RFC. Watch out: For S/4HANA, SAP recommends embedded deployment for Fiori; hub deployments still exist in many landscapes — always know which one you are working in before debugging.ERPClimb.com / ARCH / LESSON 4/10 / LEARNING SHEETOData Gateway Part 4: Gateway Architecture — Hub vsEmbedded1 · HOW IT FLOWS1Check in yoursystem whether/IWFND/MAINT_SERVICE…2Open SM59 forthe alias RFCdestination if…3Trace onerequest path foryour Part 1…4Write down wherefrontend andbackend logs are…2 · KEY IDEAS EXPLAINEDComponentsSAP_GWFND (since NetWeaver 7.40) contains bothfrontend and backend components.Frontend: /IWFND/ transactions — MAINT_SERVICE,GW_CLIENT, ERROR_LOG, TRACES, CACHE_CLEANUP.Embedded DeploymentFrontend and backend in the same system; systemalias usually LOCAL.Simpler landscape, no RFC hop, one place for logs.Hub DeploymentSeparate frontend server (FES) with Fiorilaunchpad and UI5 apps; backends (ECC, S/4, CRM)connected via trusted RFC.One entry point for several backends; UI lifecycleseparate from backend upgrades.System Alias And RFCSystem alias = logical name pointing to an RFCdestination (SM59) with trusted connection (SMT1)so the user's identity is passed.Assigned per service in /IWFND/MAINT_SERVICE.3 · REMEMBER · WATCH OUTRememberGateway has two layers: the frontend (IWFND) receives HTTP requests,handles registration, caching and routing; the backend (IWBEP) runs…Embedded deployment: both layers in the same system (e.g. S/4HANA).Hub deployment: a separate frontend server (FES) routes to one or more…The system alias (SPRO / /IWFND/MAINT_SERVICE) tells the frontendwhich backend (RFC destination) serves a service.!Watch outFor S/4HANA, SAP recommends embeddeddeployment for Fiori; hubdeployments still exist in manylandscapes — always know which oneyou are working in before debugging.4 · IN A REAL PROJECTA Fiori app failed only in quality with "No system alias found for service". Developers checkedtheir DPC_EXT code for hours. The landscape was a hub: the service had been registered on the quality FES withthe development backend alias copied from a screenshot. Assigning the correct alias (pointing to the quality…Original ERPClimb learning sheet • Verify against your SAP release and edition

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.

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

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.