Category: ODATA

  • Delete an Entity using SAP OData

    Preface – This post is part of the SAP ABAP OData Tutorial series. Delete operation is used when you want to remove a record from the database. For example, you have created one quotation and now you no longer want it. So you will delete the quotation using the DELETE request. This article describes the…

  • Update an Entity using SAP OData

    Preface – This post is part of the SAP ABAP OData Tutorial series. Many times, we come across a scenario where we want to update the data records, for example, we want to update the phone number or address. This article describes the step-by-step procedure to implement and test update operations in SAP OData. Context…

  • Create an Entity using SAP OData

    Preface – This post is part of the SAP ABAP OData Tutorial series. Context Create entity can be implemented in two ways: 1. Using CREATE_ENTITY method for single entity creation. 2. Using CREATE_DEEP_ENTITY method to create a single entity as well as parent and child entity together. Procedure 1. Open *DPC_EXT class artifact of OData…

  • Testing SAP OData CRUD operations using Postman

    Preface – This post is part of the SAP ABAP OData Tutorial series. Introduction Postman is an API development tool that helps developers to create, test, share and document the APIs. It has various HTTP requests like GET, POST, PUT, PATCH and the ability to save the environment. In this article, we will learn how…

  • MIME handling in SAP OData (File Media handling)

    Preface – This post is part of the SAP ABAP OData Tutorial series. This article will give a bare minimum to read and upload media files or MIME in SAP OData service. Procedure Create OData service Register service Execute service Steps Create OData Select EntityType and select checkbox ‘Media’ Generate runtime artifact. In MPC ext…

  • $ORDERBY Query in SAP OData

    Preface – This post is part of the SAP ABAP OData Tutorial series. In this article, we will learn how to use $orderby query in our SAP OData services. What is the use of $orderby query? There are many query options to control the amount and order of data. One of the query options provided…

  • $TOP and $SKIP Query in SAP OData

    Preface – This post is part of the SAP ABAP OData Tutorial series. In this article, we will learn how to use $top and $skip query in our OData services. What is the use of $top $skip query? The OData query $top and $skip are used to restrict the data from the backend. To achieve…

  • $FILTER in SAP OData

    Preface – This post is part of the SAP ABAP OData Tutorial series. In this section, we will learn the concept of the $filter query in SAP OData and its usage. Supported System Version SAP NetWeaver Gateway Release 2.0 Support Package >=03 Syntax http://<server>:<port>/sap/opu/odata/sap/<service_name>/EntitySet?$filter=ProductId eq ‘HP-101’ Business Example The shopping site, say, Amazon is displaying…

  • Constructor in a Class

    Preface – This post is part of the SAP ABAP OData Tutorial series. Introduction Focusing on the concept of the constructors in a class, we will discuss what is a constructor and its type with an example. So, a constructor can be understood as a special method in a class that is automatically called when…

  • How to Activate Services in SICF

    Preface – This post is part of the SAP ABAP OData Tutorial series. Introduction SAP provides Internet Communication Framework (ICF) services that needs to be activated after your OData Service is registered and active. The ICF is an API service enables an ABAP program to communicate with the Internet. In our last article, we have…