Professional Documents
Culture Documents
system or from a non-SAP system to SAP System. Features : BDC is an automatic procedure. This method is used to transfer large amount of data that is available in electronic medium. BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system). BDC uses normal transaction codes to transfer data. Types of BDC : CLASSICAL BATCH INPUT (Session Method) CALL TRANSACTION BATCH INPUT METHOD: This method is also called as CLASSICAL METHOD. Features: Asynchronous processing. Synchronous Processing in database update. Transfer data for more than one transaction. Batch input processing log will be generated. During processing, no transaction is started until the previous transaction has been written to the database. CALL TRANSACTION METHOD : This is another method to transfer data from the legacy system. Features: Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement. Updating the database can be either synchronous or asynchronous. The program specifies the update type. Transfer data for a single transaction. Transfers data for a sequence of dialog screens. No batch input processing log is generated.
Batch input is typically used to transfer data from non-R/3 systems to R/3 systems or to transfer data between R/3 systems. It is a data transfer technique that allows you to transfer datasets automatically to screens belonging to transactions, and thus to an SAP system. Batch input is controlled by a batch input session. Batch input session Groups a series of transaction calls together with input data and user actions . A batch input session can be used to execute a dialog transaction in batch input, where some or all the screens are processed by the session. Batch input sessions are stored in the database as database tables and can be used within a program as internal tables when accessing transactions. Points to note
BDI works by carrying out normal SAP transactions just as a user would but it execute the transaction automatically.All the screen validations and business logic validation will be done while using Batch Data Input. It is suitable for entering large amount of data. No manual interaction is required
1. In the foreground 2. In the background 3. During processing, with error display You should process batch input sessions in the foreground or using the error display if you want to test the data transfer. If you want to execute the data transfer or test its performance, you should process the sessions in the background. Points to note about Classical Batch Input method
Asynchronous processing Transfer data for multiple transactions. Synchronous database update. A batch input process log is generated for each session. Session cannot be generated in parallel.
Call Transaction Method. In this method ABAP/4 program uses CALL TRANSACTION USING statement to run an SAP transaction. Entire batch input process takes place online in the program
Points to Note:
Faster processing of data Synchronous processing Transfer data for a single transaction. No batch input processing log is generated.
You may observe the following process to write your BDC program 1. 2. 3. 4. 5. 6. Analyze the transaction(s) to process batch input data. Decide on the batch input method to use. Read data from a sequential file Perform data conversion or error checking. Storing the data in the batch input structure,BDCDATA. Generate a batch input session for classical batch input,or process the data directly with CALL TRANSACTION USING statement.
Batch Input Data Structure Declaration of batch input data structure DATA : BEGIN OF < bdc table> OCCURS <occurs parameters>. INCLUDE STRUCTURE BDCDATA. DATA:END OF <bdc table>. Field name PROGRAM DYNPRO DYNBEGIN FNAM FVAL Type CHAR NUMC CHAR CHAR CHAR Length 8 4 1 35 80 Description Module pool Dynpro number Starting a dynpro Field name Field value
The order of fields within the data for a particular screen is not of any significance Points to Note
While populating the BDC Data make sure that you take into consideration the user settings. This is specially relevant for filling fields which involves numbers ( Like quantity, amount ). It is the user setting which decides on what is the grouping character for numbers E.g.: A number fifty thousand can be written as 50,000.00 or 50.000,00 based on the user setting.
Condense the FVAL field for amount and quantity fields so that they are left aligned. Note that all the fields that you are populating through BDC should be treated as character type fields while populating the BDC Data table. In some screens when you are populating values in a table control using BDC you have to note how many number of rows are present on a default size of the screen and code for as many rows. If you have to populate more rows then you have to code for Page down functionality as you would do when you are populating the table control manually. Number of lines that would appear in the above scenario will differ based on the screen size that the user uses. So always code for standard screen size and make your BDC work always in standard screen size irrespective of what the user keeps his screen size as.
Begin the batch input recorder by selecting the Recording pushbutton from the batch input initial screen.
The recording name is a user defined name and can match the batch input session name which can be created from the recording. Enter a SAP transaction and begin posting the transaction. After you have completed posting a SAP transaction you either choose Get Transaction and Save to end the recording or Next Transaction and post another transaction. Once you have saved the recording you can create a batch input session from the recording and/or generate a batch input program from the recording. The batch input session you created can now be analyzed just like any other batch input session. The program which is generated by the function of the batch input recorder is a powerful tool for the data interface programmer. It provides a solid base which can then be altered according to customer requirements.