Skip to Content

Step by step to download and configure JCO in your laptop

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:


You must be Logged on to comment or reply to a post.
  • Hello Jerry!

    I know this is an old post, but it could help me tremendously! I've downloaded everything and made the RFC-function. But I can't find the JAVA source code to use the ABAP function.

    Could you share the source code (again) ?

    Thank you very much,


    • Hello Dirk,

      Unfortunately the source code is lost after the SCN is migrated to SAP community. I don't have source code on my laptop either since in year 2014, I never started to use github yet.

      You can check sample code in server side from this blog. The blog is written in Chinese.

      And this PDF.

      Hope them help.

      Best regards,


  • Nice tutorial! It is very helping to download JCO. I have downloaded it. I am using hp laptop while installing JCO, I have followed your tips but it couldn't because it was showing a sap error 88. So, I have taken help from hp customer care and my problem gets resolved quickly. They said that it was a server issue.

  • Thanks for sharing this blog its very helpful. Connect with our high expertise specialists if you are looking for resolving issues like “How to Fix Brother Inkjet Printer”. Dial brother printer Support we will help you resolve your issues over the phone that too at absolutely free of cost.

    More Information


  • We live in this age of technology wherever we do anything at a crack of a switch. Technology has presented us to rely on it for purposes boundless. It wouldn’t be as opposed to say that the comfort and ease that it contributes has presented us indifferent and helpless. If you ask someone how others spectrum pay bill, the various feasible explanation would be “online.”