Skip to Content
avatar image
Former Member

Jco Outbound - Saving data to table triggers short dump

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 19, 2007 at 02:06 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded