• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting up JCO

 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic