SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Integrate SAP BTP, Cloud Foundry Themes with SAP S/4HANA

Learn how to use UI theme designer service on SAP BTP Cloud Foundry with your SAP S/4HANA on-prem system: Create a service key in CF, a destination with an OAuth client in S/4HANA, and a customizing for remote theming. End-to-end test the connection.

Overview

🎓 advanced 45 min. UI Theme DesignerAdvancedHow ToSAP Business Technology Platform

You will learn

  • How to create a service key for UI theme designer on SAP BTP Cloud Foundry (“CF theming service”).
  • How to create an OAuth client in SOAUTH2_CLIENT of your S/4HANA on-prem system (“ABAP system”) with this service key, that can be used for theming.
  • How to create a destination to the CF theming service in SM59 of your ABAP system.
  • How to create a customizing in SPRO to use this destination for remote theming of your ABAP system.
  • How to end-to-end-test the connection: create a theme in the CF theming service, apply it in your ABAP system.
Dominik Schreiber D Dominik Schreiber July 22, 2026
Created by July 22, 2026
Contributors

Prerequisites

Prerequisites

  • In your ABAP system: User with permission to create an OAuth client in SOAUTH2_CLIENT.
  • In your ABAP system: User with permission to create a destination in SM59.
  • In your ABAP system: User with permission to do customizing in SPRO.
  • In SAP BTP Cloud Foundry: Subaccount with UI Theme Designer: Initial Setup of UI Theme Designer successfully carried out.
  • In SAP BTP Cloud Foundry: User with permission to create a Service Key.
  • In SAP BTP Cloud Foundry: User with the Workzone_Admin/Workzone_Advanced_Theming or Launchpad_Admin/Launchpad_Advanced_Theming role collection (or role collection of your PaaS setup that includes the theming roles Viewer, Editor, CustomCssEditor and Publisher, as described in UI Theme Designer: Permissions).

Throughout this tutorial, we’ll refer with CF theming service to the UI theme designer service on SAP BTP Cloud Foundry, and with ABAP system to your SAP S/4HANA on-prem system.

Steps

Step 1 Create the service key in SAP BTP Cloud Foundry

In this tutorial, you’ll configure your ABAP system to use the CF theming service as a destination for “remote theming”. The CF theming service requires authenticated requests. Your ABAP system will use OAuth2 client credentials to authenticate. In this step, you’ll create a service key for the CF theming service in the SAP BTP Cloud Foundry cockpit. Optionally, you can use the cf CLI as an alternative route to get this service key.

  1. In the BTP Cockpit of your subaccount, from the Cloud Foundry space, choose Services > Instances from the left-hand navigation:

    1.1: BTP Cockpit - CF space
    1.1: BTP Cockpit - CF space

  2. Select the service with UI Theme Designer in plan standard to view its details:

    1.2: BTP Cockpit - service instances
    1.2: BTP Cockpit - service instances

  3. Under Service Keys choose Create:

    1.3: BTP Cockpit - CF theming service instance
    1.3: BTP Cockpit - CF theming service instance

  4. In the New Service Key dialog, provide a meaningful machine-friendly Service Key Name like “abap-remote-theming”, leave binding parameters as the default {} and choose Create:

    1.4: BTP Cockpit - create service key
    1.4: BTP Cockpit - create service key

  5. Under Service Keys select the newly created service key:

    1.5: BTP Cockpit - CF theming service instance with service key
    1.5: BTP Cockpit - CF theming service instance with service key

  6. From the Credentials dialog, copy uaa.clientid, uaa.clientsecret, uaa.url and uri (you will need uaa.clientid in step 2.3, uaa.url in step 2.4, uaa.clientsecret in step 2.6 and uri in step 3.4):

    1.6: BTP Cockpit - view service key
    1.6: BTP Cockpit - view service key

  7. Alternative: Use the cf CLI to create the service key. See Cloud Foundry Documentation: Using the Cloud Foundry Command Line Interface (cf CLI) for details on how to interact with the cf CLI.

    Shell
    # 1. login to your CF space, given $CF_API_URL, $CF_ORG and $CF_SPACE
    cf login -a $CF_API_URL -o $CF_ORG -s $CF_SPACE
    # 2. find the name of the service with offering=theming and plan=standard
    THEMING_SERVICE=$(cf services | awk '$2 == "theming" && $3 == "standard" {print $1}')
    # 3. create a service key named "abap-remote-theming" for that service
    cf create-service-key $THEMING_SERVICE abap-remote-theming --wait
    # 4. view uaa.clientid, uaa.clientsecret, uaa.url and uri of that service key
    cf service-key $THEMING_SERVICE abap-remote-theming | tail -n +3 | jq '{clientid: .credentials.uaa.clientid, clientsecret: .credentials.uaa.clientsecret, url: .credentials.uaa.url, uri: .credentials.uri}'
Step 2 Create the OAuth2 client with SOAUTH2_CLIENT in SAP S/4HANA
+
Step 3 Create the destination with SM59 in SAP S/4HANA
+
Step 4 Create the customizing with SPRO in SAP S/4HANA
+
Step 5 Verify that your SAP BTP, Cloud Foundry Themes are integrated with your SAP S/4HANA system
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Create the service key in SAP BTP Cloud Foundry 2. Create the OAuth2 client with SOAUTH2_CLIENT in SAP S/4HANA 3. Create the destination with SM59 in SAP S/4HANA 4. Create the customizing with SPRO in SAP S/4HANA 5. Verify that your SAP BTP, Cloud Foundry Themes are integrated with your SAP S/4HANA system

Learn more →