Documente Academic
Documente Profesional
Documente Cultură
The SAP System offers three methods for transferring data into the System from other SAP Systems and non-SAP Systems.
These methods are collectively called "batch input" or "batch data communication."
Basic Technique
All batch input methods work by carrying out normal SAP transactions, just as any user would. Batch-input executes the transactions automatically and is therefore suitable for entering large amounts of data that are already available .
The batch input technique offers these advantages for transferring data: No manual interaction is required during data transfer. Batch input ensures data integrity.
Method 1 - CLASSICAL BATCH INPUT Method 2 - CALL TRANSACTION Method 3 - CALL DIALOG
This method uses the function modules BDC_OPEN, BDC_INSERT, and BDC_CLOSE to generate sessions.
BDCDATA
All three batch-input methods use a common data structure for holding the instructions and data for SAP transactions. This structure is defined as structure BDCDATA in the ABAP/4 Dictionary.
Example
BDCDATA-PROGRAM = 'sapms38m'. BDCDATA-DYNPRO = '0100'. BDCDATA-DYNBEGIN = 'x'. APPEND BDCDATA.
Executing a function
You can execute a function in a transaction by entering the function code or function key number in the command field of an SAP session. You use the FNAM and FVAL fields to enter this information, just as you would for normal screen fields. The command field is identified by a special name in batch input, BDC_OKCODE. This name is constant and always identifies the command field. For function key: BDCDATA-FNAM = 'BDC_OKCODE'. BDCDATA-FVAL = '/11'. For function code: BDCDATA-FNAM = 'BDC_OKCODE'. BDCDATA-FVAL = '=UPDA'.
BDCDATA-FVAL = 'fieldx'.
.
Using BDC_INSERT
This function module adds a transaction to a batch input session. You specify the transaction that is to be started in the call to BDC_INSERT.
You must provide a BDCDATA structure that contains all of the data required to process the transaction completely.
BDC_CLOSE_GROUP
Use the BDC_CLOSE_GROUP function module to close a session after you have inserted all of your batch input data into it. Once a session is closed, it can be processed. You must close a session before you can open another session from the same program.