Data Transfer Techniques
Data Transfer Techniques
02-Sep-09
Data Transfer Techniques
External Files
Batch Data Communication
RFC
BAPI
LSMW
Direct Input
02-Sep-09 2
Batch Data Communication
(Sequential)
Flat File
for
Data Transfer
Conversion
SAP Data Transfer
02-Sep-09 3
Objective
02-Sep-09 4
Definition
02-Sep-09 5
Features
BDC can be used primarily when installing the SAP system and
when transferring data from a legacy system (external system).
02-Sep-09 6
Types of BDC
Call Transaction
02-Sep-09 7
Batch Input 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.
02-Sep-09 8
Batch Input method
Sequential
file
Batch
Batch input
input program
program
Queue file
Batch
Batch input
input function
function
SAP
SAP R/3
R/3
Flight
Customer connections Reservation
data data
02-Sep-09 9
Steps Involved in Classical Batch Input
02-Sep-09 10
Steps Involved in Classical Batch Input
02-Sep-09 11
Session Methodology
BDC_OPEN_GROUP
BDC_OPEN_GROUP
Client
Client CLIENT
CLIENT
Session
Sessionname
name GROUP
GROUP
Lock
Lock date
date HOLD
HOLD
Delete
Delete session
sessionafter
after KEEP
KEEP
processing
processing
BDC
BDCuser
user name
name USER
USER
BDC_INSERT
BDC_INSERT
Transaction
Transaction code
code TCODE
TCODE
BDC
BDC table
table DYNPROTAB
DYNPROTAB
BDC_CLOSE_GROUP
BDC_CLOSE_GROUP
02-Sep-09 12
Structure of BDC Data
BDC Table
Program
Program Screen
Screen Start
Start Field
Field name
name Field
Fieldcontents
contents
<program
<program name>
name> <number
<number1>
1> xx
<field
<field 11>
11> <value
<value11>
11>
<field
<field 12>
12> <value
<value12>
12>
...
... ...
...
<program
<program name>
name> <number
<number2>
2> xx
<field
<field 21>
21> <value
<value21>
21>
<field
<field 22>
22> <value
<value22>
22>
...
... ...
...
...
... ...
...
02-Sep-09 13
Recording(Transaction code SHDB)
02-Sep-09 14
Recording Steps
Recording Step 1:
Starting screen of the recording (Transaction code SHDB)
Click “New Recording” button to new recording.
02-Sep-09 15
Recording Steps
Recording Step 2 : Enter the recording name and the transaction for
which you want the recording and click “Start Recording” Button.
02-Sep-09 16
Recording Steps
Recording Step 3 : Enter sample data for the transaction.
Every key stroke will be recorded.
02-Sep-09 17
Recording Steps
Recording Step 4 : After entering all data for the transaction (here XK01),
the recording overview screen will be displayed. Then save the recording.
And click the “Program” button.
02-Sep-09 18
Recording Steps
Recording Step 5 : Enter the program name.
02-Sep-09 19
Recording Steps
02-Sep-09 20
Vendor Creation
02-Sep-09 21
Vendor Creation
02-Sep-09 22
Vendor Creation
02-Sep-09 23
Vendor Creation
02-Sep-09 24
Background processing
RSBDCSUB
In SM35 we can only process one session at a time.
By calling RSBDCSUB ,we can process multiple Session at a time
in Background.
02-Sep-09 25
Call Transaction Method
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.
02-Sep-09 26
Error Tracking in Call Transaction
02-Sep-09 27
Conversion Routine
1. CONVERSION_EXIT_ALPHA_INPUT
2. CONVERSION_EXIT_ALPHA_OUTPUT
02-Sep-09 28
Common Validation
02-Sep-09 29
Real-time Scenarios
Material Master Conversion –MM01
Purchase Order-ME21
Sales order-VA01
Source List-ME01
Customer master-XD01
Vendor Master-XK11
Asset creation-AS91
Accounts Receivable-FB01
Goods movement-MB11
02-Sep-09 30
Exercise for Practice
02-Sep-09 31
Exercise for Practice
Report :
1. Error Record Should be Downloaded to Application server.
2. Number of legacy Records,
Number of Success Records,
Number of Failure Records.
Tables : Mara.
Fields : Matnr,Mbrsh,Maktx,Mtart,Meins,Matkl
02-Sep-09 32
THANK YOU
02-Sep-09 33