Skip to Content
avatar image
Former Member

passing parameters through Single JCo to different systems

I have created a web dynpro application and integrated into a portal, which access R/3 using a JCo destination and retrieves the data using a BAPI.

But I want to integrate the same application into another portal, which would access the different R/3 system having the same function module.

Is there any way for switching between two Jco destinations as the same application could be made to work for both the systems?

Please suggest me as I am stuck up with this issue.

Thanks for your response; the thing is the portals are sharing the same landscape.

Is there any other way to achieve switching of the JCO destinations even on the same landscape?

You have the same application but want to connect to different JCos.

I think you will be creating two WD iViews for the same application. In the application properties do the following:

Use the following url parameter to the application URI

sap-wd-arfc-useSys=<DEFAULT_SYSTEM>:<SUFFIX_OF_MAPPED_SYSTEM>

In the default system you can change your JCo destination name

Please suggest me .

Thanks

Lohi

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 11, 2006 at 04:10 AM

    Hi,

    Have a look at this thread

    dynamically-connecting-wd-application-to-different

    Regards

    Saravanan K

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 11, 2006 at 04:40 AM

    Hi

    1. You can change the JCO Connections at runtime for multiple client.

    JCO.Client client= JCO.createClient(

    <client>,

    <User>,

    <Password>,

    <language>,

    <SystemIP>,

    <SystemID>);

    // TODO: Connect the JCO

    client.connect();

    // TODO: Bind Jco Connection to the Model Class

    <BAPI_NAME_MODEL> getModel = (<BAPI_NAME_MODEL>)com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getModelInstance(<BAPI_NAME_MODEL>.class,WDModelScopeType.TASK_SCOPE);

    See this Thread

    multiple-client-logon-in-jco

    //Do the binding

    // Do the execute

    Kind Regards

    Mukesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Lohi,

      Now i am getting Same Requirement. Please let you know how to do this codeing.

      I can use JCOu2019s from Diff Systems.here my doubt is how to write codeing in init(). By using user Group.

      For Exaple.

      XYZ User Belongs to India. XYZ User longin into the Portal he will connect to India ECC System. So that we can write Some doing in init().

      ABC User Belongs to North America.ABC User longin into the Portal Depending upon user group. He will connect the ECC NA System.

      Here what I am thinkg is.

      If(user is avaliable in INDIA user group)

      {

      Here we will Pass to the INDIA ECC System Details. Means we are able to Connect the ECC System. I think here we can pass Client and MODEL Date and META Data Details

      }

      else if (user is avaliable in USA user group))

      {

      Here we will Pass to the USA ECC System Details. Means we are able to Connect the ECC System. I think here we can pass Client and MODEL Date and META Data Details .

      }

      I am thing like this. Is it Possible to develop the codeing in Init()

      Regards

      Vijay K