Defining the SAP BTP services Connection Information

-
Direct connection: If your back end system allows outbound HTTPs connections, you can connect directly to SAP BTP services
-
RFC connection: Use this method if your back end system is locked behind a firewall that disallows direct outbound HTTs connections and needs to be routed through a proxy. Establishing an RFC connection requires populating the Mobile Services Connection Information with the Middleware Server GUID.
Retrieve the Admin API from the Important Links section, regardless of which method you're using to connect.

Option 1: Directly Connecting to SAP BTP services from the Back End System
For systems that do not require outbound proxies or special certificate configurations, you can copy the Admin API directly from the Important Links section of SAP BTP services. Paste the Admin API into the MS Admin API or MW Server GUID field.
Option 2: Establishing RFC Connection Information for the SAP BTP services App Creator
An option is available to define the special settings in an RFC connection using transaction SM59 that wraps the connection with the middleware server GUID to reference by the calling application. Use this option for systems that require outbound proxies or special certificate configurations not captured by the standard direct HTTPs outbound communication methods that SAP back end systems use.
The middleware server GUID is generated when a middleware server is defined in the Administration Portal. The defined middleware server should point to the MS Admin API URL, with /app appended.
Use the F4 help to return a list of all defined middleware servers.
-
Open the Configuration of RFC Connections using transaction SM59.
-
Create an RFC destination of type G:
-
Retrieve the hostname of the admin API without any of the path following the hostname. Populate the information into the Host field.
-
Populate the Path Prefix field with the rest of the path in the admin API. Append app to it with no trailing slash.
-
Complete the HTTP Proxy Options as required by your firewall rules.
-
Enable the SSL connection settings.
See the following screenshot for an example of RFC destination settings with the following settings:-
Connection Type: G
-
Target Host: mobile-service-example.hana.ondemand.com
-
Port (Service No.): 443
-
Path Prefix: /cockpit/v1/org/ExampleOrg/space/ExampleSpace/app
-
SSL: Active

-
-
Open the Administration Portal using transaction /syclo/admin.
-
Select the Administration tab.
-
Click Server Management, then click Create.
-
Create a meaningful server name.
-
Provide the RFC Destination or the UI Host Name and Server URL pointing to the MS Admin API created in Step 2.
-
Select the mobile application for which you are creating a mobile services application.
See the following screenshot for an example of the middleware server management configuration with the following settings:-
UI Host Name: https://mobile-service-example.hana.ondemand.com
-
Server URL: /cockpit/v1/org/ExampleOrg/space/ExampleSpace/app

-
-
Save your changes.