Top Banner
Wipro confidential © Copyright 2008 Wipro Ltd Data Migration Techniques
38

Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

Apr 26, 2018

Download

Documents

phungtu
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

Wipro confidential © Copyright 2008 Wipro Ltd

Data Migration Techniques

Page 2: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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

Page 3: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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.

Page 4: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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)

Page 5: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

5 Confidential © Copyright 2009 Wipro Ltd

Data Migration Techniques

•Batch Input

•Legacy System Migration Workbench (LSMW)

•Extended Computer Aided Test Tool (eCATT)

Page 6: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

Wipro confidential © Copyright 2008 Wipro Ltd

Batch Input / BDC

Page 7: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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

Page 8: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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

Page 9: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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.

Page 10: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

10 Confidential © Copyright 2009 Wipro Ltd

How to create a BDC Program

Goto Transaction SHDB for recording

Page 11: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

11 Confidential © Copyright 2009 Wipro Ltd

Start a new recording giving below details:

Page 12: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

12 Confidential © Copyright 2009 Wipro Ltd

Once Recording is done, go back to get the below screen. Then Save.

Page 13: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

13 Confidential © Copyright 2009 Wipro Ltd

Create Program from Recording:

Page 14: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

14 Confidential © Copyright 2009 Wipro Ltd

Create Program from Recording:

Page 15: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

15 Confidential © Copyright 2009 Wipro Ltd

Code for the Recording done:

Page 16: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

16 Confidential © Copyright 2009 Wipro Ltd

Output of the Program:

Page 17: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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.

Page 18: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

Wipro confidential © Copyright 2008 Wipro Ltd

Legacy System Migration Workbench

Page 19: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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

Page 20: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

20 Confidential © Copyright 2009 Wipro Ltd

How to create a sample LSMW Program

Goto Tcode: LSMW

Page 21: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

21 Confidential © Copyright 2009 Wipro Ltd

Initial Screen for LSMW. (Need to perform all the steps)

Page 22: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

22 Confidential © Copyright 2009 Wipro Ltd

Step 1:

Page 23: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

23 Confidential © Copyright 2009 Wipro Ltd

Step 2: Creating a Structure Name

Page 24: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

24 Confidential © Copyright 2009 Wipro Ltd

Step 3: Defining Source Fields

Page 25: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

25 Confidential © Copyright 2009 Wipro Ltd

Step 4: Maintain Structure Relation

Page 26: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

26 Confidential © Copyright 2009 Wipro Ltd

Step 5: Fields Mapping

Page 27: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

27 Confidential © Copyright 2009 Wipro Ltd

Step 6: Maintain Field Value/Translation/Logic

Page 28: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

28 Confidential © Copyright 2009 Wipro Ltd

Step 7: Mention source File

Page 29: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

29 Confidential © Copyright 2008 Wipro Ltd

Specify the file with options to read the file.

Page 30: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

30 Confidential © Copyright 2009 Wipro Ltd

Page 31: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

31 Confidential © Copyright 2009 Wipro Ltd

Step 8: Assign file

Page 32: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

32 Confidential © Copyright 2009 Wipro Ltd

Step 9: Read Data

Step 10: View Read data

Page 33: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

33 Confidential © Copyright 2009 Wipro Ltd

AFS Categories

Step 11: Convert Data

Step 12: View Converted data

Page 34: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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

Page 35: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

Wipro confidential © Copyright 2008 Wipro Ltd

eCATT

Page 36: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

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/

Page 37: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

37 Confidential © Copyright 2009 Wipro Ltd

Questions and Answers

Page 38: Data Migration Techniques - docshare01.docshare.tipsdocshare01.docshare.tips/files/22355/223551278.pdf · Direct Input Method methods ... •Batch Input •Legacy System Migration

38 Confidential © Copyright 2009 Wipro Ltd