cancel
Showing results for 
Search instead for 
Did you mean: 

Cant find proper example for JCo 3

Former Member
0 Kudos

Hi all,

I am Harinathan

I'm SAP fresher. I got SAP ERP 6 server running in one machine.

And want to connect to that server using JAVA program.

I already got JCo 3.

Please, let me know how to connect and give me some examples.

thanks in advanced

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

i'm not at work any more so I can't have a look into the samples right now. But I already had them working.

Note that there are several connections-properties in the code as the stepbystep-client demonstrates different connection-methods. a full-text-search vor binmain may help.

Last but not least check the source-folder if there are any files that look like a connection-property file.

regards,

michael

Former Member
0 Kudos

Hi,

As part of the JCo jar you will be able to see some samples to start.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi

I can see all those good examples, but it is more advance thn what i need.

I see most of examples in cloud, but it all refer to mw.jco.

+_import com.sap.mw.jco.;_+*

I cant able to find this package in SAPJCo.jar version 3.

So, I need Simple good example to connect SAP server using SAPJCo 3 .

Former Member
0 Kudos

Hi,

Please go through StepByStepClient.java which is part of the example, it explains what you need.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

I already try that example, but it throws the following error.

"hostname binmain unknown"

but, i dont use "binmain" any where in my program. please see below

connectProperties.setProperty(DestinationDataProvider.JCO_MSHOST, "192.168.1.50");

connectProperties.setProperty(DestinationDataProvider.JCO_R3NAME, "BIN");

connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "500");

connectProperties.setProperty(DestinationDataProvider.JCO_USER, "Hari");

connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "123abc");

connectProperties.setProperty(DestinationDataProvider.JCO_GROUP, "PUBLIC");

connectProperties.setProperty(DestinationDataProvider.JCO_LANG, "en");

regards

Harinathan

manuelhildemaro_ramossanc
Active Participant
0 Kudos

Hi Harinathan,

Can you solved your problem ? I have the same problem.

Regards,

Manuel H.