cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Handling Failed API Calls and Retry Mechanism in SAP Integration Suite

nileshnagane12
Explorer
0 Kudos
996

Hello Experts,

We have an interface where we send bulk data from SAP ECC to a third-party API via SAP Integration Suite. When multiple API calls are triggered simultaneously, some of them fail as the third-party system doesn’t return the expected response. This causes the related IDocs to fail in SAP ECC.

Is there any recommended way to handle this scenario in SAP Integration Suite, such as implementing a retry mechanism or any other approach to manage failed API calls effectively?

View Entire Topic
Sree_Pujitha
Explorer
0 Kudos

JMS queues are provided by CPI to implement retry mechanism in such scenarios.

You can configure number of retries, retry interval and retention period for messages in queue. By using JMS queues, you can also manually process if they do not process in specified number of retries as we do in SAP PI as long as they are present in queue (based on value of retention period set in queue).

You can read this SAP blog for better understanding.

https://help.sap.com/docs/cloud-integration/sap-cloud-integration/jms-adapter

nileshnagane12
Explorer
0 Kudos
I believe JMS queues are suitable for asynchronous scenarios, but since these API calls are synchronous, we can’t use JMS queues.
Sree_Pujitha
Explorer
0 Kudos
In synchronous scenario we generally do not implement JMS, and sender needs to reprocess transaction in case of no response. But IF we want to explicitly implement retry in middleware for synchronous scenario we can break down the scenario with process direct and requestflow and responseflow will be divided in 2 iflows with retry mechanism in CI.