cancel
Showing results for 
Search instead for 
Did you mean: 

How to dinamycally define the client for JCo conecting to ECC

Former Member
0 Kudos

I have a system with WebDynpro for Java connecting to ECC.

We need to dynamically define the client(p.e 300 or 310) of the JCO to connect the ECC where the aplication will read the data.

any informacion?

Accepted Solutions (1)

Accepted Solutions (1)

manu_susankar
Active Contributor
0 Kudos

Hi

Would you please check this [Tips&Tricks_JCo_Programming|http://www.winfobase.de/lehre%5Clv_materialien.nsf/intern01/1DDA0D7896600DF5C125709F0045ED23/$FILE/Tips&Tricks_JCo_Programming.pdf].

Regards

S.Manu

Answers (3)

Answers (3)

0 Kudos

Hi,

Please specify your Product versions.

But generally we need to maintain JcoRFC Provider on Java system. which will use the credentials like client, login details SDI etc of ABAP system.

Then you need tyo create the RFC which will use the same program ID as you have defined in Visual Admin for Java System.

Hope this information helps.

Regards

Naveen Garg

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi

Instance of RFC model allows to get/set JCO Client. I'll propose the following solution:

JCO.Client jcoClient = x.modelInstance().getJcoClient();
jcoClient.setProperty("jco.client.client", 310);
x.modelInstance().setJcoClient(jcoClient);
...
x.execute();

Where x is an instance of your input model class.

BR, Sergei

Former Member
0 Kudos

hi,

can you look at this

[http://help.sap.com/saphelp_nw04/helpdata/EN/bc/42e13d82fcfb34e10000000a114084/content.htm]

Regards,

Muralidhar