cancel
Showing results for 
Search instead for 
Did you mean: 

Access Function Module "RSDU_EXEC_SQL" via Jco

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Check whether RSDU_EXEC_SQL is remote enabled or not.

You need to make it remote enabled. Only then it will become an RFC from a Function module.

Former Member
0 Kudos

Thanks for the answer.

That was the cause.

Former Member
0 Kudos

only 6 points !

just kidding