on 01-17-2007 7:47 PM
Hi,
I am writing an EJB that uses Jco to process calls from abap. This EJB runs on the j2EE engine. Passing a String to an exporting parameter of an ABAP funtion works fine without problems. But when using table types it generates abap dumps telling the processFunction contains errors.
Does anyone have encountered the same problem or could help finding the issue?
Same fragments from the used code
String funcName = function.getName();
JCO.ParameterList input = function.getImportParameterList();
JCO.ParameterList output = function.getExportParameterList();
JCO.ParameterList table = function.getTableParameterList();
if (function.getName().equals("Z_RFC_GET_TRAFFIC_INFO")) {
JCO.Table tables = table.getTable("T_TRAFFIC"); ==> This triggers short dump (the table is defined with name T_TRAFFIC in the tabels tab of the function as Char512
output.setValue(result + "END OF THIS YEAR\n" + result2,"E_MESSAGE");
E_MESSAGE is a char 256 that works, result and result2 are arrays of string.
output.setValue("END OF THIS YEAR\n" + result,"E_TRAFFIC");
E_TRAFFIC is a table export parameter defined as char512 not working, trgiggering short dump
Thanks in advance
Reginald
hi Reginald,
As per my understanding, there seems to be some problem with the Function module (in ABAP). Check the Function module itself as well as its parameters. The dump telling process function contains error means that there is some problem in the calling FM.
Regards,
Richa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.