简体   繁体   中英

How to call Java via SAP JCO 3 from an ABAP

This is for a Windows system. From the research I have found I know you need to register a program with the SAP Gateway . The program is an RFC server program. Need to use SM59 to setup the destination, choose Register Server Program and put the name of the program under Start on Application Server. I have seen an example RFC Server program from SAP . I have seen the use of this command to register the program in the

OS (Unix): rfcexec -g -a -x

I know you can view if it is running using SMGW . What I don't know is if the RFC Server program is the Java program you want to execute or just a listener that then is used to kick off your Java program. Also, I think I have to get the rfcexec program from the NW RFC SDK files? I would have thought the JCO library should have everything you need to call SAP and call Java. I have been able to use the example Java program to call an SAP RFC but I want to go from ABAP to Java now. What am I missing?

In zip file there is an example for client in file "StepByStepClient.java". Did you try it?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM