Connecting Applications via Service Instances

You'll learn how to establish the technical connectivity between an application and an SAP Master Data Integration tenant using a service instance. In this scenario, the application assumes the role of a client of SAP Master Data Integration. For simplicity, the term "application" refers to both applications and application tenants. We use "client" to describe an application with established technical connectivity to an SAP Master Data Integration tenant.

You'll learn how to establish the technical connectivity between an application and an SAP Master Data Integration tenant using a service instance. In this scenario, the application assumes the role of a client of SAP Master Data Integration. For simplicity, the term "application" refers to both applications and application tenants. We use "client" to describe an application with established technical connectivity to an SAP Master Data Integration tenant.

Examples of applications that integrate via service instances are the following SAP-branded cloud applications and on-premise applications:

Prerequisites

Create a Service Instance

For each application you connect, create a dedicated service instance of SAP Master Data Integration from the SAP BTP Marketplace. Every application connecting to an SAP Master Data Integration tenant must use its own dedicated service instance.

Procedure

Go to SAP BTP Cockpit to create a new service instance in your subaccount. For more information, see Creating Service Instances.

Enter the following Master Data Integration specific information to configure a new service instance:

  1. Service : Master Data Integration

  2. Plan : The following are the available service plans:

    • sap-integration : To connect to SAP-branded cloud applications. For example, SAP S/4HANA Cloud, SAP S/4HANA Cloud Private Edition, or SAP SuccessFactors Employee Central. It must not be used for connecting other applications.

    • s4hana-onpremise : To connect to SAP S/4HANA systems. It must not be used for connecting other applications.

  1. Parameters : Configure the below instance parameters manually in the JSON format.

    a. The businessSystemId attribute serves as a display name for the client. For more information, see Configuring businessSystemIds for Client Applications.

    b. Provide a value for the mandatory application attribute based on the application that you intend to connect:

    Application

    Attribute value

    SAP Ariba

    ariba

    SAP Cloud for Customer

    c4c

    SAP Commerce Cloud

    commerceCloud

    SAP Concur

    concur

    SAP CPQ

    cpq

    SAP Customer Data Cloud

    cdc

    SAP Customer Data Platform

    cdp

    SAP Fieldglass

    fieldglass

    SAP Integration Suite (Coud Integration)

    ci

    SAP Master Data Governance

    mdg

    SAP Order Management Foundation

    omf

    SAP Subscription Billing

    hrc

    SAP SuccessFactors Employee Central

    sfsf

    SAP SuccessFactors Employee Central Payroll

    sfsf

    SAP S/4HANA Cloud

    s4

    SAP Project and Resource Management

    resource management

    SAP Field Service Management

    fsm

    For an overview of attributes and their purpose, see Configuring Clients.

    To update the service instance or the parameters, see Updating Service Instances.

Creating a Service Binding

To specify authentication between SAP Master Data Integration and applications, create a service binding for the relevant service instance. For more information, see Creating Service Bindings.

The service binding parameters determine the authentication mechanism. To learn which authentication mechanism a specific application supports and where to configure the artifacts of the chosen authentication mechanism, consult the respective application documentation. For more details, see Integration.

Authentication with OAuth 2.0 and mTLS and Externally Managed Certificates

This authentication method establishes trust by specifying the public part of a certificate that the application will use to authenticate itself. Concretely, you can specify the certificate in xsuaa.x509.certificate within the service binding parameters. The example below is a general recommendation which disables certificate pinning for an easier certificate rotation.

{
   "xsuaa": {
      "credential-type": "x509",
      "x509": {
         "certificate": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----",
         "certificate-pinning": false
      }
   }
}

For a full list of the available attributes and a detailed explanation, see Parameters for Self-Managed X.509 Certificates.

Copy the following values from the created service binding into the connected application to ensure proper authentication:

{... "uaa": {... "certurl": "https://mdi-demo-ngayoao5.authentication.cert.sap.hana.ondemand.com", "clientid": "sb-5a3aae05-f755-40c1-a52e-56f60c3aee7c!b275951|one-mds-master!b9046" }, "uri": "https://one-mds.cfapps.sap.hana.ondemand.com"}

Authentication with OAuth 2.0 and mTLS and Certificates Managed by SAP Authorization and Trust Management Service

This authentication method establishes trust by generating a certificate and key, which the application uses to authenticate itself. The below example will generate a certificate key pair:

{ "xsuaa": { "credential-type": "x509", "x509": { "key-length": 2048, "validity": 7, "validity-type": "DAYS" } }}

For a full list of the available attributes and a detailed explanation, see Parameters for X.509 Certificates Managed by SAP Authorization and Trust Management Service.

Copy the following values from the created service binding into the connected application to ensure proper authentication:

{... "uaa": {... "certificate": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----", "certurl": "someUrl", "clientid": "sb-5a3aae05-f755-40c1-a52e-56f60c3aee7c!b275951|one-mds-master!b9046", "key": "-----BEGIN RSA PRIVATE KEY-----...-----END RSA PRIVATE KEY-----\n" }, "uri": "https://one-mds.cfapps.sap.hana.ondemand.com"}

OAuth 2.0 with Client Credentials

This authentication method establishes trust by generating a set of client credentials, which the connected application uses to authenticate itself. Specifying no parameters, will generate a set of client credentials:

{}

Copy the following values from the created service binding into the connected application to ensure proper authentication:

{... "uaa": {... "clientid": "sb-5a3aae05-f755-40c1-a52e-56f60c3aee7c!b275951|one-mds-master!b9046", "clientsecret": "336b167b-df07-4448-8b79-5763168c1975$zZG7FKWVAJMO2pfJplPUsgy1LnZfR3BzwicgnuYusLY=", "url": "https://mdi-demo-ngayoao5.authentication.sap.hana.ondemand.com" }, "uri": "https://one-mds.cfapps.sap.hana.ondemand.com"}