on 08-11-2005 2:46 PM
Hi,
I have problems with the JCo.
Code I run on a local JCo-server works correctly. but when I deploy the same code to a J2EE-engine and run it as an EJB in the JCo RFC provider service I get an exception "error in processFunction!!
JCO.ParameterList impList = function.getImportParameterList();
JCO.ParameterList expList = function.getExportParameterList();
JCO.ParameterList tabList = function.getTableParameterList();
JCO.Table ret = tabList.getTable("IT_RETURN");
ret.appendRow();
ret.setValue("returntestvalue", "MESSAGE");
tabList.setValue(ret, "IT_RETURN");
expList.setValue(ret.getString("MESSAGE"),"MESSAGE");
Does anybody have an idea what the problem might be?
If I use SAP function modules I can access the tables. if I use the same name for the table and the same type in my function module i can access the table. if I change only the NAME(!!) of the table, i cannot access the table from Java.
Does it make sense to you???? please help me, I´m desperate!!
Thank you in advance
Jan
PS: throwing of ABAPExceptions doesn´t work from the EJB, too. From my local server I receive exceptions ?!!?
Did this get fixed?
Stephen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jan,
If you found answer helpful then please award poins for that
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jan,
I guess you have not define the raference in Application project for SAPJco jar. When you deploy your application project it will find this jar file on server.
So, do one thing. Go to Application-j2ee-engine.xml. And there add reference with choosing library reference for SAPjco.jar.
Now, rebuild and deploy once again on server.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.