简体   繁体   中英

How to use an SAP ABAP RFC in SAPUI5 without using NetWeaver Gateway?

There is an SAP ABAP standard table that I'm trying to access in SAPUI5. I have created an RFC. How do I use this RFC in SAPUI5 to get the data there without using NetWeaver Gateway?


You can use a rest service or Web Service on the SAP system and consume the URL in your SAPUI5 application. You can create a SICF service and developer a handler for the service. In the handler you can fetch the content from the table and return the content.

Thanks and Regards, Veera

I agree with Veera's answer and think that this is the best way of doing it without the Gateway when your application is deployed on the ABAP system (ie in the BSP repository). For completeness sake, I will also describe an alternative way of doing it if you are interested in exposing the application on the HANA Cloud Platform (HCP).

ABAP RFCs can be consumed through the HANA Cloud Connector (HCC) by HCP applications. So, if you would want to put your application in the HCP, then an idea would be to expose the RFC through the HCC, consume it eg in a Java application and the expose it to a UI5 app through this Java app (eg with a Servlet or a JAX-RS service). You can find an example of such a scenario in this repository and here you can find the SAP documentation about this.

Another HCP example is SFlight Sample Application .

Open source python and nodejs rfc connectors are also available, if RFC connection required.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM