ERPClimb logoERPClimb
SAP Gateway
RAP / CDS / ODataintermediate 8 min read

SAP Gateway Part 2: Frontend, Backend and Request Flow

Preview · a free account unlocks the full lesson

Key takeaway

Follow an OData request through Gateway step by step — ICF, frontend, system alias, backend, data provider — and understand where authentication, CSRF, authorization, caching and errors are handled.

In this lessonShow sections

Explanation

A request flows from the client, through an ICF node, into the Gateway frontend, through a system alias, into the backend and its service implementation, and back as a response. Authentication happens at the ICF layer, while CSRF checks and service authorization happen in the Gateway frontend. In SEGW-based services, each operation maps to a specific DPC_EXT method, such as GET_ENTITYSET, GET_ENTITY or CREATE_ENTITY. Knowing which step you're at tells you exactly where to look when a request fails.

Part 1 introduced Gateway in general terms; this part traces one concrete request end to end: GET /sap/opu/odata/sap/ZPURCHREQ_SRV/PurchaseRequestSet?$top=20.

The request first hits ICF. The ICF node /sap/opu/odata, and the service node beneath it, must be active in SICF for anything to happen at all. Authentication takes place here — user and password, SSO via SAML or Kerberos, or an X.509 certificate, depending on configuration. A failure at this step shows up as a 401, or as a 404 or 403 if the node itself is inactive.

Next comes the Gateway frontend, /IWFND. It identifies the service and version from the URL, checks service authorization — the user needs start authorization for this specific service via S_SERVICE through a role that includes the service's entry — handles CSRF for any modifying request, reads metadata from cache or requests it from the backend if needed, and unpacks a $batch request into its individual operations.

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.