Generating Function Modules
Before you can generate a data transfer program, you must record the transactions using which the data is imported into the SAP system. You use the batch input recorder to do this.
...
1. Display the initial screen of the batch input recorder (Transaction SHDB).
2.
Choose Overview.
The system displays an overview of all recordings.
3. Position the cursor on the relevant recording and choose Create function module.
4.
On
the subsequent dialog box, enter a function module name, a function group and
a short text for the function module. Exit the dialog box by choosing Continue.
The system automatically creates the function module.
You have now generated a function module that you can use as an interface for your SAP system. As well as information relevant for the data transfer, the function module's import interface has a parameter for each input field of the transaction recorded.