SAP BDC (Batch Data Communication) Tutorial
SAP BDC (Batch Data Communication) Tutorial
SAP BDC (Batch Data Communication) Tutorial
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.
Asynchronous processing
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:
Synchronous processing
You will typically observe the following sequence of steps to develop Batch Input for your
organization
1. Analysis of the legacy data. Determine how the data to be transferred is to be mapped in
to the SAP Structure. Also take note of necessary data type or data length conversions.
2. Generate SAP data structures for using in export programs.
3. Export the data in to a sequential file. Note that character format is required by
predefined SAP batch input programs.
4. If the SAP supplied BDC programs are not used, code your own batch input program.
Choose an appropriate batch input method according to the situation.
5. Process the data and add it to the SAP System.
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.
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.
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.