SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

WebSocket RFC to Cloud

Learn how to establish a WebSocket RFC connection from an on-premise to a cloud system.

Overview

🎓 intermediate 40 min. ABAP ConnectivityIntermediateABAP Development

You will learn

  • โœ”How to connect an on-premise system to cloud using WebSocket RFC.
Felix Draeger F Felix Draeger February 29, 2024
Created by March 21, 2023
Contributors

Prerequisites

Prerequisites

  • Access to an SAP S/4HANA system of at least version 1909
  • Access to the ABAP environment in a cloud system
  • Access to the communication management apps in SAP Fiori launchpad.
  • Latest version of ABAP Development Tools (ADT) installed with a project for each system.

In this tutorial, wherever XXX appears, use a number (e.g. 000).

Steps

Intro

The following tutorial describes how to establish a connection between an on-premise ABAP system and a cloud-based ABAP system.

If the on-premise ABAP System is an S/4HANA older than version 1909, the underlying ABAP platform can’t perform WebSocket RFC calls. The SAP Business Connector is required in this case. See WebSocket RFC to Cloud Using SAP Business Connector for more information.

Step 1 Setting up the provider system
โ€”

First, you have to create a communication scenario based on a remote-enabled function module (RFM) in the provider cloud system. You can also use your own communication scenario and RFM, or use one of the SAP-delivered communication scenarios, for example SAP_COM_0636. For this tutorial, we will create a simple RFM that can receive a string, adds another string to it and returns the result to the sender.

WebSocket RFC
WebSocket RFC

Step 2 Create a remote-enabled function module
+
Step 3 Enable the function module for remote function call
+
Step 4 Create and publish a communication scenario
+
Step 5 Create a communication arrangement
+
Step 6 Create a destination in the consumer system
+
Step 7 Perform the WebSocket RFC call
+
Step 8 Result
+
Step 9 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 9
1. Setting up the provider system 2. Create a remote-enabled function module 3. Enable the function module for remote function call 4. Create and publish a communication scenario 5. Create a communication arrangement 6. Create a destination in the consumer system 7. Perform the WebSocket RFC call 8. Result 9. Test yourself

Learn more →