cancel
Showing results for 
Search instead for 
Did you mean: 

BIG problems with JCo

Former Member
0 Kudos

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 ?!!?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Did this get fixed?

Stephen

Former Member
0 Kudos

Hi Stephen,

I didnot get you, "Did this get fixed?".

Regards,

Bhavik

Former Member
0 Kudos

Hi Jan,

If you found answer helpful then please award poins for that

Regards,

Bhavik

Former Member
0 Kudos

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