Application Development 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: 

RFC destination for outbound (ABAP calls Java) JCo

former_member185943
Participant
0 Kudos

Hello!

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

2 REPLIES 2

Former Member
0 Kudos

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,

Bhavik

0 Kudos

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