Exploring Cloud Integration - Part 9 (Creating a Request and Reply to an external Call (HTTP Call))
In the last article I set up a router with two routes. If the productID is not found in the database, the process must be terminated in one of the routes. If the ProductID is found, further processing steps will take place in the other route.
The objective of today's article is to retrieve the relevant line items for each productID. This is because in order to read the Customer ID during a subsequent call, I will require the SalesOrder ID and ItemPostion for each productID.
To achieve the above objective, I will create and configure an external HTTP adapter for the request and reply call.
Task Flow
I performed the following tasks:
Prerequisites
The creation and configuration of a Router has been completed in the last article.
Outcome After This Exercise
Environment
Live SAP BTP account.
Task 1: Logging on to the Integration Flow DelayedDelivery_Process
Steps
Task 2: Creating a Request and Reply to an External HTTP Call
Steps
2. Set a second Receiver component.
3. Added a Call → External Call → Request Reply.
. 〰 Call_fetchLineItems to
〰 API_SalesOrder_ProductSet_ToSalesOrderLineItems
Recommended by LinkedIn
Table 15: HTTP adapter connection tab data
4. Verified the number of available data records.
https://< My API Host >/ProductSet('${property.ProductID}')/ToSalesOrderLineItems/$count
Task 3: Saving as Version, Deploying, and Debugging the Integration Process
Steps
〰Save as version.
〰Deploy.
〰Jump to Overview → Manage Integration Content.
〰Set log level to trace.
〰Deploy again.
〰Jump again to Overview → Manage Integration Content.
https://< My API >/ProductSet('${property.ProductID}')/ToSalesOrderLineItems/?&top=2
Conclusion
Retrieving the relevant line items for each productID is a crucial step in enabling seamless data flow for subsequent calls. By configuring an external HTTP adapter for request and reply call, I ensured that the necessary details such as the SalesOrder ID, and ItemPosition are available for further processing.
Next Article ▶
In the next article, I will create an XSLT Mapping which removes the namespaces from the payload, enabling access to the values using XPath expressions.
Previous Article ◀
Thanks for reading !
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.