Skip to content

General

You can run abap2UI5 with a variety of custom configurations. The default setup works out of the box. To customize it, implement the z2ui5_if_exit interface:

abap
CLASS zcl_a2ui5_user_exit DEFINITION PUBLIC.

  PUBLIC SECTION.
    INTERFACES  z2ui5_if_exit.

ENDCLASS.

Theme

For example, to change the theme:

abap
METHOD z2ui5_if_exit~set_config_http_get.

    cs_config-theme = `sap_horizon_dark`.

ENDMETHOD.

UI5 Bootstrapping

To pick the source for bootstrapping UI5:

abap
METHOD z2ui5_if_exit~set_config_http_get.

    cs_config-src = `https://ui5.sap.com/1.116.0/resources/sap-ui-core.js`.

ENDMETHOD.

See the bootstrapping variants and SAP limitations, documented in the SAP UI5 docs.

Title

To pick a custom app title:

abap
METHOD z2ui5_if_exit~set_config_http_get.

    cs_config-title = `my title`.

ENDMETHOD.

Style / CSS

To set custom styles or CSS:

abap
METHOD z2ui5_if_exit~set_config_http_get.

    cs_config-styles_css = `<<own css>>`.

ENDMETHOD.

Logon Language

To pick the logon language, use the sap-language URL parameter. For other URL parameters, see the SAP documentation.