cancel
Showing results for 
Search instead for 
Did you mean: 

Connect to ABAP environment using RFC

Gustaf
Explorer
0 Kudos

Hello, I have created an ABAP environment on my SAP BTP Cloud trial account. The runtime environment is Cloud Foundry. Now I’m trying to connect to it with RFC connection, although I’m struggling finding the right host and port to connect. So far I tried to connect with username/password. I found some NAT IPs (egress, IPs for requests from an ABAP System) which I tried to connect to but none of them worked. Or is there an url to access the environment? Could anyone help me with this? Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

kaidehmann
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @Gustaf ,

did you already have a look at https://developers.sap.com/tutorials/abap-websocket-rfc.html?

Best regards
Kai

Gustaf
Explorer
0 Kudos
Hi Kai, thank you very much for quick reply. I think this is what Im looking for. I tried to launch ABAP development tools but could not find how to activate it. Do I need to install it first? Thanks.
kaidehmann
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gustaf,

yes, you need to install ADT locally as explained in the getting started guide: https://help.sap.com/docs/SAP_S4HANA_CLOUD/6aa39f1ac05441e5a23f484f31e477e7/e3527dfa1c5a41f69d4e6369...

Best regards
Kai

Gustaf
Explorer
0 Kudos

Hi Kai, thank you for your answer. 

Is this for connecting with eclipse? I'm trying to do this from just a Java application in IntelliJ connecting to the ABAP environment in the SAP BPT cockpit.

Thanks

Gustaf

kaidehmann
Product and Topic Expert
Product and Topic Expert
0 Kudos
The tutorial shows how to connect from an ABAP onPremises system to a cloud-based ABAP system. ADT is the IDE that is used to maintain the required code. Do I get it correctly: you want to call RFC from a Java application?
Gustaf
Explorer
0 Kudos
Hi Kai, Thanks for your reply. Yes correct trying to build up the connection directly from the Java application.
kaidehmann
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gustaf,

I recommend using the SAP Java Connector.

Best regards,
Kai

Gustaf
Explorer
0 Kudos
Hi Kai, thanks a lot for your help. I've been trying to connect with the Java connector and is working for our SAP Hana Sandbox. But here in the ABAP test environment I'm struggling finding the correct values for host, client etc. Also wondering if external connection is blocked somehow and needs to be enabled, like e.g. removing firewall? Thanks BR Gustaf
kaidehmann
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Gustaf, you have to add the RFC function module to a communication scenario and maintain a communication arrangement for the scenario in the ABAP environment, as shown in the tutorial that I provided. The arrangement provides the credentials to access the function module, such as host, user name, and password, for instance. Please note, that it is not possible to maintain communication arrangements in the trial version of the ABAP environment. This can be done in a free tier or licensed system. Best regards, Kai

Answers (1)

Answers (1)

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gustaf, 

I guess it makes sense that you have a look a the tutorial for using JCo in Cloud Foundry with ABAP systems running in SAP's cloud solutions. How to configure destinations is described in the RFC Destinations topic. Also have an eye on the restrictions.

Best regards,
Markus

Gustaf
Explorer
0 Kudos
Hi Markus, thanks a lot for your answer. If I now, using the jco, enter as in the description for instance jco.client.ashost=sales-system.cloud, and jco.client.client=000 in the java application, where do I see and configure these values on the ABAP environment? Thanks, Gustaf