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

How to set value in date UDF using SAP B1 JCO?

I am able to set String value to UDF using JCO like below. invoice.getLines().getUserFields().getFields().item(java.lang.Object aIndex).setValue(java.lang.Object aValue) But it is not working for date type UDF like (Purchase date, Payment Date). Is…
Anup Ganatra
  • 366
  • 1
  • 6
  • 23
-1
votes
4 answers

SAP JCo - Server started on front-end workstation

I need to create a program, which resides on the client PC, gets executed from SAP LOGON, receives some RFC requests, returns data and terminates. I've been following this tutorial on how to implement a JCo…
Jardo
  • 1,939
  • 2
  • 25
  • 45
-1
votes
1 answer

What is JCoDestinationManager.getDestination for?

What is JCoDestinationManager.getDestination for? private JCoDestination getConnection(String connectionPropertyFileName) { if (log.isInfoEnabled()) { log.info("Inside SAPJavaDefaultAdapter/getConnection()"); } try { …
Saggy
  • 29
  • 5
-1
votes
1 answer

how to create a purchase order using BAPI : BAPI_PO_CREATE1

I am trying to create a Purchase Order using JCo3. I am able to execute my function without any error but I am not sure what's wrong, system is not throwing any error and it's not creating PO also in the SAP system. JCoDestination destination =…
Utsav
  • 1,593
  • 4
  • 22
  • 46
-1
votes
1 answer

When I run JCo adapter, it throws exception: java.lang.NoClassDefFoundError

I create a JCo Adapter, and add the sapjco.jar to the server/lib directory and put the required dll file to windows\system32 directory. But it still report the exception as following in the server: Invocation of procedure 'invokeSAPFunction' caused…
Shengwang
  • 35
  • 6
-1
votes
1 answer

How should Tcode be used in JCO program

How do I set the Transaction Code (TCODE) in a JCO program and then fetch the required function? e.g. if I need to access SE11 or SE13 related function? Is the TCODE setting really important?
Nida Sahar
  • 698
  • 4
  • 13
  • 29
-1
votes
1 answer

SAP JCo3 source files

In my previous post I have mentioned that my sapjco3.jar is not getting recognized in Eclipse. I tried various suggestions. But nothing works in Eclipse. So I am thinking of getting the SAP JCo3 source files and including it in my project along with…
bhat
  • 89
  • 1
  • 10
-1
votes
1 answer

JCO_CONVERTION_ERROR (122) Table to StructureRecord type

I use SAPJCo3.jar for Java to SAP connection and communication but when execute the program, get error at JcoStructure part. The debugger pass successfully to function module connection part I see at debugger, but in this line I get interesting…
user2583486
  • 1
  • 1
  • 2
-1
votes
1 answer

Deploy on external Tomcat and SAP Java Connector

I deploy my JSF project with ant on a VM with SAP but got the Exception when I try to connect: JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [Native Library C:\WINDOWS\system32\sapjcorfc.dll already loaded in another…
Nicolas
  • 269
  • 4
  • 14
-2
votes
1 answer

JCoFunction how to set a field of a structured parameter

I have this RFC How do I set the internal value of the I_VALUE_DATA key? str st public static void TEST()…
Gustavo
  • 5
  • 1
-2
votes
1 answer

How to use orderby with JCo in java

I am new to SAP software and JCo, so pardon my novice mistakes. I want to use orderby clause with JCo java library but did not find any hint about that on internet. This code fetches table names, but I want to fetch data by order. Second thing is…
Faizan
  • 289
  • 4
  • 15
-2
votes
1 answer

SAP JCo Server ERROR: Session conflict. A new session could not be created within the current thread session

Did anybody encounter this error thrown by SAP software, which is invoking a RFC call to a JCo Server? com.sap.conn.jco.ext.SessionException: (170) JCO_ERROR_CREATE_SESSION: Session conflict. A new session could not be created wit... We are using…
-4
votes
2 answers

Could not initialize class com.sap.conn.jco.rt.JCoRuntimeFactory

I got the error Could not initialize class com.sap.conn.jco.rt.JCoRuntimeFactory I can run my app that uses JCo on a Windows Server 2003 64x with glassfish, please help!
SebRojas
  • 198
  • 1
  • 3
  • 10
1 2 3
13
14