Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

JCoStructure vs. JCoTable

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?

Former Member
Not what you were looking for? View more on this topic or Ask a question