Generally you can call a RFC program with the below syntax:
CALL FUNCTION...DESTINATION
Here destination will the the system where the program need to run. E.g. you are executing a program in system A and at runtime you want to get some data from system B also. In that case for system A, DESTINATION = B.
Generally these programs are nothing but function module. The only difference is RFC is remote enabled (check the radio button while creating the FM).
Check out a sample code below
call function 'Z_GET_USER_IDS'
destination 'SYSTEMB'
importing
userid = SAPUID.
You can simply create 1 program in Dev system 000 and 1 RFC function module in Dev system 800. Now in systm 000 try to call the RFC FM from that program.