In this tutorial, we will talk about OData model and hand hold you to create a front-end application and call the OData Model to perform the CRUD Operations. Using OData Model, you can consume the OData Service. For this we need to create an OData Service and implement C REATE, R EAD, U PDATE and D ELETE methods of the service. Then we need to create an OData Model Instance in the UI5 application and call these methods using read (), create (), update () and remove () functions respectively of the OData model. So let’s start… Business scenario : Customer wants to display records from a custom table onto the UI5 application and provide functions of Read, Create, Update and Delete to the end users . Step 1: Get a Custom Table ready for us to play Creating a custom table by the name ‘zuserdata’ with id, name, email and mobile fields. Step 2: Creating an OData service Go to transaction SEGW...
OData is used to define best practices that are required to build and consume RESTful APIs. It helps you to find out changes, defining functions for reusable procedures and sending batch requests, etc. Some of the important features are − * OData provides a facility for an extension to fulfill any custom needs of your RESTful APIs. * REST stands for Representational State Transfer and it is sometimes spelled as \"ReST\". * It relies on a stateless, client-server, cacheable communication protocol. In virtually all cases, the HTTP protocol is used. * REST is defined as an architecture style for designing network applications. * OData helps you focus on your business logic while building RESTful APIs without having to worry about the approaches to define request and response headers, status codes, HTTP methods, URL conventions, media types, payload formats and query options, etc. * OData RESTful APIs are easy to consume. SAP Fiori (https://www.anubhavtrainings.com/) is a new use...
Comments
Post a Comment