Using the Data Transfer Data Structure
If you want to write data to a batch input session or to process the data using CALL TRANSACTION USING or CALL DIALOG , you must prepare an internal table
The graphic below shows how to declare the internal table
DATA:
with HEADER LINE.
Process flow
- Declare internal table
- Initialize the internal table before you call each new transaction.
- At the beginning of each new screen, you must maintain the module pool name
- For each field to which you want to assign values, insert an entry in the internal table. Specify the technical field name
- If you want to position the cursor on a particular field, enter the cursor position by filling field FNAM with the value BDC_CURSOR, and transferring into the field FVAL the technical name
- Now specify which action is to be executed in this screen. You must determine the triggered function code
- Execute steps 3 to 6 for each additional screen in the transaction.
<bdc_tab>-PROGRAM =
APPEND
APPEND
APPEND
Assign value BDC_OKCODE to the field FNAM:
APPEND
- After the last screen in the transaction, internal table
The transaction to which a BDCDATA structure refers is identified separately. If your program writes data to a batch input session, then the transaction is specified in the call to the BDC_INSERT function module. This function module writes a BDCDATA structure out to the session. If your program processes data with CALL TRANSACTION USING, then the transaction is specified directly in this statement.
0 Comments:
Post a Comment
<< Home