Prerequisites
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 transaction recorder to do this.
Procedure
- Display the initial screen of the transaction recorder.
- Choose Overview. The system displays an overview of all recordings.
- Position the cursor on the relevant recording and then choose Generate Program.
- On the following screen, specify a program name.
- You can also choose how the maintained field contents of the recorded screens are to be filled:
-
Transfer the values that were used during the recording. If you require a flexible data transfer, you must modify this program.
-
Set the parameters of the input values to be maintained and import these values from a data file. To set the parameters, the system creates a data structure and imports the data records from an external file into this data structure. The program assumes that the external file has been adapted to this data structure.
- If you have decided to set parameters for the input values to be maintained, it is useful if you create a test file when you generate the program. To do this, flag the checkbox and enter a name for the test file. For more information, see creating a test file.
- Choose Continue.
- The system displays the attribute screen of the program editor. Choose the relevant attributes here and save the program.
Results
You have now generated a data transfer program that you can use to import data into the SAP system. The program can execute the data transfer using batch input or CALL TRANSACTION.