cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting a webdynpro applcn to different backend systems

Former Member
0 Kudos
234

Hi,

We have a webdynpro application based on adaptiveRFC model connected to a backendsystem with client number 200 for users of sister company A.

Another sister company B would like to use the same application(also on the same WAS platform) but connected to the backend with client 300.

The JCO destination for the application allows definition of one specific system at one time.

Duplicating the webdynpro application seems tedious as the application is robust.

Any other suggestions?

Regards

meesum

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Meesum

You can pass override the destinations by passing destination names through the URL

Eg

http://<Host-Name>:<Port-Nummer>/webdynpro/dispatcher/local/Example_Project/Example?sap-wd-arfc-useS... WD_MODELDATA_DEST:SyB&sap-wd-arfc-useSys=WD_RFC_METADATA_DEST:SyBstarts

Check doc

http://help.sap.com/saphelp_nw04/helpdata/en/f4/651741f163f023e10000000a155106/content.htm

Regards

Pran

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Meesum,

1. Create 2 Jco destination in your WAS. (eg. JCo_CompA and JCo_CompB)

2. Based on the company get the JCo.Client and set that to the model.

//Getting the JCo.Client from the J2EE server

IWDJCOClientConnection clientIWDJCOClient;

JCO.Client clientJCO = null;

//Change this string value based on company

String strSystemName = "JCo_CompA";

try

{

clientIWDJCOClient = WDSystemLandscape.getJCOClientConnection(strSystemName);

clientJCO = clientIWDJCOClient.getClient();

}catch (WDSystemLandscapeException e){ //Handle exception here

}

//Instantiate your model object and set the JCo.Client to the model

MO_Modelname objModel = (MO_ModelName) WDModelFactory.getModelInstance(

MO_ModelName.class,WDModelScopeType.APPLICATION_SCOPE);

objModel.setJcoClient(clientJCO);

Regards,

Santhosh.C

Former Member
0 Kudos

Bravo Friends,

The solution couldnt have been more precise.