PROCEDURE OF TRANSFER DATA USING BATCH INPUT
1. Analyze the data that is to be transferred to the SAP System to
determine how your existing data should be mapped to the
SAP data structure.
- Determine structure of the data that is to be transferred into
the system.
- Using the SAP data structure that you generate in step 2,
Determine how the data to be transferred must be mapped to
the SAP structure.
- Determine whether any data type or data length conversions
are required.
2. Generate SAP data structures for incorporation into your data
export program.
- Use the data structure generation function of the ABAP
dictionary to generate data structures for SAP tables in any of
several programming languages.
- If you are using one of SAP's standard batch input programs,
then use of this function is required.
The standard batch input programs generally require that
you use a special predefined data structure.
- If you're writing your own batch input procedure, then you will
need to determine the data structure on your own.
You'll need to analyze the SAP transactions to find
the names of the fields that the transaction requires.
3. Code your data transfer program.
You can write the program in ABAP or as an external program.
4. Export the data that is to be transferred to a sequential file.
Requirements:
- The file must use the logical format required by the batch-
input program that will import the file (step 6).
- Reading and interpreting the file is much easier if you write it
in ASCII or EBCDIC (character) format rather than,
for example, writing numeric data in hexadecimal format.
Character format is required by the pre-defined SAP batch
input programs.
5. If necessary, code the ABAP batch input program that will read
in the data to be transferred from your file.
SAP supplies ready-to-run batch-input programs for most of
the SAP applications.
6. Process the data and add it to the SAP System.
You can do this either by:
- Generating a batch input session; or
- by processing data directly in your batch-input program with
the ABAP statement CALL TRANSACTION USING.
(see BDC Method)
7. Check that all data has been successfully processed.
Method:
Analyze the batch input-processing log.
If you are using CALL TRANSACTION USING, then you will need
to analyze the processing messages collected by your program.
8. Correct and re-process erroneous data.