Skip to Content
0
Former Member
Jun 17, 2010 at 10:01 AM

Access Function Module "RSDU_EXEC_SQL" via Jco

58 Views

Hello Experts,

is there a possibility to acces the FM "RSDU_EXEC_SQL" via Jco?

My Testcode is like this:

public class JcoTest {

	
	
	public static void connect(){
		Client connection = JCO.createClient("100", "user", "password", "EN",
				"some.server", "00");
		connection.connect();
		Repository repository = new JCO.Repository("Test", connection);
		IFunctionTemplate functionTemplate = repository.getFunctionTemplate("RSDU_EXEC_SQL");
		Function function = functionTemplate.getFunction();
		System.out.println(function.getImportParameterList().toString());
		connection.disconnect();
	}
	
	
	
	
	
	public static void main(String[] args) {
		connect();
	}

}

But this leads to an Exception: (126) NOT_FOUND: EXCEPTION NOT_FOUND RAISED

When i access the RFC_READ_TABLE instead, everything is fine.

Thanks in advance,

Tanja