Anda di halaman 1dari 42

Legacy System Migration Workbench

Agenda
Introduction LSMW
Step-1: Opening the Legacy System Migration Workbench
Step 2: Create Recording
Step 3: Maintain Object Attributes (Assign recording)
Step 4: Maintain Source Structures
Step 5: Maintain Source Fields
Step 6: Maintain Structure Relations
Step 7: Maintain Field Mapping and Conversion Rules
Step 8: Specify Files
Step 9: Assign Files
Step 10: Read Data
Step 11: Display Read Data
Step 12: Convert Data
Step 13: Display Converted Data
Step 14: Create Batch Input Session
Step 15: Run Batch Input Session

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Introduction
The LSMW is a tool that supports the transfer of data from non-SAP
systems (Legacy Systems) to SAP R/3 systems. This can be a onetime transfer as well as a periodic one. It is a cross-platform
component of the SAP system.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 1:

Opening the Legacy System


Migration Workbench

Type the transaction LSMW in the command field. Fill in the fields with the appropriate
information - Project, Subproject, and Object name.
Click on the
Object.

create icon and enter in the description(s) for your Project / Subproject /

Click on the

enter icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Click on the

execute icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 2:

Create Recording

Menu Path: GOTO Recording


Click on Recordings or press CTRL+F2.

Click on the

Click on the

new icon to start recording.

enter icon

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Type Transaction Code and click on the

enter icon.

Update the following required fields:

Click on the

enter icon and select the material view(s).

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Click on the

enter icon.

Select plant and click on the

enter icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Change MRP type and click on the

save icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Click

Click on

Click on the
recording.

to update the field name.

save icon to save the recording.

icon to delete field(s) that you did not enter during the

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


You can export these fields to an excel sheet as follows:

Select spreadsheet and click

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Click

Click on

to save file.

back icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 3:

Maintain Object Attributes

Maintain Object attributes is already highlighted click on

execute icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Now click on the overview button to the right of the Batch Input Recording option.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Click on
icon to change mode. Select the Batch Input Recording and
enter in the recording you just created. Save and go back.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Step 4:

Maintain Source Structures

Notice that the radio button has automatically moved to the next step Maintain source
structures. Each time you perform a transaction the radio button moves to the next step
automatically.
Also notice on the extreme right hand side under the column Last action (date, time, and
user). This is updated with information each time the transaction is performed
Maintain Source Structures should already be selected as the next step. Click on
execute icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Click on

change icon and then click on

Click on

enter icon and click on

new icon.

save icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 5:

Maintain Source Fields

Maintain Source Fields should already be selected as the next step. Click on

Click on
icon.

change and select the source field object then click on

execute.

table maintenance

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Now we need to update the fields which you have captured in the recording.

All the fields shown in column J needs to be mapped and copy & paste all these fields from
excel.
Updates all field names, types (Character, alphanumeric, Numeric) and the length of the
fields.

Click on

save icon and click on

back icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Click on

save icon and click on

back icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 6:

Maintain Structure Relations

Maintain Structure Relations should already be selected as the next step. Click on
execute.

Go to

change mode and

save. Go back

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 7:

Maintain Field Mapping and


Conversion Rules

Maintain Field Mapping and Conversion Rules should already be selected as the next step.
Click on

execute.

Switch to change mode. Select Auto Field Mapping in the Extras menu if you have kept the
variable names similar.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Manu path: Extras Auto field mapping or CTRL+SHIFT+F3


You can select to do it with or without confirmation if your field names are fairly similar.

If all fields do not map automatically, you will have to manually map them. Place your field
on the unmapped field and click on the Create Source field icon. Select the appropriate
field from the list.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Click on

enter icon.

Click on

save icon and click on

back icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 8:

Specify Files

Specify Files should already be selected as the next step. Click on

execute.

Switch to change mode. My data is stored on my PC so I have highlighted the first option.
Click on create. The file location and name are defined here. Also, the Field Names at Start
of File box is checked and Tabulator is selected for Delimiter.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Click on

Click

change and assign the Delimiter file.

new icon to insert TXT file.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


A summary of everything selected is now displayed. Save and Go back to the main screen.

Click on

save icon and click on

back icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 9:

Assign Files

Assign Files should already be selected as the next step. Click on

execute.

The assigned file will have the same path as defined in the previous step Specify file. You
can change this or leave it as it. Save and go back.

Click on

save icon and click on

back icon.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 10:

Read Data

Read Data should already be selected as the next step. Click on

execute.

This will read your data file based on the attributes defined during the Specify Files step
and the path defined in Assign Files. Make sure your file already exists and click on
execute.

An output is given of all of the records read.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Click on

Go back.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 11:

Display Read Data

Display Read Data should already be selected as the next step. This is an optional step.
Click on execute.

You can choose what lines you want to read and click on ok. If you have a large file and
only want to read a subset of lines first to test the LSMW, you can specify those lines here.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


A list of your data is shown.

For a closer look double click on the line of your choice.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 12:

Convert Data

Convert Data should already be selected as the next step. Click on and execute.

Click on execute again to start the conversion. Here you can also limit a subset of the file
to convert if needed by entering in the transaction number.

A summary of the output is displayed.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Go back to the main screen.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 13:

Display Converted Data

Display Converted Data should already be selected as the next step. Click on and execute.

You can choose what lines you want to read and click on ok.

A list of your data is shown. For a closer look double click on the line of your choice.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

Go back to the main screen

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 14:

Create Batch Input Session

Create Batch Input Session should already be selected as the next step. Click on execute.

This option creates a batch input session so you can run it in the background. You can
select the Keep batch input folder(s)? to save the job after it has finished running. Click
on execute.

Click Continue on the following screen.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

LSMW Knowledge Transfer Session

Legacy System Migration Workbench


Step 15:

Run Batch Input Session

Run Batch Input Session should already be selected as the next step. Click on and execute.

Select the batch job that was created in the previous step. Click Process. Continue to
process the batch job as you normally would.

LSMW Knowledge Transfer Session

Legacy System Migration Workbench

That completes your LSMW. Your objects should now be created with the validity dates
provided.

LSMW Knowledge Transfer Session

Anda mungkin juga menyukai