|
ABAP Tutorials -
ABAP Data Interfaces
|
|
Written by Sayali
|
|
Wednesday, 03 December 2008 18:15 |
|
Once you have determined the contents of the BDC table, you can begin coding the batch input program. In a batch input program, you must declare the BDC table as an internal table with the following statement: DATA: <bdc table> LIKE STANDARD TABLE OF BDCDATA INITIAL SIZE <n> [WITH HEADER LINE]. The <bdc table> must be declared “LIKE BDCDATA”. After determining the contents of the <bdc table> (see previous chapters), you can determine the number <n> in the “INITIAL SIZE” clause. This internal table does not have to be created with a header line. However, all of our examples and solutions will use a header line with the BDC table. Once you have declared the BDC table, you can fill it with the appropriate values for one transaction at a time. In the next two slides, we will cover two methods that can be used to fill the BDC table. There are 2 methods widely used to fill the BDC Table. Screenshots of the sample codes are shown below. Method 1: 
Method 2: 
Batch Input Methods So far, we have only filled the BDC table. We have not actually performed batch input to update an SAP database. In a batch input program, the contents of the BDC table can be used three ways to perform batch input: - Use the BDC table to create a batch input session. In this case, the batch input program is often called a BDC program.
- Use the BDC table in a “CALL TRANSACTION USING” statement.
- Use the BDC table in a “CALL DIALOG” statement. (outdated)
|