Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Java+SAP Cloud platform + SAP Cloud Connector to call functions in ABAP On-Premise system

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to use the Java+SAP cloud platform + SAP Cloud Connector to call functions in the ABAP On-Premise system. I hope you will get something after reading this article. Let's discuss it together.

In order to ensure that Internet applications can access services in the Corporate Network system, we need to use SAP Cloud Connector as a communication bridge.

My hypothetical scenario for this article is to develop a Java Web application and deploy it on SAP Cloud Platform (cloud platform). Users access the application in Wechat and call functions in the ABAP On-Premise system.

The main implementation steps for this scenario:

Download, install and configure Cloud Connector. Cloud Connector needs to be located in Corporate Network as well as the ABAP On-Premise system.

Complete the necessary configuration on the SAP cloud platform and establish a connection with Cloud Connector.

Develop Java Web applications and deploy to SAP cloud platform.

The architecture diagram is shown below.

Start Cloud Connector after the installation is complete, and make sure that the service corresponding to Cloud Connector is seen in the service list of the operating system:

Create a new instance of Connector, which I call Jerry_SCC. Region and Subaccount need to be specified as the corresponding fields of the SAP cloud platform to which you need to connect, so that the Connector instance can be associated with the corresponding SAP cloud platform.

Create a mapping from a virtual system (virtual system) to an ABAP On-Premise system in this interface. The virtual system I created is named my-backend-system, which maps to a SAP internal ABAP system AG3. The access protocol (Protocol) is specified as RFC. Click the check button, and if the information of the ABAP system is maintained correctly, the status of the ABAP system will be marked as Reachable (accessible).

Function Name means STFC,Naming Policy and Prefix, which means that all functions that begin with STFC in the AG3 system can be accessed through this Connector instance.

At this point, Cloud Connector configuration is complete.

2. Configuration on SAP cloud platform

After the Cloud Connector configuration in the previous step is completed, you can see the configured instance on the Cloud Connectors tab of the SAP cloud platform.

This step requires the creation of a Destination on the SAP cloud platform for use by the Java program. This Destination is similar to the Destination created by the ABAP Netweaver transaction code SM59.

Set a breakpoint in the STFC_CONNECTION function of the ABAP system, and the user input from Wechat can also be observed in the ABAP debugger:

After reading this article, I believe you have a certain understanding of "how to use Java+SAP cloud platform + SAP Cloud Connector to call functions in ABAP On-Premise system". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report