---
schema_version: "1"
id: 3b446a21e96effd50778bb140492084c97284aebc9fa2786d6440847f47a8e09
title: Using Anypoint Studio to Configure SAP S/4HANA OData Connector 2.9
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/sap-s4hana-cloud-connector/latest/sap-s4hana-cloud-connector-studio.md
canonical_url: https://docs.mulesoft.com/sap-s4hana-cloud-connector/latest/sap-s4hana-cloud-connector-studio
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a16b743a72b29fa87de3990b26b6e3836139880fd4d2d4be3e123d594058ecb2
description: MuleSoft Documentation Site
release: "2.9"
latest: true
---
---
product: SAP S/4HANA OData Connector
version: 2.9
is-latest-version: true
---

# Using Anypoint Studio to Configure SAP S/4HANA OData Connector 2.9

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Anypoint Studio (Studio) editors help you design and update your Mule applications, properties, and
configuration files.

To add and configure a connector in Studio:

1.  [Create a Mule project](#create-mule-project).

2.  [Add the connector to your Mule project](#add-connector-to-project).

3.  [Configure an input source for the connector’s flow](#configure-input-source).

4.  [Add a connector operation to the flow](#add-connector-operation).

5.  [Configure a global element for the connector](#configure-global-element).

If you are new to configuring connectors in Studio, see
[Using Anypoint Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio).
If, after reading this topic, you need additional information about the connector fields, see the
[SAP S/4HANA OData Connector Reference](https://docs.mulesoft.com/sap-s4hana-cloud-connector/latest/sap-s4hana-cloud-connector-reference).

## Create a Mule Project

In Anypoint Studio, create a new Mule project in which to add and configure the connector:

1.  From the Studio main menu, select **File > New > Mule Project**.

2.  Enter a name for your Mule project and click **Finish**.

## Add the Connector to Your Mule Project

Add Anypoint Connector for SAP S/4HANA OData to a Mule project to automatically populate the
project’s XML code with the connector’s namespace and schema location, as well as to add the
required dependencies to the project’s `pom.xml` file.

1.  In the **Mule Palette** view, click **(X) Search in Exchange**.

2.  In **Add Dependencies to Project**, type `sap s/4hana odata` in the search field.

3.  Click the connector name in **Available modules**.

4.  Click **Add**.

5.  Click **Finish**.

Adding a connector to a Mule project in Studio does not make that connector available to other
projects in your Studio workspace.

## Configure a Source

A source initiates a flow when a specified condition is met. The act of dragging the connector’s
operation from the palette onto the Anypoint Studio canvas automatically populates the XML code with
the connector namespace and schema location.

Possible source operations for this connector are:

- HTTP Listener  
  Starts your app using a browser or a command such as `curl`

- Scheduler  
  Starts your app at timed intervals

In Studio, drag the input operation you choose from the **Mule Palette** to the **Source** panel in
the canvas, and supply the required parameters.

## Add a Connector Operation to the Flow

When you add a connector operation to your flow, you immediately define a specific operation for
that connector to perform.

To add an operation for SAP S/4HANA OData Connector, follow these steps:

1.  In the **Mule Palette** view, select **SAP S/4HANA OData** and then select the desired
    operation.

2.  Drag the operation onto the Studio canvas to the right of the input source.

## Global Configuration Elements

To use SAP S/4HANA OData Connector in a Mule app, configure a connector global element for connector
operations to use in your application.

You can put placeholder values in the `mule-artifact.content` configuration file in the
`src/main/resources` folder of your project.

You can either enter your credentials in the global configuration content or reference a
configuration file that contains the values for your credentials. Using a configuration file is
recommended for simpler maintenance and better reuse of your project. Keeping these values in a
separate file is useful if you need to deploy to different environments, such as production,
development, and QA, where access credentials might differ.

For more information, see
[Use Property Placeholders for Property Values](https://docs.mulesoft.com/connectors/introduction/intro-connector-configuration-overview#property-placeholders).

### Configure a Global Element

Use the **Global Element Properties** configuration dialog to configure a global element for SAP
S/4HANA OData Connector:

1.  In your project, click the **Global Elements** tab at the base of the canvas.

2.  In the **Global Configuration Elements** screen, click **Create**:

    ![Global configuration elements screen with Create button](/mulesoft/current/en-us/sap-s4hana-cloud-connector/latest/_images/sap-hana-global-config-wizard.png)

3.  In the **Choose Global Type** wizard, expand **Connector Configuration**, select **SAP S 4HANA
    Config**, and click **OK**.

4.  Configure the following values in the **General** tab:

    1.  In the **Connection** drop-down menu, select the connection type:

        - **Basic authentication**  
          For basic authentication, enter the following required values:

          - **Service Base URL**  
            The URL of the SAP S/4HANA instance you want to manage

          - **Username**  
            The user name used to initialize the session

          - **Password**  
            The password used to authenticate the user

        - **OAuth 2 Application Connection Provider**  
          In OAuth 2.0 authentication, a TLS context that comes with a truststore can’t be added
          because the SDK doesn’t expose the TLS context afterward. For OAuth 2.0 authentication,
          enter this required information:

          - **Service base URL**  
            The base URL of the service provider of the SAP S/4HANA system to access from the
            connector. All other endpoints are derived from this base URL.

          - **Client ID**  
            The OAuth client ID that is registered with the service provider

          - **Client secret**  
            The OAuth client secret that corresponds to the client ID and is registered with the
            service provider.

          - **Token URL**  
            Token URL that corresponds to the URL of the endpoint that provides the access tokens

5.  Click **OK**.

6.  Click **Test Connection** to ensure that your access credentials are correct.

7.  Click the **Advanced** tab inside the **Connection** section to configure the following values:

    <table><colgroup><col> <col></colgroup><thead><tr><th>Studio Field</th><th>Description</th></tr></thead><tbody><tr><td><p><strong>Discovery Service Enabled</strong></p></td><td><div><div><p>Feature switch for service discovery. If disabled, the service discovery relative path is not applied.</p></div></div></td></tr><tr><td><p><strong>Discovery Service Path</strong></p></td><td><div><div><p>Relative path from the base URL to the service to use for automatic services discovery.</p></div></div></td></tr><tr><td><p><strong>Service directory</strong></p></td><td><div><div><p>Common HTTP directory for all SAP services. You can leave this parameter blank and then specify the HTTP directory individually for every service in the unlisted services list.</p></div></div></td></tr><tr><td><p><strong>Unlisted services</strong></p></td><td><div><div><p>List of services to add to the list of discovered services.</p></div></div></td></tr><tr><td><p><strong>Service discovery resolution timeout</strong></p></td><td><div><div><p>Connection timeout for service discovery.</p></div></div></td></tr><tr><td><p><strong>Service discovery timeout unit</strong></p></td><td><div><div><p>Time unit to use in the service discovery resolution timeout configuration.</p></div></div></td></tr><tr><td><p><strong>Default headers</strong></p></td><td><div><div><p>Custom headers that can be included in each request sent.</p></div></div></td></tr><tr><td><p><strong>Default query parameter</strong></p></td><td><div><div><p>Custom query parameters to include in each request sent.</p></div></div></td></tr><tr><td><p><strong>TLS configuration</strong></p></td><td><div><div><p>TLS configuration.</p></div></div></td></tr><tr><td><p><strong>Proxy configuration</strong></p></td><td><div><div><p>Configuration for executing requests through a proxy.</p></div></div></td></tr><tr><td><p><strong>Connection timeout</strong></p></td><td><div><div><p>Connection timeout for the request.</p></div></div></td></tr><tr><td><p><strong>Connection timeout unit</strong></p></td><td><div><div><p>Connection timeout unit for the request.</p></div></div></td></tr><tr><td><p><strong>Client timeout</strong></p></td><td><div><div><p>Client timeout for the request.</p></div></div></td></tr><tr><td><p><strong>Client timeout unit</strong></p></td><td><div><div><p>Client timeout unit for the request.</p></div></div></td></tr></tbody></table>

8.  Click the **Advanced** tab in the configuration window to configure the following values:

    <table><colgroup><col> <col></colgroup><thead><tr><th>Studio Field</th><th>Description</th></tr></thead><tbody><tr><td><p><strong>Time zone</strong></p></td><td><div><div><p>The time zone to which the Date objects returned from S/4Hana are converted.</p></div></div></td></tr><tr><td><p><strong>Batch buffer size</strong></p></td><td><div><div><p>The maximum memory the connector can use to keep batch requests in memory. Any requests requiring additional memory are buffered on disk.</p></div></div></td></tr><tr><td><p><strong>Buffer unit</strong></p></td><td><div><div><p>The unit of measure in which the batch buffer size parameter is expressed.</p></div></div></td></tr><tr><td><p><strong>Response timeout</strong></p></td><td><div><div><p>Response timeout for the request.</p></div></div></td></tr><tr><td><p><strong>Response timeout unit</strong></p></td><td><div><div><p>Response timeout unit for the request.</p></div></div></td></tr></tbody></table>

9.  Click **OK** to save the global connector configuration.

## Next Step

After configuring the SAP S/4HANA OData Connector for use in Studio, see the
[Examples](https://docs.mulesoft.com/sap-s4hana-cloud-connector/latest/sap-s4hana-cloud-connector-examples) topic for more Studio information.

## See Also

- [Anypoint Connector Configuration](https://docs.mulesoft.com/connectors/introduction/intro-connector-configuration-overview)

- [SAP S/4HANA OData Connector Reference](https://docs.mulesoft.com/sap-s4hana-cloud-connector/latest/sap-s4hana-cloud-connector-reference)

- [Salesforce Help](https://help.salesforce.com)
