## SAP integration

SAP is a leading enterprise resource planning (ERP) platform that provides comprehensive business management tools. Integrating SAP with Frontegg allows your application to access business partner data from SAP S/4HANA Cloud through the SAP Business Accelerator Hub API key.

Prerequisites
- An [SAP account](https://accounts.sap.com/) (SAP Universal ID)
- Access to the [SAP Business Accelerator Hub](https://api.sap.com/)


### Connect SAP

#### Step 1: Open the SAP Business Accelerator Hub

Go to [api.sap.com](https://api.sap.com/) and sign in with your SAP account. If you do not have an SAP account, click **Register** on the sign-in page to create one.

![SAP Business Accelerator Hub landing page](/assets/sap-1.6ef65e75f00a985f4242857556838f2e0afc88e5b31273752ce2bb4497d70767.1ce25488.png)

#### Step 2: Navigate to the Business Partner API

Once signed in, open the [Business Partner (A2X) API page](https://api.sap.com/api/API_BUSINESS_PARTNER/overview). This API is part of the **SAP S/4HANA Cloud Public Edition** product and provides access to business partner, supplier, and customer data.

On the API overview page, click **Show API Key**.

![SAP Business Partner API overview page](/assets/sap-2.f4a5800087f1512e62fa3f28baea6df807b5f5dc5b41163eacf8eba12948bc2c.1ce25488.png)

#### Step 3: Copy your API key

A dialog displays your API key. Click **Copy Key and Close** to copy the key to your clipboard. Store the key in a safe place.

![SAP API key dialog](/assets/sap-3.87f53590292df05ea792f1ee2fad7595c2b249fb9832263b67bbc9634c98e0c9.1ce25488.png)

### Configure the Frontegg portal

Once you have obtained your API key from the steps above, enter it in the integration configuration page of the Frontegg portal:

1. Open the **Frontegg portal** and navigate to [ENVIRONMENT] → Integrations → SAP.
2. Enter the API key in the **API Key** field.
3. Click **Save**.


Keep your credentials secure
Never share or commit your API key to version control.

### Additional resources

- [SAP Business Accelerator Hub](https://api.sap.com/)
- [Business Partner (A2X) API documentation](https://api.sap.com/api/API_BUSINESS_PARTNER/overview)
- [SAP Business Accelerator Hub getting started guide](https://api.sap.com/getting-started)