RFC_READ_TABLE returns NULL

582 Views Asked by At

I am using RFC_READ_TABLE function to retrieve list of tables:

destination = JCoDestinationManager.getDestination("ABAP_AS_WITH_POOL");
JCoFunction function = destination.getRepository().getFunction("RFC_READ_TABLE");
function.execute(destination); // This line of code is throwing error
JCoStructure returnStructure = function.getExportParameterList().getStructure("RETURN");

But it's returning me null value, could you help me?

Giving this Exception:

com.sap.conn.jco.AbapException: (126) TABLE_NOT_AVAILABLE: TABLE_NOT_AVAILABLE Message 300 of class DA type E

Complete code:

enter image description here

0

There are 0 best solutions below