Questions tagged [sapjco3]

Use this tag for SAP JCo 3.x. SAP JCo is the short-cut for "SAP Java Connector". JCo refers to a Java library used to connect to SAP systems through the SAP RFC protocol.

JCO is the short-cut for Java connector. JCO refers to a Java library used to connect to SAP systems through the SAP RFC protocol.


Related tags

87 questions
0
votes
1 answer

RFC Returns Pointer to Data Instead of Data Itself

I am running a RFC to get data from SAP. When I run this RFC, it appears that I get a pointer to the data, rather than the data itself. BAPIRET2_ It appears that this BAPIRET2_ is some data set name or pointer. I want the…
user1472409
  • 397
  • 1
  • 7
  • 20
0
votes
1 answer

SAP JCo3 table empty

I am re-writing my JCo2 code to JCo3 code to run on a 64 bit Windows server. When I try to read my SAP table with the JCo3 code it is returning an empty table. However when I run the JCo2 code I have 2 records in the table. The result is records =…
0
votes
1 answer

How to limit the number of records returned by BAPI call using JCO3

When retrieving information from SAP system, in certain cases, we get results in hundreds or thousands. In such cases, if we want to implement a kind of pagination mechanism, what are the options available in JCO3. First of all, how to restrict the…
Gana
  • 482
  • 3
  • 11
  • 32
0
votes
1 answer

Getting error attempting to Iterate over a JCoTable using java.util.iterator

Am trying to implement some Java patterns (Facade, and Iterator) against JCo objects. Here, I'm trying to create an Iterator over the JCoTable much like I would any collection in Java. Below is my class snippet. In MyClass I have an inner class…
Davidson
  • 1,064
  • 3
  • 20
  • 35
-1
votes
3 answers

Is SAPJCo specific to a SAP installation or can be reused between different SAP Boxes?

I'm trying to connect to a SAP system using SAP JCo. Our client is taking long time to download and give the SAP JCo. Is SAP JCo dll and Jar specific to a SAP Box or can be used across different boxes? Can I use a SAP JCo downloaded using SAP ID…
-1
votes
1 answer

How to extract SAP ERP data for a particular year

I am trying to extract BSEG table data from SAP ERP system. I want to set a filter on field GJAHR for year 2018 so that data for that particular year will be extracted. Below is the code snippet: if(fields != null){ JCoTable table =…
GrailsLearner
  • 485
  • 1
  • 11
  • 23
-1
votes
2 answers

RFC call does not work on mac os using jco lib and java

SAP RFC call doesnot work on mac os platform. Same code run on windows. There is interesting things that If I connect to sap using with SAP GUI, I successfully call RFC on mac. I use sap official jco lib for connection. My local machine config: …
katsu
  • 558
  • 1
  • 7
  • 20
-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
2 answers

How to run sap r/3 transactions through JCO3? or execute reports through JCO?

If I log in SAP R/3 and execute the transaction code MM60 then it will show some UI screen for Material list and ask for material number. If I specify a material number and execute then it will show me the output i.e. material list. Here the story…
ABC
  • 354
  • 2
  • 3
  • 13
-1
votes
2 answers

No sapjco3 in java.library.path Eclipse

I'm getting this error when i run code. java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path I have added the jar(sapjco-3.0.jar) to folder and did set the path in the project. Thanks.
Hash
  • 7,726
  • 9
  • 34
  • 53
-2
votes
1 answer

JAVA SAP JCo3 codepage wrong characters show up in Eclipse console

After I called the SAP RFC by JAVA, I get the returned data and print it in Eclipse. But Eclipse console shows the wrong encoded character which is not right (returned data language is Traditional Chinese). My SAP codepage is 1100. And I've tried…
LittleY
  • 17
  • 4
-2
votes
1 answer

How to call Java via SAP JCO 3 from an ABAP

This is for a Windows system. From the research I have found I know you need to register a program with the SAP Gateway. The program is an RFC server program. Need to use SM59 to setup the destination, choose Register Server Program and put the name…
JDel
  • 1
  • 2
1 2 3 4 5
6