SSIS Components for SAP Ariba Procurement

Build 24.0.8963

Establishing a Connection

Enabling SSIS in Visual Studio 2022

If you're using Visual Studio 2022, you will need to install the SQL Server Integration Services Projects extension to use SSIS.

  1. Navigate to Extensions > Manage Extensions.
  2. In the Manage Extensions window's search box, search for "SQL Server Integration Services Projects 2022" and select the extension in the list.
  3. Click Download.
  4. Close Visual Studio and run the downloaded Microsoft.DataTools.IntegrationServices.exe installer. Proceed through the installer with default settings.
  5. Open Visual Studio. There should now be an "Integration Services Project" project template available.

Adding the SAP Ariba Connection Manager

Create a new connection manager as follows:

  1. Create a Visual Studio project with the "Integration Services Project" template.
  2. In the project, right-click within the Connection Managers window and select New Connection from the menu.
  3. In the Description column, select CData SAP Ariba Connection Manager and click Add...
  4. Configure the component as described in the next section.

Alternatively, if you have an existing project and CData SAP Ariba Source or CData SAP Ariba Destination:

  1. Right-click your CData SAP Ariba source or destination component in your data flow
  2. Select Edit... to open an editor window.
  3. Click the New... button next to the Connection manager: dropdown selector to create a connection manager.
  4. Configure the component as described in the next section.

Connecting to SAP Ariba

Set the following to connect:

  • ANID: Your Ariba Network ID.
  • API: Specify which API you would like the component to retrieve SAP Ariba data from. Select the Buyer or Supplier API based on your business role.
  • Environment: The development environment to use when connecting.

Authenticating to SAP Ariba

Authentication to SAP Ariba APIs is handled via OAuth. SAP Ariba's OAuth flow requires no user interaction.

OAuthClient

Set the AuthScheme to OAuthClient.

You need to register an application with the service to obtain the APIKey, OAuthClientId and OAuthClientSecret.

See Creating a Custom OAuth App for information about creating an application.

InitiateOAuth defaults to GETANDREFRESH for the OAuthClient authentication scheme.

Automatic OAuth

Get and Refresh the OAuth Access Token

After setting the following, you are ready to connect:

  • APIKey: The Application key in your app settings.
  • OAuthClientId: The OAuth Client Id in your app settings.
  • OAuthClientSecret: The OAuth Secret in your app settings.

When you connect, the component automatically completes the OAuth process:

  1. The component obtains an access token from SAP Ariba and uses it to request data.
  2. The component refreshes the access token automatically when it expires.
  3. The OAuth values are saved in memory relative to the location specified in OAuthSettingsLocation.

Manual OAuth

Get an OAuth Access Token

Set the following connection properties to obtain the OAuthAccessToken:

  • APIKey: The Application key in your app settings.
  • OAuthClientId: The OAuth Client Id in your app settings.
  • OAuthClientSecret: The OAuth Secret in your app settings.

Then call the GetOAuthAccessToken stored procedure. Set the GrantType input to client_credentials or openapi_2lo (available for legacy users). If not specified, GrantType defaults to client_credentials.

After you have obtained the access and refresh tokens, you can connect to data and refresh the OAuth access token either automatically or manually.

Automatic Refresh of the OAuth Access Token

To have the component automatically refresh the OAuth access token, set the following on the first data connection.

  • InitiateOAuth: REFRESH.
  • APIKey: The Application key in your app settings.
  • OAuthClientId: The OAuth Client Id in your app settings.
  • OAuthClientSecret: The OAuth Secret in your app settings.
  • OAuthAccessToken: The access token returned by GetOAuthAccessToken.
  • OAuthRefreshToken: The refresh token returned by GetOAuthAccessToken.

Manual Refresh of the OAuth Access Token

The only value needed to manually refresh the OAuth access token when connecting to data is the OAuth refresh token. Use the RefreshOAuthAccessToken stored procedure to manually refresh the OAuthAccessToken after the ExpiresIn parameter value returned by GetOAuthAccessToken has elapsed, then set the following connection properties:

  • APIKey: The Application key in your app settings.
  • OAuthClientId: The OAuth Client Id in your app settings.
  • OAuthClientSecret: The OAuth Secret in your app settings.

Then call RefreshOAuthAccessToken with OAuthRefreshToken set to the OAuth refresh token returned by GetOAuthAccessToken. After the new tokens have been retrieved, open a new connection by setting the OAuthAccessToken property to the value returned by RefreshOAuthAccessToken.

Finally, store the OAuth refresh token so that you can use it to manually refresh the OAuth access token after it has expired.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.8963