Service Bindings Part 2: Create, Activate, Publish and Test in ADT
Preview · a free account unlocks the full lesson
Walk through the full hands-on flow: create and activate the binding, publish the local service endpoint, check it in the Gateway administration, and test $metadata, reads and a create — in on-premise S/4HANA and in the ABAP cloud environment.
In this lessonShow sectionsHide sections
Explanation
The binding is created in ADT, activated, and then published. Preview on an entity set is what lets you test the resulting Fiori Elements app, and $metadata is what confirms the entities, actions and annotations are actually there. It's worth remembering that activating is not the same as publishing — an unpublished binding simply returns 404.
In Part 1 you created the service definition ZUI_PURCHREQ and the binding ZUI_PURCHREQ_O4 (OData V4 – UI) and activated both. This part makes the service actually reachable and proves that it works.
Activate and publish are two genuinely different things. Activate compiles the binding object in the ABAP repository, proving that the service definition and projections are internally consistent. Publish registers the service in the OData runtime — SAP Gateway — of this particular system, so that HTTP requests to its URL actually get routed to your business object. An activated but unpublished binding exists only as a repository object, and every call to its URL returns 404.
On-premise, in S/4HANA and Private Cloud, publishing means opening ZUI_PURCHREQ_O4 in ADT, clicking Publish in the Services section (labeled "Publish local service endpoint" on some releases), and waiting for the success message, after which the editor shows the Service URL and enables Preview.
In the background, for OData V4, a service group for the binding gets published in Gateway using the local system alias, visible in transaction /IWFND/V4_ADMIN; for OData V2, the service gets registered as in /IWFND/MAINT_SERVICE, where it then appears.
Publishing requires Gateway administration authorization in that system, so if Publish fails with an authorization message, a Basis or Gateway admin needs to either assign that authorization or publish on your behalf.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.