One RAP business object must serve an existing OData V2 Fiori app and a new OData V4 app on SAP S/4HANA on-premise. How do you bind, publish and transport both services, and what differs between them?
Say your answer out loud first.
Practise another way
The business object and the service definition stay the same. I create two service bindings on one service definition, one OData V2 - UI and one OData V4 - UI. Publishing in ADT is local and for testing.
For quality and production, the V2 service is registered with a transport in /IWFND/MAINT_SERVICE, and the V4 service group is published in /IWFND/V4_ADMIN with a customizing request. New features land in V4; SAP keeps V2 supported, so the old app stays.
Model once, bind twice
RAP's behavior and CDS are protocol agnostic. SAP's Flight reference scenario binds the same service definition /DMO/UI_TRAVEL_D_D twice: /DMO/UI_TRAVEL_D_D_O2 (V2) and /DMO/UI_TRAVEL_D_D_O4 (V4). Naming follows SAP Learning: ..._UI_..._O2 and ..._UI_..._O4.
Publishing on-premise (SAP Learning, Gateway course)
| OData V2 | OData V4 | |
|---|---|---|
| What activation/publish does | Publish registers the service in the local Gateway catalog | Activating the binding registers a service group of the same name in the back-end V4 administration |
| ADT Publish result | Catalog entry saved as local object, test only | Service group published as local object, test only |
| For transport | Unpublish in ADT, register in /IWFND/MAINT_SERVICE with a transport | Publish the group in /IWFND/V4_ADMIN, system alias LOCAL, with a customizing request |
| URL | /sap/opu/odata/sap/<binding>/ |
V4 URL scheme with service group and version |
Watch out: ADT cannot publish a V4 binding locally if SCC4 marks the client as Customizing or blocks changes (SAP Note 3101976); use /IWFND/V4_ADMIN there. The RAP100 tutorial hits the same limit on S/4HANA on-premise.
Versions and grouping
- A V2 binding can hold several versions of a service definition.
- A V4 binding can hold several service definitions for cross-service navigation.
What behaves differently
- Fiori elements: the V2 and V4 stacks are different UI frameworks; a V2 app does not turn into V4 by switching the URL.
- Draft: SAP's binding documentation grants full Fiori elements V4 support for draft-enabled transactional apps; plan V4 with draft.
- Direction: SAP's Fiori elements lead says V2 stays supported for the foreseeable future, with no need to migrate existing apps. But new features come to V4 only, and new apps should start on V4.
- Release: RAP serves V4 end to end from S/4HANA 2020 FPS01; on 1909 you only have V2.
Design advice. Keep the V2 binding for the old app, point the new app at V4, and retire V2 when the old app is rebuilt. Both share every validation and lock, which is the point of RAP.
Uses one service definition with two bindings, explains local publish versus transported registration for V2 and V4 with the right transactions, and states SAP's V2/V4 position.
Builds a second BO or a SEGW service for V2, or believes ADT publishing is transported to production.
Assuming the ADT Publish button travels with the transport. It creates a local object; each system needs its registration (V2) or service group publication (V4).
- Why can a V4 binding fail to publish in ADT in some clients?
- What do you transport for a RAP service, and what do you do in each system?
- Does moving an app from V2 to V4 change the back end?
4 official pages and 4 prep guides. Confidence: high. Checked 2 Dec 2026.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.