on 11-30-2007 8:04 AM
Hi all:
I need to write java code to call RFC , through Java Proxy mode. the Sap Enterprise Connector help me generate some proxy class.
But this rfc has 3 parameter ( table type ) in change . ( not in import/export parameter ). I find when I call that rfc, without passing the table element to that rfc, it always returns me RFC error.
How should I write java code for this ?
Hi jianhong,
download the jco documentation to find coding examples or the javadocs,
which help you on your expedition...
service.sap.com/connectors --> SAP Java Connector
Regards, Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Function func = getDefaultJCoConnection().getJCoFunction(FUNCTION MODULE NAME);
func.getImportParameterList().getField(IMPORTPARAMETER).setValue(VALUE);
Table table = func.getTableParameterList().getTable(TABLENAME);
productTable.appendRow();
productTable.setValue(VALUE,FIELDNAME);
getDefaultJCoConnection().execute(func);
Follow this code and send parameters through table to an RFC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.