Skip to Content
0
Former Member
Apr 15, 2010 at 06:35 AM

Switch beetween Jcos - Possible in coding??

27 Views

Hi,

I would like to explain my scenario:

I have developed a Web Dynpro Application which has two standard JCo Connections for using RFCs/ BAPIs which are bindend to client 555:

RD_Test and RD_Test_MetaData.

In addion to that I have manually add two other Jcos in Web Dnypro Content Administrator which are binded to client 200:

RD_Test:200 and RD_Test_MetaData:200.

I would like to know if it is possible to switch to another Jco within my coding.

I know it is possible to use sap.wdarfc.useSys in Application Parameter, but this is not the solution, I can use for my scenario.

For example, I must implement something like this:

If (parameter==1){Use Jco 1, Use JcoMetaData1}

If (parameter==2){Use Jco 2, Use JcoMetaData2}

and so on...

Is that possible? And if it is possible, could you give me some coding examples?

Regards,

Frank