如何使用sapjco3和Eclipse连接到SAP系统? [英] How to connect to a SAP System using sapjco3 and Eclipse?

查看:721
本文介绍了如何使用sapjco3和Eclipse连接到SAP系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过标准BAPI调用连接到SAP Systems。我已经安装了JCo(sapjco3)并将.jar添加到Eclipse中的构建路径中。

I need to connect to SAP Systems via standard BAPI calls. I already installed JCo (sapjco3) and added the .jar to my build path in Eclipse.

但由于我是网络/服务器编程的初学者,我不知道如何在Eclipse和SAP系统之间建立连接......任何人都可以提供基本的解决方案或一些想法吗?

But due to the fact that I am rather a beginner regarding network/server programming, I have no idea how to setup a connection between Eclipse and the SAP Systems...can anyone provide a basic solution or some ideas for that?

谢谢你们的问候!

推荐答案

在SAP主页上找到一个关于该主题的例子的好文档后,我自己解决了这个问题。
首先,您需要定义目的地,基本上设置主机以及网络连接的所有其他相关信息。你可以在这里找到它: http://help.sap.com /saphelp_nwes72/helpdata/de/48/5fb9f9b523501ee10000000a421937/content.htm

I solved the question by myself after having found a good documentation with examples regarding that topic on the SAP homepage. First you need to define a destination, basically setting up your host and all other relevant information for the network connection. You can find it here: http://help.sap.com/saphelp_nwes72/helpdata/de/48/5fb9f9b523501ee10000000a421937/content.htm

然后你可以通过创建一个获取服务器属性的方法来测试你的连接正在联系。你可以在这里找到代码:
http://help.sap.com/saphelp_nwes72/helpdata/de/48/840186ab5a2722e10000000a42189d/content.htm? frameset = / de / 48 / 874bb4fb0e35e1e10000000a42189c / frameset.htm& current_toc = / de / b4 / 3f9e64bff38c4f9a19635f57eb4248 / plain.htm& node_id = 498

Then you can test your connection by creating a method that gets attributes of the server you are connecting with. You can find the code here: http://help.sap.com/saphelp_nwes72/helpdata/de/48/840186ab5a2722e10000000a42189d/content.htm?frameset=/de/48/874bb4fb0e35e1e10000000a42189c/frameset.htm&current_toc=/de/b4/3f9e64bff38c4f9a19635f57eb4248/plain.htm&node_id=498

该网站提供了在Java中使用SAP系统的良好示例。

The site provides good examples for working with a SAP System in Java.

这篇关于如何使用sapjco3和Eclipse连接到SAP系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆