The process of executing a function module in the SAP backend system usually looks as follows:
Provide the necessary logon parameters and obtain an RfcDestination object corresponding to the SAP system in which you want to call the function module.
Use the destination’s repository to create an RfcFunction object for the function module you want to call
Fill your input data into the importing, changing and tables parameters of the RfcFunction object, using the data container API.
Execute the function on the given destination.
Read the function module’s output data from the exporting, changing and tables parameters.