RFC Connection: Integrating SAP Cloud Reporting for MAIF-Based Mobile Applications on SAP BTP services for Cloud Foundry

Context

If you're using SAP BTP services on a back end SAP system that has requirements to invoke communications with the internet outside of a corporate firewall, use RFC connectivity for usage metrics integration to SAP Cloud Reporting in MAIF. You'll need to manually create and define the RFC destination.

If the customer requires an RFC connection for outbounds rather than the direct HTTP connections for cloud metrics, use the following procedure to utilize the RFC destinations:

Procedure

  1. Create a new SM59 connection (ex: SAM<version>_METRICS_RFC).
  2. Add the target host of the server API from the SAP BTP services listing.

    Cockpit - Server API - Select the Target Host

  3. Add /mobileservices/service-key/metering to the Path Prefix field. Add 443 to the Service No field.

    SAP GUI - Transaction SM59 - Add Path Prefix and Service Number

  4. Set the SSL to Active in the Logon & Security tab. Save the RFC destination.
  5. Navigate to /syclo/admin. Then navigate to Start of the navigation pathAdministration Next navigation step Server ManagementEnd of the navigation path.
  6. Search for the mobile application you're configuring. Then find the unified server listing. Keep the UI Hostname as-is. Add /mobileservices/service-key/metering to the Server URL (FQDN).

    Admin Portal - Server Management Tab - Add Metering Configuration

  7. Find and copy the API key located in Start of the navigation pathConnectivity Next navigation step Service KeysEnd of the navigation path of SAP BTP services.

    BTP Mobile Services Cockpit - Mobile Connectivity - Service Keys - Copy the API Key

  8. Return to the Start of the navigation pathMiddleware Server Management Next navigation step Additional PropertiesEnd of the navigation path tab in the Admin Portal and add the following properties:
    1. Add the API key with the following properties:
      • Property Group: METERING

      • Property Name: X-API-Key

    2. Add /mobileservices/service-key-metering with the following properties:
      • Property Group: METERING

      • Property Name: service_path

    Admin Portal - Middleware Server Management Tab - Additional Properties

  9. In the SAP GUI, use transaction SE38 to execute the /MFND/CORE_CLOUD_METRICS_PROG report with the correct mobile application. Check SLG1 to ensure there is no HTTP error logged. See the following screenshot for an example of the error.

    SAP GUI - Transaction SE38 - Check SLG1 for a metrics configuration error - example

Next Steps

Continue using the App Creator program section found in Defining the SAP BTP services Connection Information, section Option 2: Establishing RFC Connection Information for the SAP BTP services App Creator.