01-18-2005 1:34 PM
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
02-03-2005 9: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,
Bhavik
02-22-2005 9:26 AM
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