Skip to Content

RFC destination for outbound (ABAP calls Java) JCo


How do I configure a RFC destination for outbound (ABAP calls Java) interface with JCo components? I guess it's a TCP/IP connection which starts a program on application server or frontend. But, which program? Or which type of program?

Please give me some hints.

Thanks in advance!

Kind regards,

Igor Barbaric

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 03, 2005 at 09:48 AM

    Hi Barbaric,

    Can you give me idea how can i create and configure RFC destination in SAP. I want to call EJB from the SAP.

    Thanks for reply,


    Add a comment
    10|10000 characters needed characters exceeded

    • Hello, Bhavik!

      I appologize for not answering. I resolved this problem myself and didn't watch this message anymore. I hope it's not too late to correct this.

      I don't know what's EJB, but I can show you how to create RFC destination for JCo server. It's simple:

      1. Start transaction SM59 in SAP and press button "create"

      2. Name your destination whatever you want, enter connection type "T"

      3. Press "enter" to get input fields specific for connection type

      4. Select "Registered server program" activation type (this field name can slightly vary in different SAP versions) radio button

      5. Enter program name - it must be the same name that you enter in JCo server's constructor parameters. For example, if JCo server constructor was:

      Server srv = new Server("javaserver", "sapgw01", "JCO_REG_SRV_PRG", repository);

      then the registered program name in RFC destination would be JCO_REG_SRV_PRG

      6. Save the destination

      7. Start the JCo server - make sure it's properly registered at SAP gateway (check this by writing console messages in Java development environment)

      8. Test the destination by pressing "Test connection". You should get report of response times in ms for logon and 4 different data packages (similar to ping).

      Hope this helps!

      Kind regards,

      Igor Barbaric

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.