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
2
votes
1 answer

Java SAP JCo3 Can't find data from returned table

I have a SAP RFC function module named ZRFC_BOM_005. After I execute the RFC function, I try to get field's value from the returned table, but it only shows field's name but no field's value. However, the function printJCoTable(JCoTable jcoTable)…
LittleY
  • 17
  • 4
2
votes
1 answer

SAP JCo XML to IDocDocumentList conversion

I am trying to convert the content of an IDoc XML file to an IDocDocumentList. The following code, heavily based on the documentation, raises an error: com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination BCE does not exist public…
bvdb
  • 22,839
  • 10
  • 110
  • 123
2
votes
1 answer

how to handle string list when it is returned by any BAPI using jco3.jar?

I have a BAPI function to be called, which takes input a string and return a string list as output. I was using jco3.jar file in my java code but not able to find any inbuilt method which takes care of string list (String[]) as output parameter,…
Suman Goswami
  • 33
  • 1
  • 4
2
votes
1 answer

How can I get the SAP JCo middleware(com.sap.mw.jco.*) APIs in Mac

I tried to make use of some classes of com.sap.mw.jco.*, such as IRepository and JCO. But my IDE (Intellij) cannot recognize this classes. There are always compilation errors. I tried to add the libsapjco3.jnilib to the classpath and also add the vm…
Yi.
  • 515
  • 1
  • 7
  • 19
2
votes
2 answers

How to login multiple SAP system using SAP jco

I am new to SAP JCo I have requirement to call multiple SAP System using SAP Jco. But I am unable to connect multiple sap system at the same time...... Here is code : package com.sap.test; import java.util.Properties; import…
Developer Desk
  • 2,294
  • 8
  • 36
  • 77
2
votes
3 answers

Munit Issue for SAP connector while working with maven,

Hi I am facing the below while running munit with maven code. I have a flow containing SAP connector, then done the munit for the flow and trying to run the munit with maven, getting the below exception, need help. [ERROR] Failed to shut down…
Ankit Prakash
  • 37
  • 1
  • 7
2
votes
0 answers

SAP JCo Environment method isDestinationDataProviderRegistered() fails but does not throw an exception

I have the following simple piece of code to register a DataProvider. The line Environment.isDestinationDataProviderRegistered() fails. The try-catch doesn't catch it. The failure just kills the application. Is there a way to find out what is…
Davidson
  • 1,064
  • 3
  • 20
  • 35
2
votes
2 answers

SAP Java Connector (JCo) mocking server

Is there are any mock servers that I can connect with a JCo client library and test my client code. I'm developing a code for a SAP client and I do not have the access to the server at the moment, but I need to verify that the code works with a mock…
Sudheera
  • 1,727
  • 1
  • 12
  • 28
2
votes
2 answers

Error when invoking IBM Mobilefirst 7.0-SAP JCo Adapter

When I invoke the SAP JCo Adapter, I'm getting an error message like this: Invocation of procedure 'invokeSAPFunction' caused java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$Exception [project DemoProject]. What can cause it? function…
2
votes
1 answer

Getting "java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path" error using SAP jco 3.0.11 for 32 bit windows

I am getting the below mentioned error while using SAPJCO 3.0.11 jar for 32 Bit windows XP OS. I am using a StepByStepClient example mentioned in the zip libarary when i downloaded the 32 but SAPJCO jar from market place. The Jar I downloaded never…
Rohit Sharma
  • 41
  • 1
  • 1
  • 5
2
votes
0 answers

Java connect to several SAP Systems via JCo

I am currently developing a small Java Application which needs to read some data from SAP system. Nearly everything is working fine, I can connect to SAP system, I can call a BAPI and get a result and I also can handle the given result. But I have…
LStrike
  • 1,598
  • 4
  • 26
  • 58
2
votes
2 answers

Having issue with SAP Java connectors

I'm trying to put SAP JCo3 libraries to my work server that has an OS "Win 2003 Server". The SAP JCo3 libraries worked fine on my localhost which has an OS "Windows 7". However when I performed the same procedure for installation on my work server…
daemon54
  • 1,057
  • 3
  • 16
  • 36
2
votes
2 answers

SAP JBOSS issues with jar

I am trying to connect my J2EE application with SAP software using ABAP function calls. When I run it as a single class in Eclipse with hot coded values, it works fine. When I try to run it in JBoss server, where I am getting some values from my…
bhat
  • 89
  • 1
  • 10
2
votes
1 answer

SAP JCo creating a record in SAP system using Java

I am trying to create an entry in SAP system with the functions and structures I got from ABAP. I was referring to this link Creating Purchase Info Record in SAP The same problem happens to me. I could not see the record. When we are checking ERRORS…
bhat
  • 89
  • 1
  • 10
1
vote
1 answer

Connect SAP System

I am working in a Java EE project that integrates with SAP system, and I am trying to run a simple standalone Java class that calls a RFC. My snippet of code is JCO.Client mConnection = JCO.createClient("dummy", // SAP client …
tt0686
  • 1,771
  • 6
  • 31
  • 60
1 2
3
13 14