wood burning stoves 2.0*
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
Author

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,
Ram.
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.

http://www.sdn.sap.com

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.

regards

Jason.
Tony Schmidt
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

"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.

bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting up JCO
 
Similar Threads
Accessing SAP
sap java connector
how to create jco connection in servlet
SAP JCo Server within JBoss how?
JCO connectivity