Show TOC

Enabling Multiple Back-End SystemsLocate this document in the navigation structure

Procedure

  1. In the launchpad designer, create two or more tiles.

    In the tile configuration, provide the parameter sap-system=<SYSTEM_ALIAS> in the Parameters field.

    The URL fragment for navigating to the application will then look like this:

    #SemanticObject-action?sap-system=<SYSTEM_ALIAS>

  2. In the launchpad designer, create target mappings for the semantic object and action of your tiles.

    If you want to enable users to access your application on all systems, you only need to create one target mapping for all tiles created in step 1.

    If you want to prevent navigation to a system for users who do not have any authorizations for this application on this system, we recommend to create a filter in the target mapping. In the Parameters table of the target mapping configuration, enter the following settings:

    Field

    Value

    Name

    sap-system

    Mandatory

    Active

    Value

    Enter the system alias of the system for which you want to use this target mapping.

    Then, assign the target mappings to the respective roles.

  3. In the application code, make sure that your application propagates the value of the sap-system parameter to the origin segment parameter of the OData call.

    Example: /sap/opu/finsrv;o=<SYSTEM_ALIAS>

    If you use SAPUI5 1.30 or higher, and if you use the data source mechanism of the app descriptor to create the OData model, the framework takes care of propagating the segment parameter.

    In other cases the application code has to take care of propagating the value of the sap-system parameter into the service URL. The SAPUI5 service function sap.ui.model.ODataUtils offers the setOrigin method, which provides a convenient way to append an OData segment to a service URL.

  4. In Customizing for SAP Gateway, make sure that the SAP system aliases are maintained and assigned to OData services.

    In SAP Reference IMG (transaction SPRO), select the following paths:

    Start of the navigation path SAP NetWeaver Next navigation step Gateway Next navigation step OData Channel Next navigation step Configuration Next navigation step Connection Settings Next navigation step SAP NetWeaver Gateway to SAP System Next navigation step Manage SAP System Aliases End of the navigation path

    Start of the navigation path SAP NetWeaver Next navigation step Gateway Next navigation step OData Channel Next navigation step Administration Next navigation step General Settings Next navigation step Assign SAP System Aliases to OData Service End of the navigation path