on 09-21-2006 10:06 AM
Hi all,
I have developped an appliation that was based on the single JCo only but now my problem is need to be deploy into another system that contain another JCo .
Please suggest me how write the code for dynamically change the JCo destinations.
Suggest me .
Thanks
Lohi
Hi Lohitha,
look at "<i><u>Mapping Logical System Names for Adaptive RFC Models</u></i>":
<b>SAP NetWeaver Online Help:</b>
http://help.sap.com/saphelp_nw04/helpdata/en/af/84a34098022a54e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/82/76a2406546ba15e10000000a1550b0/frameset.htm
<b>SDN Article: </b>
Regards, Bertram
<i></i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Double click on the proxy classes created under 'Models', one of its property will be model data destination and you can change it there.
Similarly, for metadata destination, click on the dictionary created for that model (under dictionaries) and edit the property by that name.
Regards
Leena
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can set the client to be used dynamically. Use a code like this:
Let's say the name of your model is FetchListOfMaterials.
FetchListOfMaterials getModel = (FetchListOfMaterials)com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getModelInstance(FetchListOfMaterials.class,WDModelScopeType.TASK_SCOPE);
getModel.setJcoClient(<your client>);
Do check that the structure of the BAPI/RFC has not changed.
Regards,
Satyajit.
Hi
You have to Create the Model from scratch using the new JCO destinations and do the model bindings and context mappings.NO WAY OUT. I know, this is tedious but this is the most safe way to accomplish this. Although in the SDN you will find articles that describes how to change JCO destinations after model creation but that doesn't work correctly.
Hope this helps
Regards
Ananda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.