You can trun your own function module in to Remote function call. If another sap system wants to use the same function module then if this function module is Remote enabled then we can use this function in another sap system. RFC can be done from a SAP or a NON sap system(using a middleware or system that has SAP adapter). You can use Tibco or XI or Business connecter to connect to another system.
Click Here to read how to create a function module. I am not going to write that again. Now let us see how to trun the existing Function Module in to Remote Enabled. Look at the following screen shot for the default function module attributes.

Now you have to change the module attribute to make this function remote enabled. Look at the following screen shot for remote enabled function module. Once this is remote enabled you can call this from othre SAP as well as NON-SAP system.
Note: Make sure all the parameter input as well as output are having the pass value checked. If you didn’t check this box then you will get a error.
Now let us see how to call this function from another system.
