SAP Remote Function calls to execute an ABAP Program on a NetWeaver server. Primary designed to exchange data to and from a non-SAP application by an ABAP program exposed over the RFC Interface. Literally everything could be executed on the SAP system, because if there is a standard RFC missing a customized one can be programmed in ABAP. In many cases a RFC is also called a BAPI (Business Application Programming Interface), even though BAPI is a subset of RFCs.
sofision llc has plenty of experiences in using BAPI and RFC's by calling them from remote systems.