Questions tagged [jco]

For general questions about "SAP JCo" (Java Connector). As JCo versions are not backward compatible, please use one of the version-specific tags instead or in addition.

"SAP JCo" is the short-cut for "SAP Java Connector" which is a Java library used to connect to SAP systems through the protocol.

Major SAP JCo versions are not backward compatible! Therefore, favor using a version specific tag (e.g. ) over this tag.


Related tags

177 questions
11
votes
3 answers

DATA_BUFFER_EXCEEDED error when calling RFC_READ_TABLE?

My java/groovy program receives table names and table fields from the user input, it queries the tables in SAP and returns its contents. The user input may concern the tables CDPOS and CDHDR. After reading the SAP documentations and googling, I…
Yi.
  • 515
  • 1
  • 7
  • 19
11
votes
1 answer

JCO IDOC Server for multiple destinations

I'm developing a IDOC server which can connect to multiple destinations on same SAP system(gateway host will be same) and receive IDocs. I'm not sure that I need multiple JCoServer instance running or single JCoServer with multiple destinations. If…
Sudheera
  • 1,375
  • 1
  • 8
  • 24
8
votes
3 answers

Future of the "SAP Java Connector"

Is the SAP Java Connector still a good way to connect a Java Application with SAP ? Will there be a support and maintenance of the connector in the future (especially in ECC 6.0) or is the one and only good way the usage of the "Enterprise Services"…
Elmex
  • 3,199
  • 7
  • 36
  • 62
7
votes
1 answer

Tutorials, manuals, documentation for using SAP JCo 3.x

Do you know any decent documentation source for using JCo 3.x? Most of the materials I could find are pretty outdated and refer to previous versions (JCo 2.x). In case, anyone wondered, the things I found are: Tips&Tricks JCo…
Grzegorz Oledzki
  • 20,933
  • 15
  • 63
  • 94
7
votes
2 answers

SAP JCo: JCoDestination vs. JCoClient

I'm calling a function in SAP from Java with the JCo library. So far my call works, but when I look for help in the Internet, there is always a JCoClient that is being used to get the functions, making commits etc. But a JCoClient class does not…
FiveO
  • 4,315
  • 3
  • 40
  • 78
6
votes
2 answers

SAP+Java : java.lang.NoClassDefFoundError: com.sap.conn.rfc.driver.CpicDriver

I have developed a java web application integrating with SAP. I have developed it with Linux Server and Tomcat 7.0. I have added sapjco3.jar and libsapjco3.so in WEB-INF/lib folder. It is working fine local server. But when deploying WAR file in…
Master Mind
  • 2,359
  • 2
  • 25
  • 46
5
votes
3 answers

Is SAP JCO thread safe?

I did not really manage to find proper documentation about this. There are the classes in JCO com.sap.conn.jco.JCoDestination and com.sap.conn.jco.JCoDestinationManager. My questions about them: are they thread safe? if not, are they expensive to…
Gábor Lipták
  • 9,169
  • 2
  • 50
  • 108
5
votes
3 answers

SAP JCO JAVA Could not initialize class com.sap.conn.jco.JCo

i want to use SAP JCO to select user data for my java program. But all i got is: Sep 23, 2014 1:34:28 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [StepByStepClient] in context with path…
user2372543
  • 51
  • 1
  • 1
  • 4
5
votes
4 answers

Print a list of BAPIs using JCo

I established connection to a SAP Server and I would like to print a list of BAPIs in my Java program. I am using sapjco3.jar. Is there any way to do it?
Prabhakar Manthena
  • 2,023
  • 2
  • 14
  • 30
5
votes
2 answers

SAP JCo RETURN Table empty when using TransactionID

I'm using the JCo Library to access SAP standard BAPI. Well everything is also working except that the RETURN Table is always empty when I use the TID (TransactionID). When I just remove the TID, I get the RETURN table filled with Warnings etc. But…
FiveO
  • 4,315
  • 3
  • 40
  • 78
4
votes
4 answers

Strategy for migrating from php to java in context of SAP

I'm currently doing web application development in PHP. Management has told us we're standardizing on "J2EE" (and yes, I keep reminding them it's now called "Java EE"). I think the rational behind this mandate is something like "we run our business…
Chad Brogan
  • 234
  • 4
  • 11
4
votes
1 answer

Does Spring have support for SAP JCo transactions?

Does Spring have support for JCo transaction management? How can Transactions be combined with SAP's JCo or JRA transactions? Regards
Abhi
  • 2,779
  • 20
  • 36
4
votes
2 answers

How to control transaction (commit/rollback) when reading an IDOC

When using JCo (3.x) to read IDOCs sent from a SAP server, what action should be taken to indicate the message has been properly received (i.e. commit)? In Java I imagine something like: public class MyHandler implements JCoIDocHandler { public…
Grzegorz Oledzki
  • 20,933
  • 15
  • 63
  • 94
4
votes
1 answer

Connect to SAP message server through JCO

I have a working connection between my Java application and a SAP server through use of SAP JCO. The problem is that my connection is limited to 1 server. There should be an option available for connecting to a SAP message server that acts like a…
user965220
  • 41
  • 1
  • 4
3
votes
1 answer

JCo RFC_READ_TABLE Data Buffer Exceeded

i'm trying to get data from Table VBRK via Function RFC_READ_TABLE but always getting a Data Buffer Exceeded Exception. final JCoConnection managedConnection2 = sapCoreJCoManagedConnectionFactory.getManagedConnection("JCoStateless", …
pr191ex
  • 88
  • 13
1
2 3
11 12