ERPClimb logoERPClimb

SAP RAP / CDS / OData Service Bindings Interview Questions

In SAP RAP / CDS / OData rounds, service bindings questions are where configuration knowledge meets day-to-day behaviour — what a setting does, and what breaks in a live system when it is wrong.

Understand RAP service bindings as the runtime exposure layer that binds a service definition to OData or another supported protocol. Learn activation, publish/test flow, metadata validation, preview, authorization and deployment considerations.

This page carries 11 reviewed SAP RAP / CDS / OData service bindings interview questions, each with a complete written answer and no sign-in required. The set breaks down into 3 foundational, 5 mid-level and 3 advanced questions, so you can start at the top for a first interview or skip ahead to the scenario-based items for a senior round.

Rehearse these out loud rather than reading them. If you can explain each answer in your own words, including one realistic way it goes wrong on a project, you are covering what a normal SAP RAP / CDS / OData round on service bindings expects.

11 Service Bindings questions with answers

easyService Bindings

1. What is the difference between a service definition and a service binding in RAP? Can one service definition have several bindings?

The service definition decides WHAT is exposed: which projected entities form one service and their external names (expose ZC_PurchReq as PurchaseRequest). It is protocol-neutral and contains no logic. The service binding decides HOW and for WHOM: it binds one service definition to a protocol and purpose — OData V4 UI, OData V4 Web API, OData V2 UI/Web API — and, once published, registers it in the OData runtime so it gets a URL. Yes: one service definition can have several bindings, e.g. a V4 UI binding for a new app and a V2 binding for a legacy consumer. A binding always points to one service definition (per service version). Neither contains behavior: fields come from the projection, logic from the BDEF and behavior pool.
easyService Bindings

2. Your RAP list report works in preview, but the object page shows no Items section and adding an item fails. The behavior definition supports items. What is the most likely cause?

The child projection (ZC_PurchReqItem) is most likely not exposed in the service definition. Without it, the _Item navigation has no target entity set, so Fiori Elements cannot show the Items facet and create-by-association fails. Check: 1. Service definition contains expose ZC_PurchReqItem as PurchaseRequestItem. 2. Projection root has _Item : redirected to composition child ZC_PurchReqItem, and the child has _Request : redirected to parent. 3. Projection BDEF has use association _Item { create; } (with draft if draft-enabled). 4. $metadata shows NavigationProperty _Item and an entity set for items. 5. Metadata extension has a UI.facet of type #LINEITEM_REFERENCE with targetElement '_Item'. After fixing, reactivate definition and binding and clear the metadata cache.
easyService Bindings

3. You activated a new service binding and sent the URL to the UI developer, who gets HTTP 404. What is the difference between activating and publishing a binding, and how do you fix it?

Activating compiles the binding as a repository object and proves the service definition and projections are consistent. Publishing registers the service in the OData runtime (SAP Gateway) of this system, so HTTP requests to its URL are routed to the business object. An activated but unpublished binding returns 404. Fix: open the binding in ADT, click Publish (Publish local service endpoint). Then verify: • The editor shows the Service URL — copy it instead of typing. • OData V4: the service group is visible in /IWFND/V4_ADMIN; V2: the service in /IWFND/MAINT_SERVICE. • GET <url>$metadata returns 200 in /IWFND/GW_CLIENT. If Publish fails with an authorization error, a Gateway administrator must grant the rights or publish.
mediumService Bindings

4. How do you test a newly published RAP OData V4 service end to end before handing it to the UI team?

Order of tests: 1. $metadata in /IWFND/GW_CLIENT — 200, entity types, keys (IsActiveEntity for draft), navigation properties, actions present. 2. Read: GET list with $top/$select, single instance by key, $expand=_Item. 3. Query features: $filter, $orderby — served by CDS. 4. Binding preview: list report and object page, create a request with items (draft), Save (activation), edit, validation message on a missing field. 5. Actions and feature control: action buttons appear and are enabled/disabled by status. 6. Negative tests: missing authorization (with a business-role user, not SAP_ALL), ETag conflict (412). 7. Check /IWFND/ERROR_LOG and /IWBEP/ERROR_LOG afterwards. Document the service URL and results. A successful test does not prove other users' roles, QAS/PRD publication or production performance.
mediumService Bindings

5. What belongs in the transport of a RAP app, what must be done per system, and how is user access granted on-premise vs in the ABAP cloud environment?

In the transport/software component: tables and draft tables, number range, authorization and lock objects, CDS views, metadata extensions, DCLs, BDEFs, behavior pools, service definition and binding; in the cloud also IAM app, business catalog and communication scenario. Per system: publication of the service (release-dependent on-premise), user-to-role assignments, launchpad content assignments, SICF/system alias; in the cloud: business roles, communication systems, users and arrangements per tenant. Access on-premise: PFCG role with the service start authorization (S_SERVICE via the service entry) plus business authorization objects; launchpad catalog/space and target mapping for the tile. Access in the cloud: UI service → IAM app → business catalog → business role; Web API → communication scenario → communication arrangement with a communication user. Keep environment-specific values in destinations/arrangements, never in code.
mediumService Bindings

6. An integration team wants to use your Fiori UI service for system-to-system approvals. Would you let them? What is the difference between an OData V4 UI and Web API binding?

No — build a separate API service on the same business object. UI binding: publishes UI annotations, used with draft (IsActiveEntity in the key, create produces drafts that must be activated), changes together with the app. Web API binding: no UI annotations, meant for programs, stable contract, access via communication scenario in the cloud. Problems if the UI service is reused: the integration must handle Edit/Activate, failed activations leave orphan drafts that lock requests for users, and UI-driven field changes break the integration. Solution: API projection (ZA_ views) with only contract fields, a projection BDEF without "use draft" and only allowed operations (e.g. no delete), service definition ZAPI_..., binding OData V4 – Web API. Both services run the same BO logic, validations and authorization.
mediumService Bindings

7. You changed a UI annotation in a metadata extension and activated it, but the Fiori app still looks the same. What do you do?

Most likely stale metadata cache. Clear caches from the backend outwards: 1. Verify the backend first: open <service URL>$metadata and check whether the annotation (e.g. UI.LineItem entry) is there. If it is missing, the problem is not cache: wrong projection, metadata extension not active, @Metadata.allowExtensions missing, or wrong layer. 2. If $metadata is correct but the app is not: OData V4 — clean the metadata cache for the service group in /IWFND/V4_ADMIN; OData V2 — /IWBEP/CACHE_CLEANUP and /IWFND/CACHE_CLEANUP. 3. Browser and launchpad: reload with cache disabled in developer tools or clear the browser cache; your organization may run UI5 cache invalidation after deployments. 4. Only if still stuck in DEV: unpublish and republish the binding. If the issue survives cleared caches, stop clearing and analyze the request and annotation instead.
mediumService Bindings

8. The Approve action works in EML tests, but the button does not appear in the Fiori Elements app. How do you analyze it, and what controls whether the button is enabled?

Fiori Elements renders from $metadata, so check it: 1. Is there an Action element "approve" bound to the entity? If not, the action is missing in the projection BDEF (use action approve;) or the service uses a different projection. 2. Is there a UI.LineItem or UI.Identification entry of type DataFieldForAction for approve? If not, the #FOR_ACTION annotation is missing — or placed in the metadata extension of another projection (e.g. the API projection). 3. Clear the metadata cache if both look correct but the UI is stale. The button needs both: the projection BDEF entry and a #FOR_ACTION annotation (lineItem for the list/table toolbar, identification for the object page header). Enabled or disabled state is not coded in the UI: it comes from instance feature control (get_instance_features returning %action-approve enabled only in status Submitted). Authorization can additionally reject the action for the user.
hardService Bindings

9. A RAP service works in DEV. After transport, QAS users get 404 and some get 403. What do you check, in which order?

404 first — service not reachable in QAS: 1. Transport imported completely (projection, BDEF, service definition, binding) and binding active. 2. Service published in QAS — on many on-premise releases publication does not come with the transport: V4 in /IWFND/V4_ADMIN, V2 in /IWFND/MAINT_SERVICE. 3. SICF nodes /sap/opu/odata4 (or /odata) active, system alias correct, URL copied correctly. Then 403 — reachable but not allowed: 4. SU53 or STAUTHTRACE for an affected user: missing S_SERVICE start authorization for the service → add the service to the PFCG role. 5. Business authorization checked by the BDEF (e.g. ZPR_REQ) and user-to-role assignments in QAS. 6. For non-UI5 clients: CSRF token. Cloud equivalent: business role with the IAM app, or communication arrangement for Web APIs. Afterwards add a post-import checklist: publish, $metadata with admin, list with business user, one end-to-end create, error logs.
hardService Bindings

10. When is OData V2 still justified for a RAP service, and how do you introduce a breaking change to a published Web API?

OData V4 is the default for new RAP services: strategic protocol, full draft support, current Fiori Elements floorplans, leaner payloads. V2 is justified only for a named consumer that requires it — an existing V2 UI5/Fiori Elements app not being rebuilt, or a tool/adapter supporting only V2. Add a V2 binding to the same service definition for that consumer and plan its retirement. Breaking changes (removing or renaming fields/entities, changing semantics) should not be made in place. Create a new service definition for the new contract and add it as a new service version in the binding (0002) on releases that support multiple versions; consumers migrate at their own pace, then 0001 is retired. Non-breaking additions such as a new optional field can stay in the existing version. Document the contract and communicate changes to consumers.
hardService Bindings

11. A Fiori RAP app fails for some users. Describe a systematic troubleshooting approach based on HTTP status codes.

Start with the failing request: browser developer tools (Network tab; for $batch read the inner response) or /IWFND/ERROR_LOG and /IWBEP/ERROR_LOG; replay in /IWFND/GW_CLIENT. Then branch on the status: • 404 service → publication in this system (/IWFND/V4_ADMIN or MAINT_SERVICE), URL, SICF, system alias. 404 entity → key, IsActiveEntity, read method. • 401 → authentication. 403 → SU53/STAUTHTRACE: S_SERVICE start authorization; business authorization in the BDEF; CSRF token for non-UI5 clients; in cloud business role or communication arrangement. • Empty list without error → usually a CDS access control filtering correctly. • 400 → payload vs $metadata. 412 → ETag mismatch, correct behavior, reload. 428 → missing If-Match. • 500 → ST22 dump, then debug; or metadata inconsistency (reactivate CDS → DDLX → BDEF → SRVD → SRVB, check /IWBEP/ERROR_LOG). • Change not visible → caches, backend first. "Some users only" strongly suggests authorization.

Related lesson

Service Bindings Part 2: Create, Activate, Publish and Test in ADT

Related topics

Next practice step

Go deeper on this topic