IDNFR-2007
NameAriba Event Management Orchestration Framework
AuthorKapila Epasinghe ( kapila.epasinghe-ext@syensqo.com )
ApproverSascha Wenninger ( sascha.wenninger-ext@syensqo.com )


Summary

The integration solution is designed to solve a coordination and rate limit management problem between Ariba API and Keelvar APIs used in Sourcing Processes. 

During the implementation of Interfaces (see below) that require orchestration of the APIs between the two systems, it was discovered that strictly imposed rate limits in Ariba APIs mainly, but also Keelvar Intake and Export APIs, are reached, causing Integrations to fail.

To address this, an Integration Orchestration Solution is introduced using available tools in SAP CPI.  The major aspects of the solution are:

  1. Use of JMS Queues, where required, shared by Interfaces utilising the mentioned APIs
  2. Use of singleton processing via a Router IFlows that sequentially and synchronously process messages for each JMS Queue
  3. Use of Connectors to Ariba and Keelvar APIs that are rate-limit aware and pause if limits are reached.

Overall, this solution provides a robust, controlled, and extensible foundation for managing multiple API-based integrations between Ariba and Keelvar, ensuring operational stability and compliance with API usage policies in Ariba and Keelvar. Furthermore, this solution can be extended if and when further Integrations need to be implemented that utilise Ariba and Keelvar APIs, in addition to the 4 interfaces that currently ( as of 09-April-2026 ) utilise this:

IDDescription
ERP-108Synchronisation of Sourcing Events created and updated in Ariba to Keelvar
ERP-137Synchronisation of Award Bids and Bid Sheets from Keelvar to Ariba
ERP-138Notification of Keelvar Event Status changes to Ariba
ERP-224Synchronisation of Suppliers updated in Ariba to Keelvar


Description

Ariba APIs contain both intake and export endpoints supporting Ariba Strategic Sourcing Platform to read, create and update Sourcing events, Scenarios, Awards and Suppliers.

Three Ariba APIs are part of this solution - Event Management API, Master Data Retrieval API for Sourcing, and Surrogate Bidding API. There is no documented rate limit for Surrogate Bidding API however, Event Management API and Master Data Retrieval API for Sourcing requests are rate-limit controlled as shown below:

Time limitsNumber of Requests
Per second5
Per minute80
Per Hour3500


Time limitsNumber of Requests
Per second10
Per minute40
Per Hour200
Per Day1000


Keelvar Intake and Export APIs are three different sets of API Services with their own rate-limits:

In addition, Keelvar provides a Webhook management API which is utilised in the Event Management Orchestration between Ariba and Keelvar. However, this set of APIs do not have a published Rate-Limit controls and described in a separate document here.

To manage the constraint enforced by the rate-limits, this framework enables the orchestration of the APIs between the two systems, avoiding and recovering from rate-limiting exceptions as well as handling exceptions such as data errors, service unavailability etc.

The following guiding principles need to be applied in the IFlows pertaining to the Integration:

Solution Overview

Process Flow



StepFunction
1Invoker IFlow initiates the processing. After defining the parameters (headers) necessary, including the Process Direct path for processing at Provider IFlow, the message is passed to the JMS Queue. Ideally, this IFlow will not contain any calls to Ariba or Keelvar APIs. 
2The JMS Sender Adapter reads the messages and processes them synchronously. 
3Based on the Process Direct path defined in the message parameters, the Router IFlow forwards the message directly to the Provider IFlow.
4The Provider IFlow executes calls to Ariba APIs as required, using dedicated Connector IFlows. These Provider IFlow sets the parameters required by the Connector to call the API 
5The Provider IFlow executes any API calls to Keelvar, using the Keelvar Connector IFlows. These Provider IFlow sets the parameters required by the Connector to call the API.
6Optionally, the Provider IFlow triggers additional messages to the JMS Queue.


Key Components of the JMS Solution

ComponentDescription
JMS Sourcing QueueCentral component for Event and Award Scenarios. Router IFlows write to and read from the queues
JMS Master Data QueueCentral component for Supplier Synchronisation Scenarios.IFlows 
JMS Events Router IFlowThe singleton IFlow that directly reads from the JMS Sourcing Queue. This is single threaded, controlled via standard JMS Sender Configuration. 
JMS Master Data Router IFlowThe singleton IFlow that directly reads from the JMS Master Data Queue. This is single threaded, controlled via standard JMS Sender Configuration. 
Ariba Event Management API ConnectorHandles all API requests to Ariba Event Management API. Errors are logged but also returned to the calling IFlow. 
Ariba Surrogate Bidding API ConnectorHandles all API requests to Ariba Surrogate Bidding API. Errors are logged but also returned to the calling IFlow.
Arimba Master Data API ConnectorHandles all API requests to Ariba Master Data Retrieval API for Sourcing. Errors are logged but also returned to the calling IFlow
Keelvar Events API ConnectorHandles all API requests to Keelvar Intake and Export APIs. Errors are logged but also returned to the calling IFlow
Keelvar Supplier API ConnectorHandles all API requests to Keelvar Supplier API. Errors are logged but also returned to the calling IFlow



Technical Details

Invoker IFlow Configurations

ObjectValueDescription
Header ValuejmsProcessDirectPathThe ProcessDirect path of the Provider IFlow. Externalised field
Queue Name in JMS Receiver Adapter ConfigurationaribaEventMgtQueueName of the JMS Events Queue. Externalisable field
 aribaMasterDataQueueName of the JMS Supplier Queue. Externalisable field

JMS Queues

All IFlows that forwards the processing to JMS Queue should have the following configuration settings in the JMS Receiver Adapter

ObjectValueDescription
Queue NamearibaEventMgtQueueThe Unique name for the JMS Queue
Access TypeNon-ExclusiveEach JMS Queue entry will process independently of each other due to the Design Principles applied
Retention Threshold for Alerting2 daysThe number of days to hold the message in the Queue to raise a Stale message alert. Default value of 2 days. In this solution, this has no relevance as the messages are pushed to DLQ after the defined number of retries
Expiration Period30 daysThe period a message can be fetched and reprocessed from the queue. Default value of 30 days is used. In this, solution this parameter has no relevance as the message are pushed to DLQ after the defined number of retries.

JMS Events Router

Externalised Parameters

ObjectValueDescription
Maximum Retry Limit5The messages are gracefully pushed to a defined separate "Dead Letter Queue" used for error handling. No further processing will be done after the configured number of retries.
Dead Letter Queue for Error HandlingDLQ_aribaEventMgtQueueThe name of the Dead Letter Queue that persists messages when the number of processing times reach Maximum Retry Limit

Sender Adapter JMS Configuration

ObjectValueDescription
Queue Name in JMS Sender Adapter ConfigurationaribaEventMgtQueueName of the JMS Queue. Externalisable value
Number of Concurrent Processes1Note: This value is important for Singleton Instance of the IFlow. This is vital for Serialised processing of the Queue
Retry Interval1 minuteThe initial duration between the retry attempts
Exponential BackoffTicked ( true )The retry interval is doubled with each subsequent attempt
Maximum Retry Interval60 minutesThe maximum allowed retry interval with exponential backoff. In this solution, this parameter is relevant if the number of allowed retried is increased to over 7
Dead Letter QueueTicked (true)

In case of out-of-memory issues by the Worker node, the messages are moved to a separate queue. If needed messages can be unlocked for reprocessing.

Note: this Dead Letter Queue is the default JMS Sender behaviour. 

Receiver Adapter JMS Configuration - For Dead Letter Queue 

ObjectValueDescription
Queue NameDLQ_aribaEventMgtQueueAll messages after the configured number of Retries are moved to this DLQ
Access TypeNon-ExclusiveSince messages are not automatically reprocessed from this queue, this value is not relevant for the solution
Retention Threshold for Alerting 2 daysThe number of days to hold the message in the Queue to raise a Stale message alert. Default value of 2 days. An alert will be raised if the message is not removed within this period. 
Expiration Period30 daysThe period a message can be fetched and reprocessed from the queue. Default value of 30 days is used. 
Compress Stored MessagesTicked (true)Messages are compressed to reduce memory usage, although the messages are atomic in nature.
Encrypt Stored MessagesNot ticked (false)Content encryption is deactivated, however may be done if required. 
Transfer Exchange PropertiesTickedThe message properties are kept for error handling processes


Provider IFlows Configuration Requirements

Ariba Event Management API Connector IFlow

The Ariba Connector constructs the URL and the Authentication Parameters based on valued passed from the calling IFlow and configurable parameters in the Connector. The construct is shown below:

Ariba Event Management URL

Construction of the URL with an example:

METHODhttps://<Ariba Base URL><Ariba URL Path>?<Connector Defined Query Parameters>&<Received Query Parameters>
GEThttps://eu.openapi.ariba.com/api/sourcing-events/v2/prod/events/identifiers?realm=7452####-SS-T&user=R_XXXXXXXX&passwordAdapater=XXXXXXXXX&$filter=(createDateFrom gt 1761418273 and createDateTo=1761464729)


An IFlow calling the Adapter must provide the following Header Parameters to construct the API endpoint to Ariba

ObjectHeader NameDescription
HTTP MethodaribaMethodThe HTTP Method for the API
Ariba Url PatharibaUrlPathThe Path (i.e. the endpoint) that is amalgamated with the Base URL to construct the API endpoint
Query ParametersaribaUrlQueryThe additional Query Parameters that must be amalgamated with the the Common Query parameters defined in the Adapter

Additional Parameters

ObjectDescriptionValue Dev & TestValue Prod
Ariba Base URLBase URL to Ariba Event Management APIs. eu.openapi.ariba.com/api/sourcing-event/v2/prod
Credential NameOAuth Credential Name for Ariba Endpoint in SAP CPIOAuth_Ariba_Sourcing_EventMgmtAPI
Ariba API DelayThe Delay to be implemented when the remaining API count is zero2 seconds
Ariba Password AdapterPassword Adapter defined for Technical Users in AribaThirdPartyUser
Ariba RealmAriba tenant ID745255310-SS-T
Ariba UserTechnical User for SAP CPI to extract eventsR_BTP_ARB_ADMIN
Ariba API KeySecurity Credential Name containing the API Key for Ariba Event ManagementAPIKEY_AribaSourcing_Keelvar_Dev

Ariba Surrogate Bidding API Connector IFlow

Similar to Event Management API Connector, the Ariba Surrogate Bidding AI Connector also constructs the URL and the Authentication Parameters based on valued passed from the calling IFlow and configurable parameters in the Connector. The construct is shown below:

Ariba Surrogate Bidding URL

Construction of the URL with an example:

METHODhttps://<Ariba Base URL><Ariba URL Path>?<Connector Defined Query Parameters>
POSThttps://eu.openapi.ariba.com/api/sourcing-event-bid/v1/prod/jobs?realm=7452####-SS-T&user=R_XXXXXXXX&passwordAdapater=XXXXXXXXX


An IFlow calling the Adapter must provide the following Header Parameters to construct the API endpoint to Ariba

ObjectHeader NameDescription
HTTP MethodaribaMethodThe HTTP Method for the API
Ariba Url PatharibaUrlPathThe Path (i.e. the endpoint) that is amalgamated with the Base URL to construct the API endpoint

Additional Parameters

ObjectDescriptionValue Dev & TestValue TestValue Prod
Ariba Base URLBase URL to Ariba Event Management APIs. eu.openapi.ariba.com/api/sourcing-event/v2/prod
Credential NameOAuth Credential Name for Ariba Endpoint in SAP CPIOAuth_Ariba_Sourcing_SurrogateBiddingAPI_Dev

Ariba API DelayThe Delay to be implemented when the remaining API count is zero2 seconds

Ariba Password AdapterPassword Adapter defined for Technical Users in AribaThirdPartyUser
Ariba RealmAriba tenant ID745255310-SS-T

Ariba UserTechnical User for SAP CPI to extract eventsR_BTP_ARB_ADMIN
Ariba API KeySecurity Credential Name containing the API Key for Ariba Event ManagementAPIKEY_AribaSurrogateBidding_CPI_Dev

Keelvar API Connector IFlow

Keelvar URL

Similarly, the Keelvar Connector constructs the URL based on the values passed from the calling IFlow and configurable parameters in the Connector. 

METHODhttps://<Keelvar Base URL><Keelvar URL Path>?<Query Parameters>
GEThttps://test.keelvar.dev/api/feeds/awards?sourcing_event=$event_uuid'


An IFlow calling the Keelvar Connector must providefollowing Header Parameters to construct the API endpoint to Keelvar

ObjectHeader NameDescription
HTTP MethodkeelvarVerbThe HTTP Method for the API
Keelvar Url PathkeelvarPathThe Path (i.e. the endpoint) that is amalgamated with the Base URL to construct the API endpoint
Query ParameterskeelvarQueryThe Query Parameters


Additional Parameters

ObjectDescriptionValue Dev & TestValue Prod
Keelvar HostBase URL for Keelvar APItest.keelvar.dev/apimy.keelvar.app/api
Keelvar API KeySecurity Material in CPI containing the Keelvar API KeyKeelvarToken

Error Handling & Retry Strategy


ScenarioAction
Retry Limit ReachedPause for the configured length so that additional API calls are reached
Permanent API Error (HTTP 400/401/404)Provider IFlow logs the error in MPL and push back to JMS Queue
JMS Retry ExhaustedGracefully push the message to DLQ for analysis. 

Monitoring & Observability


ToolUsage
CPI Message MonitoringTrack message status, errors, and retries.
JMS Queue MonitorCheck pending, in-flight, and DLQ messages.
MPL LogsTrack API call results and pause events.

Future Enhancements

Use API Header driven pause 

For the current solution, based on the number of calls and the schedule, the configurable pause time limit provides adequate support for re-processing of messages. However, if further integrations are added to the package, further design analysis may be required to control the length of the pause

Reprocessing from DLQ

At the moment, the DLQ is only used as a placeholder for any messages that have failed the number of retries configured. Currently, no retry from DLQ is enabled, and this solution may be enhanced to provide the ability to reprocess the messages in the DLQ back to the JMS Queue.


Change Log