0% found this document useful (0 votes)
19 views

10 Data Migration Techniques

The document discusses various techniques for migrating data from legacy systems to SAP systems. It describes the key steps in data migration as extracting data from the legacy system, converting it to the appropriate format, importing it into SAP, and verifying the data. The main techniques covered are BDC (Batch Data Communication), LSMW (Legacy System Migration Workbench), and BAPI (Business Application Programming Interface). BDC uses screen recording to transfer data and has call transaction and session methods. LSMW is a workbench tool preferred by functional consultants. BAPI uses function modules and allows adding custom fields.

Uploaded by

Sai Rahul Reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

10 Data Migration Techniques

The document discusses various techniques for migrating data from legacy systems to SAP systems. It describes the key steps in data migration as extracting data from the legacy system, converting it to the appropriate format, importing it into SAP, and verifying the data. The main techniques covered are BDC (Batch Data Communication), LSMW (Legacy System Migration Workbench), and BAPI (Business Application Programming Interface). BDC uses screen recording to transfer data and has call transaction and session methods. LSMW is a workbench tool preferred by functional consultants. BAPI uses function modules and allows adding custom fields.

Uploaded by

Sai Rahul Reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 27

Data Migration Techniques

1
Introduction

▪ Data migration is also called as data transfer.

▪ Data migration means migrating the data from legacy system to SAP system.

▪ The system other than the SAP system is called as legacy system.

▪ Legacy system is also called as Non-SAP system.

▪ Legacy system contains the data which needs to be transferred.

2
Steps of Data Migration

▪ The various steps of data migration are as follows :

 Extracting the data - Extracting the data from the legacy system into a file.

 Converting the data - Converting the data to appropriate format. This is called as

conversion.

 Importing the data - Importing the data in to SAP system.

 Verifying the data - Checking the accuracy of data in SAP system.

3
Data Migration Techniques

▪ The various data migration techniques are as follows :

 BDC - Batch Data Communication

 LSMW - Legacy System Migration Workbench

 BAPI - Business Application Programming Interface

4
BDC - Introduction

▪ BDC stands for ‘Batch Data Communication’.

▪ The purpose of BDC is to transfer data from Non-SAP(legacy) system to SAP system.

▪ BDC works on the principle of screen recording.

▪ The transaction code for BDC recording is SHDB.

5
Precautions for Recording

▪ Never use any help(F4 & F1) while recording.

▪ Do not pass wrong values.

6
BDC Methods

▪ There are 3 BDC methods.

1. Call transaction method

2. Session method

3. Direct input method.

 Imp point : Call transaction method and session method are called as batch input

methods.

7
Call Transaction Method

▪ Syntax: CALL TRANSACTION ‘transaction code’ USING <BDC internal table> MODE < A or

N or E> UPDATE < A or S or L> MESSAGES INTO <message internal table>.

▪ Example : CALL TRANSACTION 'MM01’ USING lt_bdcdata MODE ‘A’ UPDATE ‘S’

MESSAGES INTO lt_messtab.

8
Call Transaction Method - Processing Modes

▪ There are 3 processing modes of call transaction method.

1. All screen(A)

2. No screen(N)

3. Error(E)

9
Call Transaction Method - Processing Modes

1. All screen(A) - It shows screen by screen processing.

2. No screen(N) - It does not show any screen. We directly get the result .

3. Error(E) - If there is an error in BDC, it shows the error screen. If there is no error, it does

not show any screen, we directly get the result .

1
0
Call Transaction Method - Update Modes

▪ There are 3 update modes of call transaction method.

1. Asynchronous(A)

2. Synchronous(S)

3. Local Update(L)

1
1
Call Transaction Method - Update Modes

1. Asynchronous(A) - COMMIT WORK. The called transaction does not wait for any updates

to be completed. It results in faster execution of the data transfer program.

2. Synchronous(S) - COMMIT WORK AND WAIT. The called transaction waits for any

updates to be completed. Execution is slower as compared to asynchronous updating

because called transactions wait for updating to be completed.

1
2
Call Transaction Method - Update Modes(Contd.)

3. Local Update(L) - If the data is updated locally, the update of the database will not be

processed in a separate process. The update functions run in the same dialog process.

1
3
Session Method

▪ In this method, we need to use the function modules - BDC_OPEN_GROUP, BDC_INSERT,

BDC_CLOSE_GROUP.

▪ Run the session with the help of transaction code: SM35.

1
4
Session Method - Processing Modes

▪ There are 3 processing modes of session method.

1. Foreground

2. Background

3. Display errors only

1
5
Session Method - Processing Modes

1. Foreground - It shows screen by screen processing.

2. Background - It does not show any screen. We directly get the result .

3. Display errors only - If there is an error in BDC, it shows the error screen. If there is no

error, it does not show any screen, we directly get the result .

1
6
Call Transaction Method and Session Method Comparison

▪ The below table shows the comparison of call transaction method and session method.

1
7
Direct Input Method

▪ Direct input method are standard SAP programs to post the data in to SAP.

▪ This method update the database tables directly.

▪ This method is fast as compared to batch input methods(call transaction method and

session method).

1
8
Direct Input Method(Contd.)

▪ The few examples of direct input programs are as follows :

 RFBIBL00 - FI(Finance)

 RMDATIND - MM(Material Management)

 RVAFSS00 – SD(Sales & Distribution)

1
9
LSMW- Introduction

▪ LSMW stands for ‘Legacy System Migration Workbench’.

▪ It is an ABAP workbench tool which is used to transfer data from Non-SAP( legacy)

system to SAP system.

▪ The transaction code for LSMW is LSMW.

▪ LSMW works best for master data as one doesn’t require much coding while using

LSMW.

2
0
LSMW- Introduction(Contd.)

▪ This method is preferred by functional SAP consultants rather than technical consultants

for data migration.

▪ We can export and import a LSMW.

▪ The difference between a LSMW and BDC is - LSMW is for functional consultants which

does not require much coding whereas BDC is designated for technical consultants

which requires coding.

2
1
LSMW Creation

▪ While creating LSMW we need to provide 3 things:

1. Project - Specifies the name of the data transfer project. More than one subproject can

be assigned to a project.

2. Subproject - Specifies the name of the subproject. A subproject can have unlimited

number of objects.

3. Object - An object corresponds to a business object. Examples- Material Master, Client

Master etc. An object is assigned to a subproject.


2
2
LSMW Methods

▪ The various LSMW methods are as follows:

1. Direct input

2. Batch input recording

3. Business object method(BAPI)

4. IDOC(intermediate document)

2
3
BAPI - Introduction

▪ BAPI stands for ‘Business Application Programming Interface’.

▪ It is a technique which is used to conduct large scale data migration from Non-

SAP(legacy) system to SAP system.

▪ BAPI’s in the SAP systems are implemented as functional modules.

▪ BAPI is a function module having a business object.

▪ BAPI is always preferable as compared to BDC for data migration.

2
4
Advantages of BAPI over BDC

▪ The below table shows the advantages of BAPI over BDC.

2
5
Steps to Add Custom Fields to BAPI

▪ SAP provided the provision to add custom fields to the standard BAPI.

▪ The various steps to add custom fields to the standard BAPI are as follows:

 Add the custom fields to BAPI extension structures.

 Add the custom fields to SAP standard tables.

 Use the parameters EXTENSIONIN/EXTENSIONINX of the standard BAPI to pass the

values of the custom fields.

2
6
Thank You

2
7

You might also like