Hi I am using SAP JCo3 connector along with .dll file provided with the jar.
the destination is successfully connected. My problem is that when I am doing the function.execute(destination)
the function.getTableParameterList().getTable("PART_LIST")
returns an empty table with zero rows.
My code to achieve the connectivity is as below:
JCoDestination dest = JCoDestinationManager.getDestination("EOMP");
dest.ping();
JCoRepository repo= dest.getRepository();
JCoFunctionTemplate ftemplate = repo.getFunctionTemplate("Z_BAPI_GET_ESO_PART");
JCoFunction function = ftemplate.getFunction();
JCoParameterList importParams = function.getImportParameterList();
importParams.setValue("ESO","R1S00444");
importParams.toXML();
function.execute(dest);
JCoParameterList tableParamList=function.getTableParameterList();
JCoTable table=tableParamList.getTable("PART_LIST");