Show TOC

Configuring SAP Web Dispatcher to Dispatch Requests to Different SystemsLocate this document in the navigation structure

In SAP Fiori launchpad, you can call OData services on different systems.

For example, this is necessary for catalog federation or if specific OData services need to be called on a system different from the SAP Fiori launchpad front-end server. To achieve this, URLs for OData service calls are enriched by a segment parameter o having the system on which the service is to be called as the value. This mechanism is as specified for the origin segment parameter by SAP Gateway.

Note Depending on your system landscape, you can set up the segment parameter resolution on the SAP Gateway server, on SAP Web Dispatcher, or on both.

The example URL https://host:port/sap/opu/odata/MY_SERVICE;o=SYS can thus be routed to the corresponding system.

Use modification rules on SAP Web Dispatcher to route URLs according to the correct system:
  1. Define modification rules as a file (for example, modification_rule.txt) with the following content to properly route requests based on the ;o= origin segment parameter containing the system.
    Note The regular expression *;o=<system>* below is an example; you can provide a more specific expression as needed.

    if %{PATH} regimatch *;o=SYS* SetHeader x-sap-webdisp-target-sid <FOO> [break]

    if %{PATH} regimatch *;o=OTHER* SetHeader x-sap-webdisp-target-sid <BAR> [break]

  2. Add the modification file to the SAP Web Dispatcher profile file (*.pfl):

    icm/HTTP/mod_<number> = PREFIX=/,FILE=modification_rule.txt

    Note To ensure that the dispatching works properly, the profile file must contain systems both for FOO and BAR.