on 09-20-2007 5:23 PM
Hi All,
Do you know how to retrive the System Name paramer value used in JCO connection using Web Dynpro programe. If so can you please sen me how.
I promise to award points for the correct answer.
Thank you and Regards
Maruti CR
Maruti,
Try this (I'm assuming you want the system name of a model you used):
MODELNAME model = (MODELNAME)WDModelFactory.getModelInstance(MODELNAME.class);
IWDJCOClientConnection jcoClientConn = (IWDJCOClientConnection)model.getJcoClient();
String sysName = model.getSystemName();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jennifer,
Thank you for your reply. I am still trying to get the SAP system name for the model used. I trind to your your code but I am getting some compilation errors.
Bapi_User_Get_Detail_Input iasmodel = new Bapi_User_Get_Detail_Input();
The code I used is
Bapi_User_Get_Detail_Input iasmodel = (Bapi_User_Get_Detail_Input)WDModelFactory.getModelInstance(Bapi_User_Get_Detail_Input.class);
IWDJCOClientConnection jcoClientConn = (IWDJCOClientConnection)iasmodel.modelInstance();
I am getting compile errors..
The type of model represented by class 'com.ias.Bapi_User_Get_Detail_Input' is not compatible for creation by WDModelFactory
Can you please suggest?
Thank you and Regards
Maruti CR
Call transaction STFC_CONNECTION to get the System ID and user info.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.