0

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

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
  • 1
    What exactly is the problem? "It's not working" is not an accurate problem description. – vwegert May 10 '17 at 17:52
  • 1
    Please check http://stackoverflow.com/help/mcve – Ardeshana Milan May 10 '17 at 19:28
  • Giving this Exception: com.sap.conn.jco.AbapException: (126) TABLE_NOT_AVAILABLE: TABLE_NOT_AVAILABLE Message 300 of class DA type E..........@vwegert – Mihir Rupapara May 11 '17 at 07:29
  • 1
    Small wonder, since you are calling the function module without specifying a table... – vwegert May 11 '17 at 07:49
  • 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"); .............@vwegert Thanks... – Mihir Rupapara May 11 '17 at 10:29

0 Answers0