on 09-18-2008 9:45 PM
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;
}
I think it is possible.
try this document http://nwadave.com/NwadExplorer/data/SAPDoc/ProcessingIDocsWithTheSAPJavaConnector.doc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.