Skip to Content
Author's profile photo Raj Kishor

Setup JCo RFC Destination for ABAP system

SAP JCo RFC Destination:

SAP JCo connector is using for Java Application to communicate with SAP ABAP system via Remote Function Call (RFC). JCo RFC support bi-directional for communication like Java to ABAP system and ABAP system to Java system.

To Access the JCo RFC, We need to login with Visual Administrator.

  1. Maintaining a JCo connection in the portal

Visual Administrator:

Goto the Path: Drive\usr\sap\<SID>\JC<nr>\j2ee\admin\go.bat

1.JPG

Click on –> Connect

2.JPG

Provide the Password and click on –> Connect

3.JPG

Now you have successfully connected the Visual Administator.

Next, Go to <SID> –> Server 0(node)–>Services –>JCo RFC Provider

4.JPG

Provide the details like below:

5.JPG

Click on –>Set

We have completed the JCo RFC destination.

Now, we need to login in ABAP system and test the RFC.

Login to system.

6.JPG

Go to Tx. SM59. Select the TCP/IP connections

7.JPG

Click on –>Create

Provide the detail:

8.JPG

Click on Connection Test.

9.JPG

RFC connection is working!!!.

Hope this will help to resolve the issue.

Thanks,

Raj Kishor.








Assigned Tags

      12 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Hemanth Kumar
      Hemanth Kumar

      maybe server count 8 is not a good idea 🙂

      Author's profile photo Isaias Freitas
      Isaias Freitas

      Setting "server count" to a number higher than 1 enables parallel calls to the registered program.

      Each registration can be used only once at a time.

      If server count is 1 and two ABAP work processes try to communicate with the registered program, one will proceed and the other will wait for a certain time (gw/reg_timeout).

      In addition, the registration might be denied depending on the gateway security features.

      The Gateway Access Control Lists - Application Server Infrastructure - SCN Wiki page can help in that case.

      Author's profile photo Divyanshu Srivastava
      Divyanshu Srivastava

      I believe that increasing server count affects the application threads. If the latter goes on the lower side, then starting from CPU utilization to slow JAVA performance is observed. But on the flip side, we do use high number of server count in case when is usage of this JCo is high.

      Correct me if I am wrong..

      Regards,

      Author's profile photo Hemanth Kumar
      Hemanth Kumar

      The ABAP system cannot send more RFC requests in parallel than the available number of work processes. Hence any value that is configured should not be greater than the number of work processes on the ABAP end and should also consider the amount of destinations configured. Also take into consideration the CPU power of the JCo host machine. It is not optimal to process too many threads at the JCo side in parallel as this might lead to a bottleneck state. For example: It is better to process 10 x 10 simultaneous requests compared to one 1 x 100 request.

      Author's profile photo Divyanshu Srivastava
      Divyanshu Srivastava

      You me a type of load balancing ?

      Author's profile photo Hemanth Kumar
      Hemanth Kumar

      Yes...

      Author's profile photo Matt Fraser
      Matt Fraser

      Hi Raj (and Hemanth and Isaias),

      What would be the advantage of setting JCo connections this way, through Visual Administrator, in a Portal environment, vs doing it using the Portal interface via Content Administration -> Web Dynpro -> Maintain JCo Destinations? We have a number of JCo Destinations from our Portal to our ABAP backend that are all configured via this latter method, but nothing configured in the Visual Admin as you describe. It has been working this way for us for years.

      Also, can you describe how this might be set in a newer J2EE system that uses NWA instead of Visual Admin?

      Thanks!

      Matt

      Author's profile photo Jun Wu
      Jun Wu

      the one mentioned by u is for java call abap scenario.

      here is for abap call java, I think.

      Author's profile photo Raj Kishor
      Raj Kishor
      Blog Post Author

      Hi Matt,

      Yes, we can setup the JCo by both method, either it is Visual Administrator Tool or Netweaver Administrator (NWA). Now, Visual admin Tool is replaced by NWA for SAP Netweaver AS Java >=7.1.

      To setup the JCo RFC Destination, Please follow the below steps,

      1. Go to http://<Hostname>:<Port>/nwa

      2. Select Configuration Tab--> Infrastructure--> JCo RFC Provider.

      JCo.JPG

      Hope this will help.

      Thanks,

      Raj

      Author's profile photo Juan Reyes
      Juan Reyes

      Not bad, but quite outdated... As mentioned before all engines after 7.1 use NWA. Visual admin is obsolete.

      Regards, Juan

      Author's profile photo Hemanth Kumar
      Hemanth Kumar

      Well, close to 40% of SAP customers are still on versions under 7.1, so it might not be that outdated after all 🙂

      Author's profile photo Matt Fraser
      Matt Fraser

      We're a mix ourselves, with our portal (primary J2EE system) on 7.01, but satellite systems (like SLD, ADS, etc), on 7.4. Hopefully within six months, though, the portal will be more up-to-date.