Professional Documents
Culture Documents
External System
SAP System
Data
Batch Input
X
External Data
Online Program
To check and validate the external data, user dialog is simulated through an SAP transaction (i.e., an online program).
TEST1
BDCDATA Structure
To simulate user dialog, you must know the following information: (1) online program name, (2) screen numbers, (3) field names, and (4) field values.
The BDCDATA ABAP/4 Dictionary structure is used in a batch input program to collect this information for an entire transaction.
ABAP/4 Dictionary
BDCDATA
TEST1
For our example, we will use the Change Vendor transaction (FK02) to add a street address to an already existing vendor.
X Address
City
Philadelphia
Step #2
Use F1 key and Technical Info pushbutton in each screen field to be filled to determine the field name.
Step #3
Determine how to proceed in the transaction (go to the next screen by pressing the Enter key). Field name = RF02K-LIFNR
Address
Step #2
Use F1 key and Technical Info pushbutton in each screen field to be filled to determine the field name.
Step #3
Determine how to proceed in the transaction (save the record by clicking on the Save pushbutton or pressing the F11 key).
Field name = LFA1-STRAS
FVAL TEST1 X
SAPMF02K
0110
X
LFA1-STRAS 123 Main St. BDC_OKCODE /11
DATA:
The internal table used to collect the transactions information must be declared LIKE BDCDATA.
ENDFORM.
This two-subroutine method to fill the BDC table is preferable because the POPULATE_BDC_TAB subroutine is reusable throughout all batch input programs.
L&T Information Technology Limited - Confidential
Method #1
Method #2
Method #3