You are on page 1of 26

IBM Global Business Services

ABAP Batch Input

© Copyright IBM Corporation 2008


IBM Global Business Services

What is Batch Input?


• Batch input is one of the primary ways in which data can be transferred
into the R/3 System.

• Batch input is used for bulk data transfers and not for near real-time
data transfers.

© Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input: Concepts

頁數:3 © Copyright IBM Corporation 2008


IBM Global Business Services

Prerequisites

 The R/3 applications deliver many programs for batch input that are
ready to use. Sometimes, however, a customer must write his or her own
batch input program in order to convert data from a legacy system or
from a proprietary format into an R/3 data format.
 Batch input operation occurs only if a customer explicitly sets its up. The
customer must activate a program that prepares a batch input session
and that delivers it to the R/3 System.

頁數:4 © Copyright IBM Corporation 2008


IBM Global Business Services

Process Flow

Data transfer decision-making

Setting up batch-input for data transfers

Processing batch input sessions

Checking batch input sessions

Analyzing errors

Correcting errors

頁數:5 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

Start the batch input management tool:


 Select System → Service → Batch input → Sessions
 Direct enter transaction SM35 or SHDB

頁數:6 © Copyright IBM Corporation 2008


IBM Global Business Services

Recording Transactions

頁數:7 © Copyright IBM Corporation 2008


IBM Global Business Services

Recording Transactions
 Display the initial screen of the batch input recorder.
 Assign a name to your recording.
 Choose Create.
 On the subsequent dialog box, enter the transaction code that you
want to record and choose Continue.
The system displays this transaction.
 Execute the transaction in the usual way.
 When you have finished processing the transaction, the system
displays an overview of the transaction and your input.
Choose Get transaction if no errors occurred while the transaction
was being recorded.
If you do not want to keep the last recording that you made, go to
the next step.
 Choose Next transac. If you want to record an additional transaction.
Then continue from point 4.
 Save your recording when you have finished.

頁數:8 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:9 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:10 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:11 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:12 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:13 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:14 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:15 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:16 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:17 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:18 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:19 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:20 © Copyright IBM Corporation 2008


IBM Global Business Services

Generating Data Transfer Programs

 Position the cursor on the relevant recording and choose Create


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.

頁數:21 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:22 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:23 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:24 © Copyright IBM Corporation 2008


IBM Global Business Services

Batch Input

頁數:25 © Copyright IBM Corporation 2008


IBM Global Business Services

Executing Data Transfer Programs

頁數:26 © Copyright IBM Corporation 2008

You might also like