Hi,
I'm trying to call a transaction from jco. It is successful till a point - transaction actually start but there is not way to read the resulting screen. Is it possible to achieve this at all?
Here is a little snippet:
JCoFunction function = destination.getRepository().getFunction("ABAP4_CALL_TRANSACTION");
JCoRecordMetaData usingTabMeta = function.getFunctionTemplate().getFunctionInterface().getRecordMetaData("USING_TAB");
JCoTable usingTab = JCo.createTable(usingTabMeta);
JCoRecordMetaData spagpaTabMeta = function.getFunctionTemplate().getFunctionInterface().getRecordMetaData("SPAGPA_TAB");
JCoTable spagpaTab = JCo.createTable(spagpaTabMeta);
JCoRecordMetaData messTabMeta = function.getFunctionTemplate().getFunctionInterface().getRecordMetaData("MESS_TAB");
JCoTable messTab = JCo.createTable(messTabMeta);
function.getImportParameterList().setValue("SKIP_SCREEN", 'X');
function.getImportParameterList().setValue("MODE_VAL", 'E');
function.getImportParameterList().setValue("UPDATE_VAL", 'A');
function.getImportParameterList().setValue("TCODE", name);
function.getTableParameterList().setValue("USING_TAB", usingTab);
function.getTableParameterList().setValue("SPAGPA_TAB", spagpaTab);
function.getTableParameterList().setValue("MESS_TAB", messTab);
try {
function.execute(destination);
} catch (AbapException e) {
System.out.println(e.toString());
return;
}