on 03-20-2007 8:37 AM
Hi all,
Is there any way to change the used JCO at runtime?
Aviad
Aviad,
What exactly you'd like to change? RFC destination? JCo connection properties? Something else?
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for all the links you have attached.
Valery -
I have 2 JCO model data defined in my system and according to the users group (which can be seen at runtime) I decide which JCO to use.
The bigger picture is that I want to connect to my backend using SSO or using single user mapping, which depands on the portal users group.
Thanks,
Aviad
Aviad,
Assuming that you are using Adaptive RFC model you need to:
1. Get model itself using WDModelFactory.getModelInstance(Class modelClazz):
IWDDynamiRFCModel myModel =
(IWDDynamicRFCModel)WDModelFactory.getModelInstance(YourRfcModel.class);
2. Get configured JCo connection from system landscape:
IWDJCOClientConnection cliConnection =
WDSystemLandscape.getJCOClientConnection("MyDataConn");
3. Set JCo connection on model:
myModel.setJcoClient( cliConnection.getClient() );
Note, that you only may alter data connection (metadata connection can't be modified). Also note that both meta- and data- connections must point to the very same server. I hope that this is your case while your requirement is to "connect to my backend using SSO or using single user mapping, which depends on the portal users group."
Valery Silaev
SaM Solutions
Aviad,
Please go through this pdf link for Runtime JCO.
Reward points if its helpful.
Regards,
Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aviad,
Go through this <a href="http://help.sap.com/saphelp_nw04/helpdata/en/42/9be327cf147142be9edf9056e27801/frameset.htm">link</a>
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.