OData Development using SAP ABAP RAP

Introduction

In SAP ABAP RESTful Application programming, the business service is RESTful service which is called by end-users/customers. It consists of two parts: Service Definition and service binding. The service binding implements the protocol such as OData and the services to be consumed by customers. In this article we will learn OData development using SAP ABAP RAP.

Steps for OData development using SAP ABAP RAP

  1. Create Service Definition
  2. Expose Services
  3. Create Service Binding
  4. Select service type as OData while creation. Click Finish.
  5. Activate service

Create Service Definition

Right-click on Package >> New >> Other Repositories Objects >> Service Definition.
Provide the details to create a Service Definition.

Create Service Definition

Once the Service Definition is created, expose the required entities and activate it.

expose the required entities

Create Service Binding

Right-click on Package >> New >> Other Repositories Objects >> Service Binding.
Provide Package details, Name, Description and Service Definition name. Select the Binding Type as ODATA to create OData Service Binding.

SAP RAP Create Service Binding

Verify the information and click on activate.

OData Publish SAP RAP

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.