cancel
Showing results for 
Search instead for 
Did you mean: 

JCoStructure vs. JCoTable

Former Member
0 Kudos

Hi have a problem with a return-value from a function block. If I try to use this Java-Code:

JCoTable test = function.getTableParameterList().getTable("RETURN_TABLE");

I get a NullPointerException, because the Table is a Returntype. So in the function block it is in the export-slide. If it is in the table-slide, than it works fine, but if the table is a return type, it doesn't work. Now I have tried to use the table as a structure.

JCoStructure test = function.getExportParameterList().getStructure("RETURN_TABLE");

But now it cannot be converted...

"Cannot convert field RETURN_TABLE of type TABLE to StructureRecord"

How can I read the Return-Value RETURN_TABLE in Java?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Why not use the following:


JCoTable test = function.getExportParameterList().getTable("RETURN_TABLE");

Cheers, harald