Function modules are single functions that are managed by the SAP Function Builder (transaction SE37) and developed in SAP’s own programming language, ABAP.
The function module should have the attribute Remote Enabled to be called from outside the SAP system via the RFC protocol. It’s very easy to call these functions with the help of ERPConnect.
Every function module provides import and export parameters. These parameters are either given to or from the function module. Besides these scalar parameters, there can be also an exchange of tables. The figure below shows the principle of the object hierarchy that is provided by ERPConnect to manage the exchange of imports, exports and table parameters.
The following examples show how to log on to an SAP system, and how to use these objects to call function modules within the SAP system.