Exploring the APIs From the SAP Gateway Demo System

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:

  1. Checked if the productID HT-1000 is available.
  2. Got the Sales Order IDs to the productID HT-1000.
  3. Found the respective customer for each order of the productID HT-1000.

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

  1. I chose the following link: Check for HT-1000


Figure 13: SAP Gateway Demo System sign in

NOTE: After clicking the link, I was required to sign in with my SAP Gateway Demo System credentials to access the data.

  1. After the sign in, I got a data record to this productID, confirming that the productID exists.


Figure 14: Data record to this productID HT-1000

3. I checked out the response.

Task 2: Getting the Sales Order IDs to the ProductID HT-1000

Steps

  1. How many sales orders are there for the product HT-1000?

1. I chose the following link: Count the SalesOrders

2. I checked the result:


Figure 15: Number of sales orders for the product HT-1000

2. Finding the Sales Order ID and Item Position for the productID HT-1000.

1. I chose the following link: Check SalesOderID and ItemPosition


Figure 16: Sales Order ID and Item Position for the productID

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. Finding the CustomerIDs for all SalesorderIDs and ItemPositions.

1. I chose the following link: Check the CustomerID


Figure 17:

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


Figure 18: The address data to one customer.

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.


要查看或添加评论,请登录

Joseph Ogunronbi, GMNSE的更多文章

社区洞察

其他会员也浏览了