Professional Documents
Culture Documents
LSMW:-
LSMW is a tool used to transfer data from legacy system to R/3 periodically or once. It
supports conversion of data and Batch Input, BAPI, IDOC or Direct Input can be used as the
method for transfer of data. Total of 26 processing steps are available in LSMW, In case of data
transfer using Batch Input only 14 steps are required.
7 Specify Files
8 Assign Files
9 Read Data
11 Convert Data
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
1
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Go to Transaction Code LSMW
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
2
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
BOM is uploaded using Standard Batch/Direct Input; From the F4 select object 0030 and method 0001 (create)
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
3
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Give name for recording and description and press Enter.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
4
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Now recording is started, give the input data for BOM and press Enter.
Following screen will appear, give required data and press Enter.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
5
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Following screen will appear, give required data and press Enter.
Following screen will appear, give required data and press Enter.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
6
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Following screen will appear, give required data and press Enter.
Following screen will appear, give required data and press Enter.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
7
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Same way you can give number of components in BOM.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
8
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Following screen will appear
Click on Default All
Go to following path and save the file in to html format for further reference as shown below,
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
9
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
10
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
11
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Now system will automatically move to second step, click execute or F8.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
12
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
In this LSMW we need to create two Source structures (flat files), one for Header of BOM and other is for ITEM.
Create as shown,
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
13
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
After creating it will look like below, Click Save and click on Back
Prepare the flat files as shown below, as there are two flat files there should be link to connect those, so the first field
Counter is the linking which should be present in both flat files
Header File:-
Copy the data from Excel file and save it in Notepad (.txt)file.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
14
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Item File:-
Copy the data from Excel file and save it in Notepad (.txt)file.
Assign the Notepad files for header and item respectively by pressing copy fields icon.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
15
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
After assigning the Header and Item files the screen will appear as follows,
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
16
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
System will automatically move on forth step, click execute or F8.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
17
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
After assigning header and item file to the structres as shown above, click on Save and click Back.
Map the fields as shown below, Transaction Code should kept as Constant and should be in Capital as shown (CS01)
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
18
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Mapping
Mapping
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
19
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Mapping
Mapping
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
20
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Mapping
System will automatically move on sixth step, but we dont require sixth step, so move on seventh step and click
or F8
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
21
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
On the first option i.e. Legacy Data On the PC double click, assign Header file first and the Item file as shown below,
Header File:-
Item File:-
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
22
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Screen will appear like below,
A popup will come give the path as Zpath1 and file as Zfile1 and press Enter, then another popup will come just press
Yes Create file for both popup and the logical path and logical file will get created automatically.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
23
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Logical Path and Logical File get s created as shown above, then click on Save and click back.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
24
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
On change mode first click on Header file and then click Create Assignment, same way assign Item file,
After assigning Header and Item file screen will appear as below, Click on Save and click back.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
25
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Again click execute or F8
Click Back.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
26
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Click Back.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
27
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Click Back.
Click Back.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
28
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
System will automatically move on thirtieth step, click execute or F8.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
29
Data Migration
Upload Bill Of Material using LSMW
------------------------------------------------------------------------------------------------------------------------------------------------
Result:-
After uploading the BOM, check individual BOM for correctness. Uploaded BOMs are,
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Prepared by: - Devidas Karad
SAP PP Certified Consultant
E-mail:- devidas.karad@gmail.com
30