Show TOC

Setting a Custom Theme via URL ParameterLocate this document in the navigation structure

To run applications with a custom theme, you can use the URL parameter sap-theme to reference the theme ID.

Prerequisites

The custom theme you want to set for your application was published to the server.

Context

The procedure below works for the following UI technologies:
  • Web Dynpro ABAP
  • FPM
  • SAPUI5 (only for local themes)

Procedure

  1. Start the Tool for Customer Themes Maintenance using transaction /UI5/THEME_TOOL.
  2. Select Info for your theme and choose Choose (F2).
    The value required for the URL parameter sap-theme is displayed.
    Note

    The value of this parameter contains the ID of your theme and the theme root:

    sap-theme=<theme ID>@<theme root>.
    • The theme ID is the ID that was entered in the Publish dialog box.

    • The theme root is the URL of the theme repository that contains the theming files.

      The theme root path looks as follows:

      https://<hostname>:<port>/sap/public/bc/themes/~client-<client>

      You can only specify the URL of the host you are using to run the UI theme designer. Loading a theme from a remote host is not yet supported.

  3. Enter the URL of your application in the address field of your browser.
  4. Add the parameter sap-theme including the value you retrieved using transaction /UI5/THEME_TOOL to this URL.
  5. Press Enter to launch the application with the specified theme.