• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting up JCO

 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic