Skip to Content
1
May 26, 2020 at 09:13 PM

JCo generic handler registration for SAP FM

242 Views

Hi experts,

Ho to register handler in SAP JCo, so that it listens to all remote enabled SAP Function Modules, that are called in SAP with the 'Destination' parameter as the JCo Server?

I know, that we can register a handler for specific functions using this:

JCoServerFunctionHandler abapcallHandler =newAbapCallHandler();DefaultServerHandlerFactory.FunctionHandlerFactory factory =newDefaultServerHandlerFactory.FunctionHandlerFactory();
factory.registerHandler(TabFun.getString("FUNCTION_NAME"), abapcallHandler);
server.setCallHandlerFactory(factory);

But how to create a generic handler, that will work dynamically for all functions, not only this explicit declared using "registerHandler" method?

Thanks!