cancel
Showing results for 
Search instead for 
Did you mean: 

How to write java code for Java Proxy , when rfc has parameter changing

Former Member
0 Kudos

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 ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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