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

208 questions
4
votes
2 answers

SAP JCo client vs server

We are trying to communicate with SAP R/3 from a standalone java application We will use the JCo 3.0 libraries for this. From the documentation I understood that there are 2 ways to connect with SAP. as a JCo Client as a JCo Server At first I was…
bvdb
  • 22,839
  • 10
  • 110
  • 123
4
votes
2 answers

Why does SAP JCo raise an error "Field ... not a member of ..." even though the field exists?

I want to send data to SAP RFC table from my Servlet Application. I am trying to do this below way. JCO.Function function = null; Connection conn = new Connection(); JCO.Client mConnection = conn.open(); JCO.Repository…
Chirag Savsani
  • 6,020
  • 4
  • 38
  • 74
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
  • 45
  • 1
  • 7
3
votes
1 answer

Call BAPI RFCs transactionally via JCo

First of all I'm not a SAP/BAPI developer. We have a java application that is calling some BAPIs over RFCs using JCo library. The question is whether there is any way to call several of those in a single transaction. I believe the correct way to do…
archie_by
  • 1,623
  • 2
  • 11
  • 10
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
  • 1
  • 14
3
votes
1 answer

Sending iDOC from Java to SAP

We have iDOC files that are generated from our system. Now we are trying to send them to SAP via RFC connection. I already etablished an RFC connection AS A CLIENT but i am unable to send iDOC! I tried to create a sample iDOC to test it but it…
H.Rhaiem
  • 33
  • 1
  • 5
3
votes
2 answers

SAP Java Connector (JCo) mocking/testing JCoFunction and/or JCoParameterList

I need to test a module without actually calling our SAP provider via executing a "real" JCoFunction. How do I instantiate a "formally correct" JCoFunction? I can even just deal with a JCoParameterList but just can't figure out how to instantiate it…
mfirry
  • 3,634
  • 1
  • 26
  • 36
3
votes
2 answers

How to use JCo connection without creating *.JcoDestination file

I'm trying to connect to SAP ECC 6.0 using JCo. I'm following this tutorial. However, there is a Note saying: For this example the destination configuration is stored in a file that is called by the program. In practice you should avoid this for…
Sok Pomaranczowy
  • 993
  • 3
  • 12
  • 32
3
votes
0 answers

How and when is a JCo connection closed in version 3.xx?

In older versions of JCo (2.xx), the connections were handled directly: the developer needed to create the connection and then close it. It was intuitive. With the newer versions there's no closing connection method, just getDestination methods. I…
3
votes
3 answers

RFC for remote call transaction

How do I call the SAP report (for example RSPARAM) with help JCo? What RFC may be used to remotely call SA38 transaction with RSPARAM (e.t.c.) as parameter and then return results for later work ?
dino
  • 129
  • 1
  • 3
  • 9
3
votes
4 answers

XML parsing with SAX | how to handle special characters?

We have a JAVA application that pulls the data from SAP system, parses it and renders to the users. The data is pulled using SAP JCo connector. Recently we were thrown an exception: org.xml.sax.SAXParseException: Character reference "�" is an…
jai
  • 21,519
  • 31
  • 89
  • 120
2
votes
1 answer

When using SAP JCO 3.0 is it necessary to invoke BAPI_TRANSACTION_ROLLBACK?

Is it necessary to invoke BAPI_TRANSACTION_ROLLBACK or just JCoContext.end() will do an implicit rollback?
2
votes
2 answers

SAP JCo parse XML to IDOC with field extensions

I have some problems parsing an XML to IDOC using the SAP JCo library. I know I need a connection to the SAP system which is given. Here is my gradle test code : when: JCoIDocServer server =…
flexguse
  • 479
  • 6
  • 22
2
votes
2 answers

Java SAP Communication

I have to connect to SAP R/3 system from a standalone Java application using JCo3.0. As per my understanding, there are 2 ways to connect with SAP system: JCo Client JCo Server Now my application sends and receives data from SAP system. Do I need…
2
votes
1 answer

How to read users from SAP UME

How to establish a connection to SAP EP (portal) from Java application using JCO? We are able to connect to ABAP system but not able to get more info to establish connection to SAP PORTAL and read UME users.
Ram
  • 423
  • 4
  • 26
1
2
3
13 14