APIs for Data Replication

Next to file uploads and integrations with other SAP systems, SAP Sustainability Control Tower offers APIs as another way to replicate data from your source systems into SAP Sustainability Control Tower, or to replicate data from SAP Sustainability Control Tower to your systems. All APIs are available from the SAP Business Accelerator Hub here: SAP Business Accelerator HubInformation published on SAP site.

To use these APIs, you must first subscribe to the API service as described in the setup guide: Subscribing to the Application and Services - subsection 'API Service'.

The following table gives an overview of the available APIs.

API

Data Flow

API Protocol

Description

Push Sustainability Master DataInformation published on SAP site

Inbound

OData

Imports your master data into the solution (reporting structures, dimensions, including custom dimensions).

Push Measure DataInformation published on SAP site

Inbound

OData

Imports actuals for all DPIs into the solution.

Push Basic Custom Metric DataInformation published on SAP site

Inbound

OData

Imports basic custom metric data into the solution.

Push Qualitative Sustainability Metric DataInformation published on SAP site

Inbound

OData

Imports qualitative ESG data into the solution to track sustainability disclosures.

Get Sustainability MeasuresInformation published on SAP site

Outbound

OData

Retrieves measure values from the solution to track quantitative data.

Get Sustainability Metrics (To Be Deprecated)Information published on SAP site

Get Quantitative Sustainability MetricsInformation published on SAP site

Outbound

OData

Retrieves metric values from the solution to track sustainability performance.

Setting up the Destination

Follow these steps to create and configure a new destination in your SAP BTP subaccount to use the ODATA APIs. This is relevant for calculating custom metrics with CPE-UM, for example. For more information on the prerequisites and calculations, see Calculating Custom Metrics with CPE-UM.
  1. Go to the SAP BTP cockpit and navigate to your subaccount that is subscribed to SAP Sustainability Control Tower.

  2. Navigate to Connectivity + Destinations .

  3. Add a new destination with the following values:

    Destination Configuration

    Field

    Value

    Name

    SCT_ODATA

    Type

    HTTP

    Description

    A meaningful description of your choice.

    URL

    Obtain the URL from the apiHost under the section endpoints in the API service key. Remove /api at the end of the URL.

    Proxy Type

    Internet

    Authentication

    OAuth2ClientCredentials

    Client ID

    The OAuth Client ID from your API service instance.

    Client Secret

    The OAuth Client Secret from your API service instance.

    Token Service URL Type

    Dedicated

    Token Service URL

    The pre-configured token URL in your API service instance. You can obtain it from the URL field of the section uaa in the service key. Example:

    https://<mytenant>.authentication.eu20.hana.ondemand.com/oauth/token
  4. In Additional Properties, select Use default JDK truststore.

  5. You can now check the connection.

For more information, see Using the Destinations Editor in the Cockpit.