You are on page 1of 75

V.

HARI
SAP MM CONSULTANT

LSMW

LSMW – Legacy System Migration Workbench


The Legacy System Migration Workbench (LSMW) is a tool that allows users to
migrate data from external systems to SAP.
For Example
A company is implementing SAP and needs to migrate its data from its legacy
system. The company can use LSMW to automate the data migration process.
It has four Methods as follows
1. Direct Input Method
2. Batch input Recording
3. Bapi - Business Application Programming Interface
4. IDoc - Intermediate Document

1. Direct Input SAP


Legacy
2. Batch Input ECC
Recording
Staging Loaded 3. BAPI
Database Data Files 4. IDoc

LSMW

Advantages of Using LSMW

 It can automate the data migration process, which can save a significant amount of
time and effort.
 It is a flexible tool that can be used to migrate a variety of data types like Master
data, Purchasing Documents.

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Here, will see Some Examples for LSMW through Batch Input Recording Method
1.Initial Stock Entry through Batch Input Recording
T-code - LSMW

Select Create and


Define project, sub-project & object

Then, hit Enter

Execute

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step1: Maintain object Attributes

In this step, you specify the type of data you want to migrate, such as vendor
master data, material master data, or purchase order data. You also specify the
method you want to use to migrate the data, such as batch input recording or direct
input.

Here, I’m using Batch Input Recording

After Executing Step-1, This screen will Appear, Select Display-Changes to


Enable and to select the import method

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Here, I’m Selecting Batch Input Recording and Select Recordings: Overview

Recordings: Overview

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Create

Create recordings

Enter the Transaction Code

Then, Hit Enter.

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

The Initial Screen will appear and give the required inputs

Enter the Material Number and Quantity

The inputs are Recording and Save it

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Once you save the MB1C transaction, the below screen will appear

Then, Select Default All, now you can see all the Recorded fields of MB1C
Transaction

Then, Save it.

Then, Press Back Button

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Now, Assign the Created Recordings in Recording

Save it.
Step 2: Maintain Source Structure

In this step, you define the structure of the source data. This includes the names
and data types of all the fields.

Press Execute

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Display-Changes

Select Create

Name the Source Structure

Then, Select Tick Mark

Save it

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 3: Maintain Source Fields


In this step, you map the fields in the source data to the fields in the target data.

Select Object Overview and select List to get the Source fields name to map with
Target Source

Copy the Fields to Excel, Then Press Back Button

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Then, Select Execute

Select Display-Changes

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select the Source field and Select Table Maintenance to enter the Source Fields

Then Input the Required Fields with Character and Length

Then, Save it

And now the source fields are under in the Source Structure ZMB1C

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 4: Maintain Structure Relations


In this step, you define any relationships between the different structures in the
source data.

Then, Execute
Select Display Changes

Check and save it

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 5: Maintain Field Mapping & Conversion Rules

In this step, you review and finalize the field mapping and conversion rules that
you defined in the previous steps.

Select Display Changes

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Extras and Select Auto Field Mapping to Map the Source fields to Target
Fields

Accept proposal until all the source field gets completes

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Then, Save it.

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 6: is optional
Step 7: specify files
In this step, you specify the source file that contain the data you want to migrate.
Here Source file is Note Pad file, the data were copied from Excel Spread Sheet

Execute

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Display-Changes

Double Click on Legacy Data and add the note pad file path to File

select the tabulator and select the field names at start of file because data are in
Notepad

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Now, the source file is added in to Legacy data

Save it
Step 8: Assign Files
In this step, you assign the source file or files to the LSMW process.

Select display-changes

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Check the tick mark and save it


Step 9: Read Data
In this step, the LSMW process reads the data from the source files

Execute it

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Press Back Button


Step 10: Display Read Data
In this step, you can view the data that was read from the source file

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Now, you can see the data which we are uploaded, I’ve upload the 11 materials

Select any line in the list to see the given data

Press Back button

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 11: Convert Data


In this step, the LSMW process converts the data from the source format to the
target format

11 data are converted

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 12: Display Converted Data


In this step, you can view the data that was converted to the target format.

Select any of the lines to see the Converted data

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 13: Create Batch Session

In this step, the LSMW process creates a batch input session that contains the data
that you want to migrate.

Press Tick Mark

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 14: Run Batch input session


In this step, you run the batch input session to migrate the data to the target system.

Select the Session line and select the process

And Select process/foreground and select process

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

After Selecting the Process, the MB1C Screen will appear.


Now all the data are entered automatically in MB1C due to recording Method
Review and Select OK-Code until the Last Material in the list

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Now check the over view of the materials

Now, the stock is available at the storage location with required quantity

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

2. Vendor master through Batch Input recording method


T-Code- LSMW
Select Create

Give the project, sub-project & object names

Then Screen will go to LSMW home Screen


Step 1: Maintain Object attributes

Execute

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Display - Changes

Select a batch input recording and recording overview

Recordings: Overview

Then, Select Create to create Recordings

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Then, Give the Names to the Recordings

Transaction Code

Then, Vendor Screen will open

Note: Here Vendor Number is Internal & Give the required inputs

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Then, Hit Enter, the fields are being recording in background

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

After Entering all the fields in vendor Master data select default all to see the
recorded data

Now you can see all the data are recorded and save it

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Now, Assign the Created Recordings in Recording

Save it
Step 2: Maintain Source Structure

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Display - Changes

Then save it
Step 3: Maintain Source Fields
Select Object Overview and select List to get the Source fields name to map with
Target Source

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Copy the field names and table names, char and length to excel to upload

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Display-Changes

Select Table Maintenance to enter the fields

Enter the fields

And now the source fields are under in the Source Structure ZXK01

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 4: Maintain Structure Relations

Select Display-Changes

Save it
Step 5: Maintain Field Mapping & Conversion Rules

Execute

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Display-Changes

Select extras and field mapping

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Accept proposal until all the source field gets completes

Source fields are accepted and save it

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 6 is optional
Step 7: Specify Files

select display changes and double click on the legacy data to upload the source
fields data

select the tabulator and select the field names at start of file because data are in Notepad

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 8: Assign File


Assign the Source file to Targeted File

Select Display-Changes

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 9: Read the data in the Source Field

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 10: Display Read Data

Now, you can see the data which we are uploaded, I’ve upload the 11 materials

Select any line in the list to see the given data

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 11: Convert Data

Data were Converted

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 12: Display Converted Data

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 13: Create Batch Input Session

Execute

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 14: Run Batch Input Session

select the Session Line and Select the Process

Select Process / Foreground & Process

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

After Selecting the Process, the XK01 Screen will appear.


Now all the data are entered automatically in XK01 due to recording Method
Review and Select OK-Code until the Last Vendor in the list

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Press OK until the all the vendors created in the list

The Session is completed.

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Now check the vendor list whether the vendors are created as per the list
MKVZ
The Vendors are Created as per the Source Data List

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 3: Creation of Purchase Requisition through Batch Input Recording


Method

Select Create & Give names Project, Sub-Project & Object

Step 1: Maintain Object Attributes

Select Display-Changes

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select batch input recording and recordings: overview

Recordings: Overview

Select Create and give name to the Recordings

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Transaction Code

Input the required fields and save it the data are being recorded

Press Enter

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Then save it

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Then select default all


Then, you can see the field names of the source field data

Then, Save it.

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Now, Assign the Created Recordings in Recording

Then save it

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 2: Maintain Source Structure

Select Display-Changes

Select create and give name to source structure

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Then, Save it.


Step 3: Maintain Source Fields
Select Object Overview

select List to get the Source fields name to map with Target Source

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Copy the field names and table names, char and length to excel to upload

Select Display changes and table maintenance

Select Table maintenance

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Enter the fields

And now the source fields are under in the Source Structure YME51N
Step 4: Maintain Structure Relations

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Display-Changes

save it
Step 5: Maintain Field Mapping & Conversion Rule

Select display and changes

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

And Select Extra then auto field mapping

Accept proposal until all the source field gets completes

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Save it

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 6: is Optional
Step 7: Specify Files

Select display changes and double click the legacy data to upload the source field
file

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select the file and Select tabulator and field names at start file

Then save it
Step 8: Assign File
Assign the file to source structure

Execute

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select Display-Changes

And save it
Step 9: Read Data

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 10: Display Read Data

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select any line in the list to see the given data

Step11: Convert Data

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Data converted
Step 12: Display Converted Data

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Select any line in the list to see the given data

Step 13: Create Batch Input Session

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Step 14: Run Batch Input Session

Select the Session Line & Select Process

Select Process/foreground and Select Process

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

After Selecting the Process, the ME51 Screen will appear.


Now all the data are entered automatically in ME51 due to recording Method
Review and Select OK-Code until the PR in the list

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

https://www.linkedin.com/in/hari-vijayakumar
V.HARI
SAP MM CONSULTANT

Now, Check the PR List, T-Code is ME5A

PR is Generated

https://www.linkedin.com/in/hari-vijayakumar

You might also like