ERPClimb logoERPClimb
Login
All topics
RAP_CDS_ODATAadvanced

SAP Gateway

intermediate· 8 minOpen to everyone

SAP Gateway Part 1: Gateway as the ABAP OData Runtime

Understand SAP Gateway as the ABAP OData runtime: what it does, embedded vs hub deployment, how RAP and SEGW services both run on it, and which Gateway components you touch as a developer.

Real project relevance

A team's Fiori app failed after go-live with RFC errors, while it had worked in QAS. Production used a hub deployment; QAS was embedded. The service was registered on the hub but with the system alias of the wrong backend client. Once the team understood the hub architecture, they corrected the system alias in /IWFND/MAINT_SERVICE and cleaned both caches. They documented the deployment option of every landscape system, so that registration and troubleshooting steps matched the environment.

Open lesson page
intermediate· 8 minFree account

SAP Gateway Part 2: Frontend, Backend and Request Flow

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.

Open lesson page
intermediate· 9 minFree account

SAP Gateway Part 3: SEGW Model, Registration, Metadata and Transports

Walk through the SEGW service lifecycle: model entity types and sets, generate MPC and DPC classes, implement DPC_EXT, register the service in /IWFND/MAINT_SERVICE, check metadata, and transport everything consistently.

Open lesson page
advanced· 9 minFree account

SAP Gateway Part 4: Paging, Filtering, CSRF and Authorization

Implement Gateway services that behave well in production: server-side paging ($top/$skip), filtering and sorting via the request context, $inlinecount, CSRF handling, and authorization checks per operation.

Open lesson page

Interview questions covered

  • What is SAP Gateway, and how do embedded and hub deployments differ?
  • Trace an OData request through Gateway and say where each type of error originates.
  • A SEGW list service slows down as data grows. What do you check in GET_ENTITYSET?
  • When would you still use SEGW today, and how do you keep SEGW services maintainable?
  • A SEGW service works in DEV but returns 404 in QAS. What are the likely causes?

How to study SAP Gateway

SAP Gateway has 4 lessons (3 intermediate, 1 advanced) with about 34 minutes of reading in total. Start with the lesson that matches your level, then read the real project scenario and common mistakes in each one before moving on. After the lessons, say the 5 interview questions out loud in your own words, then check yourself against the model answer in each question (shown once you open it). Use the 14 mock questions to check recall.

Mock test questions covered

Try answering each one before you open the mock test; the answer options and scoring are in the Mock Questions tab.

  • Which method converts an OData $filter into an ABAP SQL WHERE clause in SEGW?
  • A UI shows "57 of 57" but the backend has 12,000 matching rows. What is wrong?
  • Where should custom code be implemented in a SEGW project?
  • Which DPC_EXT method handles GET /PurchaseRequestSet('4711')?
  • A client repeatedly gets 403 "CSRF token validation failed". What is the correct fix?
  • In a hub deployment, what connects the gateway frontend to the right backend?
  • What characterizes an embedded SAP Gateway deployment?
  • A mobile service returned 100,000 rows because the backend ignored $top. Which change fixes the root cause?
  • Which implementation of GET_ENTITYSET scales for large tables?
  • Which tool records the payload of requests for one specific user to analyze an intermittent issue?
  • How should a DPC_EXT method report a business error such as "supplier blocked"?
  • Users get 403 only for one plant, while CSRF and S_SERVICE are correct. Where is the cause most likely?
  • Paging with $top and $skip returns overlapping records between pages. What is missing?
  • A SEGW service works in DEV, but QAS returns 404 on the service root. What is the most likely cause?

Related topics

Interview questions on this topic

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.