ARCHITECTAdvanced
OData Gateway
Master SAP Gateway OData with SEGW, service registration, metadata, CRUD, filters, paging, deep entity, batch, debugging, error handling and Fiori integration.
Overview
Master SAP Gateway OData with SEGW, service registration, metadata, CRUD, filters, paging, deep entity, batch, debugging, error handling and Fiori integration.
Lessons in this topic
- GET_ENTITY and Key HandlingRead a single entity using key values and handle conversion exits correctly.
- Gateway Error Handling and Message ContainerReturn meaningful OData errors using Gateway exceptions and message container.
- Gateway Architecture: Hub, Embedded, Frontend and BackendUnderstand how SAP Gateway sits between Fiori/UI clients and ABAP backend business logic.
- SEGW vs RAP for ODataWhen to use classic vs modern.
- Batch, $expand and Deep InsertEfficient OData patterns for Fiori.
- CREATE_ENTITY, UPDATE_ENTITY and DELETE_ENTITYImplement write operations safely with payload reading, validation, BAPI calls and error messages.
- SEGW Project: Entity Type, Entity Set and Service RuntimeLearn the basic SEGW building blocks used to expose SAP data as OData.
- Service Registration, Metadata and Gateway Client TestingActivate, register and test OData services using /IWFND/MAINT_SERVICE and /IWFND/GW_CLIENT.
- GET_ENTITYSET with Filters, Paging and SortingImplement list APIs properly using filters, $top, $skip and efficient Open SQL.
- OData Debugging: External Breakpoints, Error Logs and PayloadDebug OData services using external breakpoints, Gateway logs and runtime request context.
Interview questions covered
- How do you implement $filter on an entity set?
- A Fiori app calls your OData service but your breakpoint is not stopping. What would you check?
- An OData list service is slow and returns thousands of records. How would you improve it?
- What is the difference between entity type and entity set in OData?
- What is a deep insert?
- A material detail service returns not found for material 12345, but the material exists in SAP. What could be wrong?
- External partner requires OAuth2 on OData. Approach?
- How do you design a maintainable SEGW OData service?
- What is OData?
- Where do you check errors for a failing OData service?
- OData call returns 500 error with no useful message. What do you check?
- OData service is slow for large lists. Options?
- When would you pick RAP over SEGW?
- How would you expose a custom entity to Fiori using SEGW?
- When would you choose RAP/CDS OData over classic SEGW?
- What is SEGW?