File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Setting up JCO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Setting up JCO" Watch "Setting up JCO" New topic

Setting up JCO

Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Dear All,

I would like to set JCO on Tomcat and connect to SAP.

Since i am newbie, when it comes to SAP and BAPI, can anyone please let me know, what are all the environment settings, to be done, in the Tomcat and is it possible to connect Tomcat with SAP Server?

I have got the sapjco.jar and placed in the \shared\lib directory.

Apart from this, I am not so clear on how to connect to the SAP Server, how to run it in the local machine and other intricasies.

Any information in this regard is highly helpful.

Thanks a lot,
Jason Moors
Ranch Hand

Joined: Dec 04, 2001
Posts: 188
What version of SAP are you running? As SAP Netweaver Development studio provides The SAP Enterprise Connector which includes Java Proxies to simplify calling of RFCs.

The SAP Developer Network is a good source of information.

To establish a connection to the SAP System, you need to instantiate a JCO.Client object using the JCO.createClient() method. You can then use the object´┐Żs connect() and disconnect() methods. Between these two methods, you will later add code for calling the function module, and setting and getting the parameter values.

The user name must have SAP permissions in the backend system to run the BAPI.

If you get this far I'll try an explain the process of JCO repository and templatefunction interface required to specify the in/out parameters of the function.


Tony Schmidt

Joined: Jun 01, 2004
Posts: 3
I'm Guessing that the SAP Netweaver Development studio is an expensive piece of software? This library is proprietary is it not?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63854

"Tony LeftBlank", you have previously been warned regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Be aware that accounts with invalid display names are removed.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Setting up JCO
It's not a secret anymore!