A connection template is a named connection to a data source: the type of the source (for example SAP BW or ODBC) and the parameters to reach it. CMS items, the REST API and plugins such as biExport refer to a connection template by its name, so the connection details are maintained in one place.
Connection templates are maintained in the Configurator. Creating, changing and deleting them needs the usergroup Connection Administrators (or Administrators).
Parameters
When a connection template is created, it gets the parameters of its type. Each parameter has:
| Field | Description |
|---|---|
| Name | The parameter name the type knows, for example HOSTNAME or USERNAME. |
| Type | STRING, PASSWORD, INTEGER or BOOLEAN. |
| Value | The stored value. |
| Is Supplied | Checked: the server uses the stored value. Unchecked: the user enters the value when logging on, typically user name and password. |
Additional parameters can be added to a template, for example for a plugin that reads them.
Placeholders
As the value of USERNAME, PASSWORD and REALM, these placeholders are replaced from the signed-in user when the connection is opened:
| Placeholder | Replaced with |
|---|---|
%OPENBI_USERNAME% |
the user name |
%OPENBI_PASSWORD% |
the user's password |
%OPENBI_REALM% |
the user's domain |
SAP BW (SAP_BW)
Connects to SAP BW over RFC with the SAP NetWeaver RFC library.
| Parameter | Description |
|---|---|
| HOSTNAME | Application server. |
| SYSTEMNO | System number. |
| MSHOST | Message server, for a logon group instead of HOSTNAME. |
| MSSERV or SYSID | Message server service, or the system ID, with MSHOST. |
| GROUP | Logon group with MSHOST, default PUBLIC. |
| CLIENT | Client. |
| LANGUAGE | Logon language. |
| ROUTER | Optional SAProuter string, for example /H/saprouter.example.com/S/3299, also with several hops. |
| USERNAME / PASSWORD | SAP user and password, stored or entered at logon (see Is Supplied). |
| USE_SNC | Empty: logon with user and password. X: single sign-on with the Windows user over SNC (Kerberos), see below. |
| SNC_PARTNERNAME | SNC name of SAP BW (profile parameter snc/identity/as), with USE_SNC. |
| SNC_LIB | Path of the SNC library, with USE_SNC, default C:\GSS_API\gx64krb5.dll. |
| SNC_QOS | SNC quality of protection, default 3. |
| REALM | Windows domain, with USE_SNC when the server logs on with USERNAME / PASSWORD instead of the signed-in Windows user. |
| REPOSITORY_USER / REPOSITORY_PWD | Optional technical user, used by plugins (for example biExport) for calls that do not run as the user. |
| TRACE | Optional RFC trace level of the SAP NetWeaver RFC library, for example 1. |
With USE_SNC = X the server logs on to SAP BW as the Windows user who signed in to open bi server (Windows authentication), using Kerberos. This needs open bi server on Windows in the same or a trusted domain as SAP BW, Kerberos delegation to SAP BW, and SNC configured in SAP BW.
SAP RFC Server (SAP_RFCSERVER)
Registers open bi server as an RFC server program at the gateway of a SAP system, so that SAP can call functions in open bi server - for example the callback that delivers logon tickets for single sign-on in biExport for Analysis for Office. In SAP, an SM59 TCP/IP destination of type Registered Server Program with the same program ID points to it, and the gateway (reginfo) has to allow the registration.
| Parameter | Description |
|---|---|
| GWHOST | Gateway host of the SAP system. Behind a SAProuter, the full route string, for example /H/saprouter/S/3299/H/10.1.2.3. |
| GWSERVICE | Gateway service, sapgw<system number>, for example sapgw00. |
| PROGRAM_ID | Program ID, the same as in the SM59 destination. |
| CLIENT / SYSTEM_NO | Client and system number of the SAP system. |
| REPOSITORY_USER / REPOSITORY_PWD | User for reading the interfaces of the called functions from the SAP system. |
| APPLICATION_SERVER | Optional. The application server for REPOSITORY_USER, if it is not GWHOST. |
| SYSTEM_ID | Optional. The system ID of the SAP system (newer server versions), see below. |
| TRACE | Optional RFC trace level. |
The RFC server programs are started with open bi server: restart the service after creating or changing a template of this type.
When the SAP system calls, open bi server has to find the template it belongs to. System number and client have to match, and then:
- the host name the SAP system reports is part of
APPLICATION_SERVER(orGWHOST), or SYSTEM_IDis the system ID of the caller (newer server versions), or- it is the only
SAP_RFCSERVERtemplate with that system number and client (newer server versions).
Behind a SAProuter, GWHOST usually holds an IP address, while the SAP system reports its fully qualified host name, for example bwhost.example.com. If no template is found, SAP reports Function ... not found for the called function. With older server versions, set APPLICATION_SERVER to the route ending in that host name, for example /H/saprouter/S/3299/H/bwhost.example.com; with newer versions, set SYSTEM_ID when there is more than one RFC server template for the same system number and client.