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
1
vote
1 answer

Unknown type when creating JCoFunction for S4

I am getting below error while creating JCoFunction object for BAPI "SWNC_STATREC_READ_INSTANCE" for S/4HANA system. But, I am able to create object for R/3 system. java.lang.IllegalArgumentException: Unknown type -1 when trying to add field…
Ram
  • 423
  • 4
  • 26
1
vote
0 answers

SAP JCo 3.1 connecting to Load Balancer and connection pool configured only opens 1 connection

I have written a sample POC java program that uses JCO 3.1 to execute a stress load on SAP. When I use the following jcoDestination file it works great and opens up to 8 out of the 10 configured connections to handle the load I'm sending to SAP. # #…
1
vote
1 answer

How to read a specific value from a JCoTable object

I successfully got the Table entries from a SAP system via RFC_GET_TABLE_ENTRIES. It works all fine and lists me all the rows of the table. My problem right now is that I have no idea how to get a single value out. Usually I would go like codes…
IVnoobSuck
  • 75
  • 10
1
vote
1 answer

how to access the SAP JCo connector from a Java Web Service?

I've a java web service in Eclipse for Mac using the JCo connector to access a number of RFCs, but my java code could not access SAP that had the error "(102) JCO_ERROR_COMMUNICATION: Connect to SAP gateway failed", But I solved it by adding the ip…
1
vote
1 answer

Proper handling of IDoc errors?

I have implemented a JCoIDocHandler for SAP, everything worked fine, but our partner company changed something with the user rights and now the handleRequest() fails with an exception. My problem is that even I got an exception, the partner company…
Peter
  • 1,011
  • 2
  • 16
  • 39
1
vote
0 answers

JCo generic handler registration for SAP FM

How to register handler in SAP JCo, so that it listens to all remote enabled SAP Function Modules, that are called in SAP with the 'Destination' parameter as the JCo Server? I know, that we can register a handler for specific functions using…
Andrew
  • 33
  • 3
1
vote
1 answer

Serialization of RFC parameters in JCo

What would be the best way to serialize informations about SAP RFC Function Module parameters (i.e. parameter names and parameter values) with which the function was called in SAP (with parameter 'DESTINATION' provided as SAP JCO SERVER) and then…
Andrew
  • 33
  • 3
1
vote
1 answer

Reflection of FM parameters in JCo

I have a problem with the dynamic receipt of the list of parameters and their values when calling the Function Module (with DESTINATION parameter as SAP JCo Server) and then processing it using Java (in SAP JCo Server). The point is that I need a…
Andrew
  • 33
  • 3
1
vote
0 answers

java.lang.NoClassDefFoundError in a EAR

I create an EAR in which there is a WAR and deploy to the wildfly server. The project need sapjco3.jar to run. I put the jar at server and create a XML in EAR to use it.
kk luo
  • 549
  • 1
  • 9
  • 22
1
vote
0 answers

sapjco3.dll already loaded in another classloader error

I'm using SAP JCo to connect to SAP system from a WildFly 11 server. First I create a war using it and it work. Then I create another ear and after deployment both not working. The error code is below. 2020-04-29 08:52:46,433 INFO …
kk luo
  • 549
  • 1
  • 9
  • 22
1
vote
1 answer

When connecting java to SAP(JCO) through RFC Getting Error

When connecting java to SAP(JCO) through RFC Getting below Error javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/crypto/SecretKey java.lang.NoClassDefFoundError: javax/crypto/SecretKey at…
1
vote
1 answer

Unexpected line break using PrintWriter

I don't know why PrintWriter break the line when it see this symbol '##' I want to write these line to .txt file But got this, you can see it got some unexpected rows: Part of my code: try(OutputStreamWriter fw = new OutputStreamWriter( …
Hau Le
  • 25
  • 1
  • 7
1
vote
1 answer

reuse jco 3 connection pool for different sso tickets

We've created a java application that uses JCo3 to access the remote SAP system data. We are using SSO Tickets connect to that system. The question is if there is some way to reuse the same connection pool for all the user SSO Tickets instead of…
archie_by
  • 1,623
  • 2
  • 11
  • 10
1
vote
1 answer

Disable sap jco traces from java command line

In our mule server we are bombarded with logs such as below every second, How do I stop it? *************** SAP_CMLISTEN *************** [Thr 133440] SAP_CMLISTEN: timeout = 2000 [Thr 133440] SiSelNSelect: start select (timeout=2000) …
1
vote
1 answer

How to create LONGTEXTS with BAPI_QUALNOT_CREATE in SAP?

I am using BAPI_QUALNOT_CREATE in JCo to create a quality notification and it works. The only thing that does not work is the creation of LONGTEXTS. I am using the following code: JCoTable tblText =…
SipCat
  • 47
  • 1
  • 8