Exploring the APIs From the SAP Gateway Demo System
In the last article, I introduced common APIs used in SAP Integrations. Today's article is task based. In this task, I explored the APIs From the SAP Gateway Demo System.
Aim of Hand-on?
To understand the OData model
Business Scenario
In this exercise, I examine the GWSAMPLE_BASIC service. This sample service is based on the Enterprise Procurement Model (EPM). I want to use the APIs directly to find the customerID and the associate address data for the productID HT-1000.
Task Flow
In this exercise, I performed the following tasks:
Prerequisites
?Access to the SAP Demo Gateway system ES5.
Outcome After This Exercise
I checked whether OData APIs can be called up and that technical data, for example, the productID HT-1000, is available.
Lesson Learn Within This Exercise
Gaining understanding of the OData model.
Task 1: Checking If the ProductID HT-1000 Is Available
Steps
NOTE: After clicking the link, I was required to sign in with my SAP Gateway Demo System credentials to access the data.
3. I checked out the response.
Task 2: Getting the Sales Order IDs to the ProductID HT-1000
Steps
1. I chose the following link: Count the SalesOrders
2. I checked the result:
领英推荐
2. Finding the Sales Order ID and Item Position for the productID HT-1000.
1. I chose the following link: Check SalesOderID and ItemPosition
2. The OData navigation /ToHeader is used to find out the customerID. Therefore, I needed the SalesOrderID and ItemPosition for every dataset entry.
Task 3: Finding the Respective Customer for Each Order of the ProductID HT-1000
Steps
1. I chose the following link: Check the CustomerID
2. I got a dataset with the CustomerID.
2. Finding the address data to one customer.
1. I chose the following link: Check the communication data
2. I got the address data for notification for every customer.
Thanks for reading.
In the next article, we will be Exploring API Management. Stay tuned!
Reference
SAP (2024). Developing with SAP Integration Suite
? 2024 SAP SE or an SAP affiliate company. All rights reserved. This article references SAP materials for educational purposes, in accordance with SAP's copyright guidelines.