Sample programs are provided in the RFC SDK:
· RFC client programs:
¡ sapinfo.c
¡ srfctest.c
¡ rfc2abap.c
¡ startrfc.c
¡ and trfctest.c for transactional RFC client programs.
· RFC server programs:
¡ rfcexec.c
¡ srfcserv.c
¡ and trfcserv.c for transactional RFC server programs.
You can find these programs in.../rfcsdk/text.