how rfc works in sap?
A remote function call (RFC) is the call of a function module that runs in a different system to the calling program. ... In the SAP system, these functions are provided by the RFC interface system. The RFC interface system enables function calls between two SAP systems, or between an SAP system and an external system.