Show TOC

Process documentationSAP RFC Server Programming Locate this document in the navigation structure



The process of receiving an RFC request from an SAP backend system and processing that request looks as follows:

  • Provide the necessary gateway connection parameters and obtain an RfcServer object corresponding to the backend from which you want to receive calls.

  • Implement the business logic for the function module(s) you intend to process and register these implementations as C# delegates of type FunctionHandler with the RfcServer object.

  • Either create an RfcCustomRepository containing the metadata for the function modules you want to process, or configure an RfcDestination, whose repository you can use. Register this repository with the RfcServer.

  • Optionally implement an IServerSecurityHandler and register it with the RfcServer, if you want to protect your function implementations from unauthorized access by any SAP system user.

  • Optionally implement an ISessionProvider and register it with the RfcSessionManager as described in section 2.2, if you want to process stateful RFC calls.

  • Optionally implement an ITransactionIDHandler and register it with the RfcServer, if you want to process tRFC/qRFC calls.

  • Optionally implement an IUnitIDHandler and register it with the RfcServer, if you want to process bgRFC calls.

  • Optionally register event handlers for server state changes or server errors, if you are interested in these events for monitoring or tracing reasons.

  • Finally start the RfcServer. The required APIs for these steps will be described in detail in this section.

More Information

For further information, click on one of the following links: