> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SAP Ariba Procurement

export const title_0 = "SAP Ariba Procurement";

## Prerequisites

Before you can connect SAP Ariba Procurement, you must create a custom OAuth app as follows:

<Steps>
  <Step>
    Go to the [SAP Developer Portal](https://developer.ariba.com/) and sign in.
  </Step>

  <Step>
    Click **Manage** (bottom icon on the left).
  </Step>

  <Step>
    Click the **+** button next to the search field.
  </Step>

  <Step>
    Fill in **Application Name** and **Description**, and then click **Submit**.
  </Step>

  <Step>
    Click **Actions** > **Request API Access**.
  </Step>

  <Step>
    Select the API you want to retrieve data from. This corresponds to the API connection property.
  </Step>

  <Step>
    Select your realm.
  </Step>

  <Step>
    Click **Submit**. Wait until the request is approved.
  </Step>

  <Step>
    Once approved, click **Actions** > **Generate OAuth Secret**.
  </Step>

  <Step>
    Save the values displayed for **API key**, **OAuth Client Id**, and **OAuth Client Secret**.
  </Step>
</Steps>

## Setup Guide

Follow these steps to connect SAP Ariba Procurement to your Connect AI account:

<Steps>
  <Step>
    Open the **Sources** page of the Connect AI navigation menu.
  </Step>

  <Step>
    Click **+ Add Connection** in the upper-right corner.
  </Step>

  <Step>
    Type *SAP Ariba Procurement* into the search field, then click the data source name.
  </Step>

  <Step>
    On the **Basic Settings** tab of the new connection, enter a connection name or keep the default name.
  </Step>

  <Step>
    Enter the following information:

    * **API Key**—the API key created in the prerequisites.
    * **API**—the API you want to retrieve data from.
    * **ANID**—your SAP Ariba Network Id. [Find your ANID as a buyer](https://support.ariba.com/item/view/187831) or [find your ANID as a supplier](https://support.ariba.com/item/view/KB0392438).
    * **OAuth Client Id**—the OAuth client Id from the prerequisites.
    * **OAuth Client Secret**—the OAuth client secret from the prerequisites.
    * **Max Threads**—the maximum number of concurrent requests the provider can execute to SAP Ariba.
    * **Environment**—the environment to use when connecting to SAP Ariba, either PRODUCTION or TEST.
  </Step>

  <Step>
    At the top of the Connect AI **Add {title_0} Connection** page, click **Save & Test**.

    * If the connection test succeeds, a **Connection successfully saved** message appears, indicating that your connection has been created. The **Status** on the **Edit Connection** page also changes to **Authenticated**. View the data model of your successful connection in the right pane of the **Edit Connection** page, in the **Data Model** tab.
    * If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the **Sign in** button. Correct the errors and try again.
    * Unsuccessful connections are saved as drafts and have a **Status** of **Not Authenticated**. You can return to the connection and authenticate it later.
  </Step>
</Steps>

## More Information

For more information about interactions between Connect AI and SAP Ariba Procurement, see [this information page](https://cdn.cdata.com/help/PAM/cloud/default.htm#default).
