SAP ABAP BDC (Batch Data Communication) Tutorial
SAP ABAP BDC (Batch Data Communication) Tutorial
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
https://www.guru99.com/bdc-batch-data-communication.html 1/9
7/2/23, 1:39 PM SAP ABAP BDC (Batch Data Communication) Tutorial
In this method an ABAP/4 program reads the external data to the SAP System and
stores in a batch input session.
After creating the session, you can run the session to execute the SAP transaction in
it.
This method uses the function modules BDC_ OPEN, BDC_INSERT and BDC_CLOSE
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.
Synchronous processing
Transfer data for multiple transactions.
Synchronous database update.
https://www.guru99.com/bdc-batch-data-communication.html 2/9
7/2/23, 1:39 PM SAP ABAP BDC (Batch Data Communication) Tutorial
In this method ABAP/4 program uses CALL TRANSACTION USING statement to run
an SAP transaction.
Points to Note:
https://www.guru99.com/bdc-batch-data-communication.html 3/9
7/2/23, 1:39 PM SAP ABAP BDC (Batch Data Communication) Tutorial
You will typically observe the following sequence of steps to develop Batch Input
for your organization
https://www.guru99.com/bdc-batch-data-communication.html 4/9
7/2/23, 1:39 PM SAP ABAP BDC (Batch Data Communication) Tutorial
6. Analyze the process log. For the CALL TRANSACTION method, where no proper
log is created, use the messages collected by your program.
7. From the results of the process analysis, correct and reprocess the erroneous
data.
https://www.guru99.com/bdc-batch-data-communication.html 5/9
7/2/23, 1:39 PM SAP ABAP BDC (Batch Data Communication) Tutorial
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.
https://www.guru99.com/bdc-batch-data-communication.html 7/9
7/2/23, 1:39 PM SAP ABAP BDC (Batch Data Communication) Tutorial
About
About Us
Advertise with Us
Write For Us
Contact Us
Career Suggestion
SAP Career Suggestion Tool
Software Testing as a Career
Interesting
eBook
Blog
Quiz
SAP eBook
Execute online
Execute Java Online
Execute Javascript
https://www.guru99.com/bdc-batch-data-communication.html 8/9
7/2/23, 1:39 PM SAP ABAP BDC (Batch Data Communication) Tutorial
Execute HTML
Execute Python
© Copyright - Guru99 2023 Privacy Policy | Affiliate
Disclaimer | ToS
https://www.guru99.com/bdc-batch-data-communication.html 9/9