One of the two recommended ways to process batch input data is to store the data in a batch input session. You can then run this session in the SAP system to enter the batch input data into the system.
If you have generated a batch input program, the following function modules are automatically assigned the correct values.
If you want to write your own program, proceed as follows:
...
1. Generate the batch input session using function module BDC OPEN GROUP.
2. The proceed as follows for each transaction that the session contains:
...
a. In the BDCDATA structure, enter the value for all screens and fields that must be processed in the transaction.
b. Use BDC INSERT to transfer the transaction and the BDCDATA structure to the session.
3. Close the batch input session with BDC CLOSE GROUP
4. Start to process the generated session.