RFC Using the ABAP Debugger 

As of R/3 Release 3.0C you can use the full functionality of the ABAP debugger when developing or testing an application using RFC.

To use this functionality, a 3.0C (or later) SAPGUI must be installed on the external system where the RFC client program is running.

An RFC client program can use this feature with one of the following options:

Set this environment variable to any value to enter debugging mode.

If the RFC client program uses RfcConnArgv for scanning the command line, set -debug on the command line to enter debugging mode.

If you can modify the coding of the RFC client program you are using, you can set the trace field in the structure RFC_OPTIONS to the value D or E before calling RfcOpen:

Define an entry in the saprfc.ini file which includes all necessary connection parameters and the RFC-specific parameter RFC_DEBUG (=1). An RFC client program can then issue the RfcOpen call with the mode RFC_MODE_PARAMETER and a destination pointed to this defined entry. See The SAPRFC.INI File for more details.