Delete OData Entities with the SAP Cloud SDK's Virtual Data Model
February 7, 2021
Intermediate
15 min.
Delete OData entities with the SAP Cloud SDK's virtual data model to duild an address manager application.
You will learn
- How to use the Virtual Data Model to delete an entity
- How to trigger a delete request from an API endpoint exposed by your application
Prerequisites
- Have
Node.js
andnpm
installed on your machine. - Have access to an SAP S/4HANA Cloud system or the SAP API Business Hub Sandbox, or use the Business Partner Mock Service.
- Basic knowledge of OData is recommended, but not required.
The goal of this tutorial group is to show you how to implement a JavaScript application that allows you to manage the addresses of business partners. This application will be using NestJS
and the SAP Cloud SDK for JavaScript. In this tutorial, we use the SAP Cloud SDK’s OData Virtual Data Model to delete an address and make this functionality available via an API endpoint.
Step 1: Add an API endpoint
Step 2: Delete a business partner address
Step 3: Test yourself
Navigate tutorial steps