Steps for Implementing Remote Function Modules
To implement a remote function module in ABAP, perform the following steps:
...
1. Write the code for the function module.
For guidelines for creating function modules in Application Server ABAP Repository, see Function Builder.
2. Register the module as remotely callable in the RFC server system.
In the function module Administration screen (transaction code SE37), select the Can be called via Remote Function Call field. Registering a module as remote causes an RFC stub to be generated for it.
3.

Define the destination of the RFC server in the RFC client system that calls the remote function.
Either you or
your system administrator can maintain table RFCDES in transaction SM59
(Tools
®
Administration, Administration ®
Network ®
RFC
Destinations). For more detailed information,
see
Maintaining Remote
Destinations.
You can then use this destination in your programs to call the function module.