OData V2
OData V2 Part 1: The Classic OData V2 Service Model
Understand the classic OData V2 service model you will meet in existing SAP landscapes: service document, $metadata, entity sets, associations and navigation, V2 query syntax, JSON format and how V2 differs from V4.
A new developer familiar only with RAP V4 tried to add a filter to an old SEGW-based integration using contains(Description,'chair') and $count=true. The service returned errors, and he suspected a broken backend. A colleague showed him the V2 equivalents — substringof and $inlinecount=allpages — and the "d" wrapper in responses. The integration worked immediately. The team then added a V2/V4 cheat sheet to their wiki, since both protocols would coexist for years.
OData V2 Part 2: Deep Insert, Batch and Navigation Design
Design OData V2 navigation and write operations: associations and navigation properties, $expand, deep insert of header and items, $batch with change sets, and the implementation side in SEGW (CREATE_DEEP_ENTITY, changeset methods).
OData V2 Part 3: Production Troubleshooting — Gateway Logs and Metadata
Troubleshoot OData V2 services in production: collect the right evidence, use /IWFND/ERROR_LOG, /IWBEP/ERROR_LOG, /IWFND/GW_CLIENT, /IWFND/TRACES and ST22, fix metadata cache issues, and resolve typical status codes.
Interview questions covered
- What are the main differences between OData V2 and V4 for an SAP developer?
- A UI5 app creates a header and then its items in separate calls; failures leave orphan headers. How do you fix it?
- A new field was transported to a SEGW service but does not appear in the Fiori app in QAS. What do you do?
- How do you implement deep insert and changesets in a SEGW service?
- Which Gateway tools do you use to troubleshoot OData V2 incidents, and for what?
How to study OData V2
OData V2 has 3 lessons (3 intermediate) with about 23 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 13 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.
- A new field is in the SEGW model, but $metadata in QAS does not show it. What is the first action?
- Which V2 filter finds entities whose Description contains "chair"?
- Which query option returns the total number of matching entities in OData V2?
- An OData update returns 500 in production but works for developers. Where do you look first?
- Header and items must be created together or not at all in a SEGW service. What should be implemented?
- Which HTTP header must a client fetch before sending POST requests to a V2 service?
- A client wants to change only the Description of an entity in V2. Which method is appropriate?
- In a V2 $batch request, where must modifying operations be placed to run as one unit?
- Generic $expand of items for 200 headers causes 200 item selects. What improves it?
- How is a V2 JSON response for an entity collection structured?
- Where should COMMIT WORK happen in a SEGW service processing a changeset?
- Which transaction shows failed OData requests on the gateway with error details and replay?
- For a new transactional OData service on S/4HANA, which approach is recommended?