Sei sulla pagina 1di 5

LSMW: Legacy System Migration Workbench

The LSMW Workbench is an SAP-based tool that supports you when transferring data
from non-SAP systems "Legacy Systems" to SAP systems 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 SAP system via batch input, direct input, BAPIs or
IDocs. By using this tool you can transfer your business objects i.e. GL Master,
Customer/Vendor Master, Asset Master, Material Master etc. to SAP system. Before
using the LSMW we should have good knowledge about the business object and the
fields that will be transferred.

T.Code: LSMW

Project: COKE
Subproject: Data upload
Object: Vendor Master

Click on Create button and enter description for project, subproject and object.

Note: Note down the object name you have given.

Click on Execute (F8) Button.

Select USER MENU button

Here you will get available LSMW steps

Total of 26 processing steps are available in LSMW, In case of data transfer using
Batch Input only 14 steps are required.

There are 14 steps that are normally used and these are.

1) Maintain Object Attributes.


2) Maintain Source Structures.
3) Maintain Source Fields.
4) Maintain Structure Relations
5) Maintain Field Mapping and conversion rules.
6) Maintain Fixed Values, translations, user defined routines.
7) Specify Files.
8) Assign Files.
9) Import DATA.
10) Display Imported Data.
11) Convert Data.
12) Display Converted Data.
13) Create Batch Input Session.
14) Run Batch Input Session.

Press Enter

You will get 14 selected steps


Select no on/off button to display numbering for 14 steps.

1st Step: Double click Maintain object attributes Radio button


Select display change button
Goto go to Menurecording overview

Place the cursor on recording text


Select create button

Recording- Vendor Master


Description- Vendor master recording Press Enter

T.Code: xk01

Note: In this step, we need to create or enter one master record so that LSMW can
record technical names of all the fields you entered in this step.

After entering important and required fields system it will display all the technical
field names and the relevant master data you entered while recording.

Click on Default all

--------------------------------------------------------------------------------------------
(Double click LIFNR field item
Name-LIFNR
Name-Vendor Number Press Enter

Double click BUKRS field item


Name-BUKRS
Name-Company Code Press Enter)
-------------------------------------------------------------------------------------------

After entering all field details SAVE (Ctrl+S)

Select arrow 3 times


Select info button for recording field

Recording = coke
(It displays recording name you have given.)

Select arrow SAVE (Ctrl+S)

After saving select arrow

Note: observe automatically system will select 2 steps.

2nd Step: Double click on 2nd step Maintain Source Structure Radio button
Select display change button
Select source structures text
Select create button
Source structure Vendor master
Description - Vendor master Press Enter

Press SAVE (Ctrl+S)

Select arrow

Note: after completing each step system will select next radio button

3rd Step: Double click maintain source structure radio button.

Note: in the above step you have given source structure name.
Here you have to maintain the structure.
Select display change button
Place the cursor on the source structure
Select create button

Here we need to enter field names and field labels.

Note: Remember the fields we entered when we are running the record

Field name LIFNR


Field Label- Vendor number
Field length- 06 Press Enter

Place the cursor on LIFNR field


Select create button

Field name BUKRS


Field Label- company code
Field length- 4 Press Enter

Place the cursor on KTOKK field name


Select create button

Field name- anred


Field label-title
Field length-2 Press Enter

After entering all field details as per the above

Press SAVE (Ctrl+S)


Select arrow

4th step: Double click on maintain structure relationship

Click on display change button


Select the structure
Press SAVE (Ctrl+S)
Select arrow

5th step: Double click maintain field mapping and conversion rules radio button
Place the cursor on LIFNR field
Select source field button
Select LIFNR field in assign source field screen Press Enter

Place the cursor on BUKRS filed


Select source field button
Select BUKRS field in assign source field screen Press Enter

Do the same for remaining fields also except for ENTER field CIVVE
Place cursor on CIVVE
Select constant button
Enter X symbol (or) select yes

After selecting all source fields

Press SAVE (Ctrl+S)


Select arrow

6th step: Double click on maintain fixed values, translations, user defined
routines radio button

Select arrow

Note: Before doing the 7th step need to create one flat file in excel or notepad which
consists the legacy data.

7th step: double click on specify files button


Here we need to enter/give the path of flat file, which was saved in the PC.
Double Click on Legacy Data: On the PC (Front End)

File path: Click F4 button, Select the File on the Desktop


It takes file as
C:\Documents and Settings\Administrator\Desktop\Vendormaster.txt
File Name: Vendormaster

Select the separators comma radio button, which was given in the flat file.
Press Enter

Select arrow

8th step: Double click on assign files radio button


Select display change button
Press SAVE (Ctrl+S)
Select arrow
9th Step: double click import data button
Select execute (f8) button
Select arrow 2 times

10th step: double click on display imported data radio button


Press enter button

Here you can view the flat file data


Select arrow

11th step: double click convert date radio button


Select execute button
Select arrow

12th step: double click display converted data radio button Press Enter
Select arrow

13th step: double click create batch input radio button


Execute (f8)
Press enter

14th step: double click on run batch input session radio button
Select batch input file
Select process button
Select process/foreground button
Select process button

Here we need to press enter until all the Vendor records updated.

Potrebbero piacerti anche