Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Connection between SAP system and Java tool via RFC

Former Member
0 Likes
2,318

Hi All,

Some third party(company) has to access our SAP system from their Java tool. I have created SAP user ID(User type: system) and password with required authorizations. Which data i need to get from the third party to allow them to connect to SAP system and how to configure it in the SAP system?

Thanks in advance,

NarsiReddy.

8 REPLIES 8
Read only

roberto_vacca2
Active Contributor
0 Likes
1,799

Hi

TO allow them to connect to SAP system you have to configure out an RFC in SAP.

From SM59 create new HTTP Connection  to External Service

Connection type G

You need to enter Host IP , Port and Context Root.

Click on SAVE and get message.

After go on Logon and Security and set basic authentication with your USER ID created..

Click on SAVE and after test your connection.

That's all I suppose.

Hope to help

Read only

0 Likes
1,799

Hi Roberto Vacca,

Host IP , Port and Context Root should i get these details from third party who are using Java tool or these parameters belongs to my SAP system?


Thanks & regards,

NarsiReddy.

Read only

0 Likes
1,799

Hi.

The Java tool connect to a service I suppose that is running on a machine-server I suppose.

You've got to know the IP of this machine and the main context root.

Hope to help.

Read only

0 Likes
1,799

Hi Roberto Vacca,


Thank you for your reply,


So what port number do i need to give for the RFC connection? For allowing the third party to connect with my SAP system i just need to create the RFC connection and it is done from my side? Is this right?


So from the third party side, what they should do? can you please share your ideas on this? I have read some threads that they should install JCO connector, is this right and how to do so?



Thanks & regards,

NarsiReddy.

Read only

0 Likes
1,799

Hi

If you want to call a directly a RFC yes they need to install SAP connector for Java,

but if it can use the Web Service, they didn't it

Max

Read only

0 Likes
1,799

Hi Max,

So for establishing a connection between SAP and Java tool, In SAP is it enough if i create a RFC connection in SM59 or do i need to do something else? It is an inbound connection, Java tool calls the SAP.

Thanks in advance,

regards,

NarsiReddy

Read only

0 Likes
1,799

Hi

I'm not a BASIS but I suppose the problem is the server where your Java solution is has to see SAP, so I don't know (but I don't believe it)  if it needs to set the configuration in SM59.

It needs to download the SAP Connector for Java (in your Java solution) in order to link to SAP and call a RFC

But It's also possible to generate a web service based on a RFC, in this case you should't need SAP Connector, but only the web service address, wsdl.

Max

Read only

0 Likes
1,799

Hi.

YOu've only to test your connection RFC destination and your work is done.

Pay attention to user privilegies you've entered (profiles SAP_ALL, etc)

In your case we're talking about Inbound Calls (Java=> Abap).

By using a component called Java Connector JCO, your third party(company) can call an RFC from the R/3 system. They'll use the JCO.Class library

IN RFC setup from SM59:

Target Hos is the host you want to connect to, for example pw0123.sap.com

Service No.: (Http or Https Port) for Http : 5<system_number>00

                                               for Https: 5<system_number>01

example 50001

The port to a J2EE system has always this mask 5<sys_num>00

Path Prefix (sometime you can ignore it) /rep

Hope to help

Bye