Declaring BDC Table PDF Print E-mail
User Rating: / 0
PoorBest 
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 1

Method 2:

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)
Comments
Add New Search
Write comment
Name:
Email:
 
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Advertisement

 

Google Search

Advertisement