[英]How to call Java via SAP JCO 3 from an ABAP
This is for a Windows system.这是针对 Windows 系统的。 From the research I have found I know you need to register a program with the
SAP Gateway
.根据我发现的研究,我知道您需要向
SAP Gateway
注册一个程序。 The program is an RFC server
program.该程序是一个
RFC server
程序。 Need to use SM59
to setup the destination, choose Register Server Program and put the name of the program under Start on Application Server.需要使用
SM59
设置目的地,选择Register Server Program并将程序名称放在Start on Application Server下。 I have seen an example RFC Server
program from SAP
.我看过
SAP
一个示例RFC Server
程序。 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
.我知道您可以查看它是否正在使用
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.我不知道 RFC Server 程序是您要执行的 Java 程序还是只是一个用于启动 Java 程序的侦听器。 Also, I think I have to get the rfcexec program from the
NW RFC SDK
files?另外,我想我必须从
NW RFC SDK
文件中获取 rfcexec 程序? I would have thought the JCO library
should have everything you need to call SAP and call Java.我原以为
JCO library
应该拥有调用 SAP 和调用 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.我已经能够使用示例 Java 程序来调用 SAP RFC,但我现在想从
ABAP
转到 Java。 What am I missing?我错过了什么?
In zip file there is an example for client in file "StepByStepClient.java".在 zip 文件中,文件“StepByStepClient.java”中有一个客户端示例。 Did you try it?
你试了吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.