cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Jco3 sample

Former Member
0 Kudos

Hi,

Can any one send a sample Java code to send and receive IDOCS from SAP using sapidocjco-1.0.9.jar.

I have gone through the Samples provided with the jar files, but these are for JCo2 ..!!

Is there a sample using JCo3? If so, please point me where to look for it (sifting through forums got me to this forum ... ), would be of great help.

Thanks,

Vidya Shankar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Yeah, the samples within the IDocLib 1.0 are for JCo2 because this library is for JCo2.

If you would like to use JCo3 with the IDocLib you also have to download the IDocLib 3.0.

Within the IDocLib 3.0 archive you will also find some IDoc sample programs again.

Former Member
0 Kudos

Stefan,

That is the problem, I am trying to run the examples given in the sapidocjco-1.0.9.jar. They don't even compile as it cant find JCO.Function and other objects as well.

I am having the following jars with me:

1. sapidoc3_3.0.4.jar

2. sapidoc-1.0.5.jar

3. sapidocjco-1.0.9

4. sapjco3.jar

Could you please tell me what is the correct mix of jars to use.

Former Member
0 Kudos

Remove no. 2. and 3.

All jars you need are sapjco3.jar and sapidoc3.jar.

Then use the samples delivered with the sapidoc3 zip file.

Don't start with learning JCo2 and IDoc1 if you are new to this stuff anyway.

I recommend learning the latest versions with the new APIs.