`
JerryWang_SAP
  • 浏览: 1000680 次
  • 性别: Icon_minigender_1
  • 来自: 成都
文章分类
社区版块
存档分类
最新评论

SAP JCO的下载,安装,配置和使用

阅读更多

This blog can be used as a very simple tutorial for those guys who are new to JCO. It demonstrates how to download and configure the JCO in your laptop. A simple consumption from JAVA side to call a remote function module in ABAP side is done to verify the correctness of the configuration.

(1) download SAP JCO3.0 from service marketplace

 

 

Choose the proper file according to your OS to download:

 

 

Unzip the downloaded file, create a new folder and put the dll and jar file into the folder.

 

 

add your local folder path to PATH environment variable:

 

 

maintain the absolute path for jar file as value for CLASSPATH:

 

 

Note: there is a folder javadoc after downloaded file is unzipped and it contains detailed information about JCO like installation guide, API documentation and sample code etc.

(2) Create a new Java project. Right click on project and click “Property”.

 

 

Add the JCO jar file to the project by clicking button “Add External JARs”.

 

 

(3) Create a simple remote function module in ABAP. The function module just accepts the product ID passed from JAVA side, and query against it in database table COMM_PRODUCT, and return the query result which will be fetched via JCO in JAVA side. Never forget to mark the “Remote enabled Function module” flag.

 

 

(4) copy the attached JAVA source code to your project.

For demonstration purpose, the sample code just use a local file to store ABAP destination configuration which would lead to security issues and should not be used in productive code.

Just specify your own ABAP system information and your user credentials in the sample code:

 

 

in the test code, we hard code the product ID as ARNO_TEST004. Here below is the execution result, the detail information of this product is returned to JAVA side:

 

 

We can compare it with the information in SE16, and they are exactly the same:

 

 

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

0
0
分享到:
评论

相关推荐

    sapjco3.jar下载

    `Readme.txt`文件通常包含安装、配置和使用SAP JCo的指南,包括系统需求、依赖项、配置步骤等重要信息。阅读此文件是成功集成SAP JCo到项目的关键步骤。 `examples`目录下可能包含了一些示例代码,这些代码展示了...

    sapjco3配置和测试源码

    4. 配置JCo3:创建JCo3的配置文件(如`sapjco3.jar`),并配置连接参数,如SAP系统的主机名、端口、系统编号、客户ID等。 5. 测试连接:使用JCo3提供的示例代码或自己的代码,测试与SAP系统的连接。 在Linux环境下...

    SAP2021年6月版本sapjco3.1

    在安装和配置SAP JCo时,开发人员需要确保Java版本与SAP JCo兼容,并正确设置环境变量,如`JAVA_HOME`和`SAPJCO_HOME`。在Java代码中,使用SAP JCo API创建SAP连接,加载所需的RFC,然后调用这些RFC来执行业务逻辑。...

    sapjco3压缩包下载

    3. **JCo Destination**: 这是连接参数的容器,可以配置多个目的地,以便连接不同的SAP系统。 4. **JCo Function**: 这是调用SAP ABAP函数模块的主要接口。开发者可以通过创建JCo Function实例,然后设置参数,最后...

    sapjco-sapjco3部署在linux windows所需文件

    本文将详细讲解如何在Linux和Windows操作系统上部署SAP JCo 3,重点关注所需的关键文件:jar包、sapjco3.dll和sapjco3.so。 首先,我们来了解SAP JCo 3的核心组件: 1. **SAP JCo 3 jar包**:这是Java应用程序与...

    sapjco3.jar for mac 64

    Readme.txt通常包含有关如何安装、配置和使用SAPJCO3.jar的说明,包括任何特定于平台的注意事项或限制。在使用这个组件之前,应该仔细阅读这份文档。 examples目录可能包含了一些示例代码,展示了如何在实际项目中...

    sapjco3.dll sapjco3.jar 版本 7210,1120,28,55042 64位.zip

    标题中的"SAPJCO3.dll SAPJCO3.jar"指的是SAP Java Connector 3的动态链接库(.dll)和Java档案(.jar),这是连接SAP系统与Java应用程序的关键组件。版本号"7210,1120,28,55042"代表了该软件的具体更新迭代,其中...

    SAPJCO3连接配置(sapjco3-linux_x64-3.0.10)

    1.将sapjco3.jar 文件复制至 $JAVA_HOME/lib/sapjco3.jar 2.将 libsapjco3.so 文件复制至 $JAVA_HOME/jre/lib/amd64/server/libsapjco3.so 3.设置环境变量 CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools....

    sapjco30/sapjco3.dll/sapjco3.jar SAP官网2017/7/18更新版本

    在压缩包文件" sapjco30P_18_new "中,可能包含了这个更新版本的所有组件,包括必要的DLL和JAR文件,以及可能的安装指南、示例代码、配置文件等。这些资源将帮助开发者在他们的Java项目中集成SAP JCo 3.0,并利用...

    sapjco3.dll 32位 64位

    标题中的“sapjco3.dll 32位 64位”指的是SAP Java Connector (简称JCo)的动态链接库文件,它在Windows操作系统环境下提供了32位和64位两种版本。SAP JCo是SAP公司推出的一个软件组件,它允许Java应用程序与SAP系统...

    2020官网最新sapjco3.0linux环境亲测可用(含sapjco3.jar和libsapjco3.so)

    在Linux环境中配置 SAP JCo,通常需要两个核心文件:`sapjco3.jar` 和 `libsapjco3.so`。 标题和描述中提到的"2020官网最新sapjco3.0"表明这是 SAP JCo 的第3个主要版本,且是针对2020年的更新,确保与最新的 SAP ...

    sap jco3 linux 3.1.5 (2021-11-11)

    在提供的压缩包文件中,我们看到 "SIGNATURE.SMF" 和 "sapjco3-linuxx86_64-3.1.5.tgz"。"SIGNATURE.SMF" 文件可能是数字签名或安全验证文件,用于确保下载的 SAP JCO 软件包未被篡改。这在软件分发和更新过程中是至...

    sapjco3-3.0.19和dll版本721.1120及619和913

    安装和使用这些文件时,开发者需要确保所选的SAPJCO3版本与他们的SAP系统版本相匹配,以避免兼容性问题。 在实际应用中,SAPJCO3常用于开发SAP BAPI(Business Application Programming Interface)调用、IDoc...

    SAP官网最新linux、windows版 sapjco3.jar

    SAP NetWeaver Java Connector(简称SAP JCo或sapjco)是SAP公司提供的一款用于Java应用程序与SAP系统之间进行...通过使用`sapjco3.jar`和对应的本地库文件,开发者可以轻松地在Linux或Windows环境中实现与SAP的交互。

    SAP官网最新版本 sapjco3.jar

    1. **安装JCo**: 首先,你需要将`sapjco3.jar`添加到Java项目的类路径(classpath)中,确保JVM可以访问到它。在Linux上,还需将`libsapjco3.so`库文件放置在系统库搜索路径下。 2. **配置RFC连接**: 使用SAP JCo3...

    sapjco3最新版

    6. **安装与配置**:在部署SAP JCo3时,需要将库文件添加到Java项目类路径中,并进行相应的系统配置,包括设置SAP系统的连接参数(如系统ID、服务器地址、端口等)。 7. **示例代码**:为了帮助开发者快速上手,...

    sapjco2.3(sapjco2.3.dll和sapjco2.3.jar)

    在这个特定的场景中,我们关注的是 SAP JCo 的版本 2.3,它包含了两个核心组件:`sapjco2.3.dll` 和 `sapjco2.3.jar`。 `sapjco2.3.dll` 是一个动态链接库文件,它是 SAP JCo 在 Windows 平台上运行所必需的。这个 ...

    Sapjco3.jar/Sapjco3.dll 64位

    1. **安装和配置**:将`sapjco3.jar`添加到项目的类路径中,同时确保`sapjco3.dll`被正确地放置在系统路径下。 2. **初始化连接**:在Java代码中,通过`SapSystem`和`Connection`对象来设置SAP系统的参数,如系统...

Global site tag (gtag.js) - Google Analytics