Advertisement

BDC (Batch Data Communication) recording is a method to transfer data form SAP system to SAP system or a non-SAP system to SAP system. This method is used to transfer large amount data that available in electronic form. It uses normal transaction code to transfer data.

There are two types of methods offered by SAP:

First method is called the “classical method”. In this method, data that is read by BDC program from a sequential dataset file is stored in a batch-input session. To run the transactions in the session, we need to execute session. We can start and monitor the session from menu System –> Services –> Batch Input or using transaction code SM35. This method uses the function module BDC OPEN, BDC INSERT and BDC CLOSE to generate the session.

In the second method, BDC uses the abap statement CALL TRANSACTION USING to run the transaction. In this method, BDC does not create a session.

In this post, I will explain step by step how to create BDC recording that used on the first method. I will record simple transaction to add Incoterms master data (T-code OVSG) as sample.

1. Use t-code SM35 to get the BDC input screen

2. Press recording button to initiate the recording session

abap bdc recording 01 BDC Recording

3. Enter the name of the recording session and use the create function

abap bdc recording 02 BDC Recording

3. A pop up appears requesting the transaction code to be used in the session. Enter the t-code and press “Start Recording”.

abap bdc recording 03 BDC Recording

4. The t-code takes us to the corresponding screen in SAP. Enter the required data and make any changes if necessary. Save the current transaction. During this whole process, the BDC records the movements of the cursor and the data changes made in the fields.

abap bdc recording 04 BDC Recording

abap bdc recording 05 BDC Recording

5. A Batch Input: Recording screen appears, listing the screen, data fields, etc recorded.

abap bdc recording 06 BDC Recording

6. Go back, to the previous screen. Choose the recording and press “Program” to generate program. A pop up screen appears and enter the program name and press enter.

abap bdc recording 07 BDC Recording

abap bdc recording 08 BDC Recording

7. Enter the title of program and other attributes. Save the attributes of the program and create the object as a local object. Finally press source code button.

abap bdc recording 09 BDC Recording

10. Finally, the code generated by program is displayed.

abap bdc recording 10 BDC Recording

We can modify BDC recording code generated by system to match the requirements, data structure or transaction.

Tags: * * * *

Filed under: Abap/4

Like this post? Subscribe to my RSS feed and get loads more!