Show TOC

RfcInstallGenericServerFunctionLocate this document in the navigation structure

Use

Installs a generic callback function of type RFC_SERVER_FUNCTION. This callback will be called by the RFC Runtime, whenever a combination of SAP System ID & function module name comes in, for which no matching callback function has been installed via RfcInstallServerFunction.

In addition to the handler function you need to provide a second callback function:

  • RFC_FUNC_DESC_CALLBACK.

    This callback will be called to obtain a RFC_FUNCTION_DESC_HANDLE for the current function module from you. So this function either needs to return hard-coded meta data or needs to be able to perform a DDIC lookup using a valid client connection and RfcGetFunctionDesc.

Structure

RFC_RC SAP_API RfcInstallGenericServerFunction(RFC_SERVER_FUNCTION serverFunction, RFC_FUNC_DESC_CALLBACK funcDescProvider, RFC_ERROR_INFO* errorInfo);