Post on 26-Apr-2018
Wipro confidential © Copyright 2008 Wipro Ltd
Data Migration Techniques
2 Confidential © Copyright 2009 Wipro Ltd
Table of Contents
Introduction to DATA MIGRATION TECHNIQUES
Introduction of BDC
Direct Input Method methods
Call Transaction / Session Method
Example Program
Introduction to LSMW
Example Program
Introduction to eCATT
3 Confidential © Copyright 2009 Wipro Ltd
Introduction to Data Migration Techniques
The term data migration refers to the transfer of business data (master and transaction
data) from any application system to an SAP ERP system.
Data migration is sometimes also referred to as data transfer.
Legacy system - The application system that contains the data to be transferred before
the migration is referred to as the legacy system (or source system).
Legacy data - The data that is to be migrated from a legacy system to the SAP.
4 Confidential © Copyright 2009 Wipro Ltd
Data Migration Technical Steps:
1. Exporting the Data (Legacy system into File)
2. Reading the Data (File to Technically standardized Format)
3. Converting the Data (To appropriate format)
4. Importing the Data (To a format which SAP system can process)
5. Verifying the Data (To check for accurate data)
5 Confidential © Copyright 2009 Wipro Ltd
Data Migration Techniques
•Batch Input
•Legacy System Migration Workbench (LSMW)
•Extended Computer Aided Test Tool (eCATT)
Wipro confidential © Copyright 2008 Wipro Ltd
Batch Input / BDC
7 Confidential © Copyright 2009 Wipro Ltd
Introduction to Batch Input or BDC
BDC is one of the primary ways in which data can be transferred into an SAP
system. BDC is used primarily for bulk data transfers.
Types of BDC Programs:
•Direct Input
•Call Transaction / session method
8 Confidential © Copyright 2009 Wipro Ltd
Direct Input
Direct Input programs work like that they update database tables directly.
These are considered performance advantage compared to other techniques. Generally
we are not supposed to change the data directly, which is a disadvantage in it.
Examples of Direct Input Programs: RMDATIND – MM, RFBIBL00 – FI
9 Confidential © Copyright 2009 Wipro Ltd
Call Transaction / Session Method
BDC works by simulating the user input from transactional screen via an ABAP program.
The data input data file will come in the form of a flat file which the user save as file type txt
file or prn file from the Microsoft Excel program.
We will create a program to read the text file and upload into the SAP system.
Tcode SHDB is used to record the transaction code and we can generate a simple program
where we can modify the recordings if needed.
10 Confidential © Copyright 2009 Wipro Ltd
How to create a BDC Program
Goto Transaction SHDB for recording
11 Confidential © Copyright 2009 Wipro Ltd
Start a new recording giving below details:
12 Confidential © Copyright 2009 Wipro Ltd
Once Recording is done, go back to get the below screen. Then Save.
13 Confidential © Copyright 2009 Wipro Ltd
Create Program from Recording:
14 Confidential © Copyright 2009 Wipro Ltd
Create Program from Recording:
15 Confidential © Copyright 2009 Wipro Ltd
Code for the Recording done:
16 Confidential © Copyright 2009 Wipro Ltd
Output of the Program:
17 Confidential © Copyright 2009 Wipro Ltd
Using the program, either we create a session and execute it manually or we
process it using CALL Transaction method as shown in the screenshots in
previous slide.
Sample Program Output:
•Direct Input is not advisable.
•Call Transaction is preferable.
Wipro confidential © Copyright 2008 Wipro Ltd
Legacy System Migration Workbench
19 Confidential © Copyright 2009 Wipro Ltd
Introduction to LSMW
The LSMW is an R/3-based tool that supports you when transferring data from non-SAP
systems ("Legacy Systems") to R/3 once or periodically.
The tool supports conversion of data of the legacy system in a convenient way. The data
can then be imported into the R/3 system via batch input, direct input, BAPIs or IDocs.
SAP AG July 1999 21
Accelerating Data Migration: LSM Workbench
One or several
files
R/3
Sta
nd
ard
Convert data
Batch Input
processing
Legacy data
on PC
Read data
Converted
data
Read data
Legacy data
on application
server
IDoc inbound
processing
Direct Input
processing
How LSM Workbench works
Structure
relations
Field
mapping
Conversion
rules
20 Confidential © Copyright 2009 Wipro Ltd
How to create a sample LSMW Program
Goto Tcode: LSMW
21 Confidential © Copyright 2009 Wipro Ltd
Initial Screen for LSMW. (Need to perform all the steps)
22 Confidential © Copyright 2009 Wipro Ltd
Step 1:
23 Confidential © Copyright 2009 Wipro Ltd
Step 2: Creating a Structure Name
24 Confidential © Copyright 2009 Wipro Ltd
Step 3: Defining Source Fields
25 Confidential © Copyright 2009 Wipro Ltd
Step 4: Maintain Structure Relation
26 Confidential © Copyright 2009 Wipro Ltd
Step 5: Fields Mapping
27 Confidential © Copyright 2009 Wipro Ltd
Step 6: Maintain Field Value/Translation/Logic
28 Confidential © Copyright 2009 Wipro Ltd
Step 7: Mention source File
29 Confidential © Copyright 2008 Wipro Ltd
Specify the file with options to read the file.
30 Confidential © Copyright 2009 Wipro Ltd
31 Confidential © Copyright 2009 Wipro Ltd
Step 8: Assign file
32 Confidential © Copyright 2009 Wipro Ltd
Step 9: Read Data
Step 10: View Read data
33 Confidential © Copyright 2009 Wipro Ltd
AFS Categories
Step 11: Convert Data
Step 12: View Converted data
34 Confidential © Copyright 2009 Wipro Ltd
Import Data
The steps displayed by the program depend on the selected object type:
•Standard batch input or recording:
1. Generate batch input session
2. Run batch input session
•Standard direct input:
1. Start direct input session
•BAPI or IDoc:
1. Start IDoc creation
2. Start IDoc processing
3. Create IDoc overview
4. Start IDoc postprocessing
Best part of LSMW is we can download the project and then upload in any
system we wanted. There is no Transport Request needed to move the program.
Step 13: Create Batch Input Session and Run it
Wipro confidential © Copyright 2008 Wipro Ltd
eCATT
36 Confidential © Copyright 2009 Wipro Ltd
Inroduction of eCATT
The Extended Computer Aided Test Tool (eCATT) is a tool that was originally developed
to test business processes. Technically, a business process always consists of a
sequence of dialog transactions. To avoid having to enter each transaction manually, the
eCATT enables you to automate transaction processing and supply the transactions with
appropriate values. Ultimately, the data generated in this manner forms the foundation for
the system, integration, and mass tests that are essential to every ERP implementation
project.
Reference:
http://help.sap.com/saphelp_erp2004/helpdata/en/2a/121e3bd711bb04e10000000a11408
4/frameset.htm
http://www.erpgenie.com/sap/ecatt/
37 Confidential © Copyright 2009 Wipro Ltd
Questions and Answers
38 Confidential © Copyright 2009 Wipro Ltd