Upgrade SAP S/4HANA OData Connector to 2.x

Upgrade Anypoint Connector for SAP S/4HANA OData (SAP S/4HANA OData Connector) to take advantage of the increased security offered by using OAuth 2.0 authentication to connect to SAP S/4HANA OData.

Supported Upgrade Paths

This is a direct upgrade from version 1.2.1 version to 2.x.x.

From Version To Version



What’s Changed


You can now configure the response, client, and connection timeout parameters.


SAP S/4HANA OData Connector now provides support for the OData APIs exposed by SAP S/4HANA S/4HANA on-premise.


  • OAuth 2.0 is now supported.
    The OAuth 2.0 Application Connection Provider option is added to Connection types. For information about the configuration parameters for this connection type, see SAP S/4HANA OData Connector Reference.

  • Mule runtime engine (Mule) 4.2.1 or later is required.

  • The default value for the Service directory field was removed.

  • Because the base package has changed, all exported classes now have different fully qualified names.

  • The group ID of the connector’s JAR has changed.

Requirements and Limitations

Be aware of the following requirements and limitations before you upgrade to the latest version.


You must use Mule 4.2.1 or later.


This upgrade breaks backward compatibility with 1.x.x versions of the connector.

Upgrade Prerequisites

Before you upgrade, create a backup of your files, data, and configurations in case you need to restore to them.

Upgrade Steps

Follow these steps to perform the upgrade:

  1. In Anypoint Studio, create a Mule project.

  2. In the Mule Palette view, click Search in Exchange.

  3. In Add Dependencies to Project, enter sap s/4hana odata in the search field.

  4. In Available modules, select SAP S/4HANA OData Connector and click Add.

  5. Click Finish.

  6. Verify that the mule-sap-s4hana-cloud-connector dependency version is updated to the version of the connector you are using in the pom.xml file in the Mule project.

Studio upgrades the connector automatically.

Post Upgrade Steps

After you install the latest version of the connector, verify the upgrade:

  1. In Studio, verify that there are no errors in the Problems or Console views.

  2. Verify that there are no problems in the project pom.xml file.

  3. Test the connection and verify that the operations work.


If there are problems with caching the parameters and metadata, try restarting Studio.

Revert the Upgrade

If it is necessary to revert to the previous version of SAP S/4HANA OData Connector, change the mule-sap-s4hana-cloud-connector dependency version in the project’s pom.xml to the version to which you want to revert.