Legacy System Migration
Workbench [LSMW]
Customer Master Data (Centrally)
Processed by
Rana Waleed Mehmood
Table of Contents
1. Create a Project, Sub Project and Object........................................................................................ 2
2. Create Recordings ........................................................................................................................... 5
3. LSMW Process Steps ..................................................................................................................... 24
3.1 Maintain Object Attributes ................................................................................................... 24
3.2 Maintain Source Structures .................................................................................................. 26
3.3 Maintain Source Fields .......................................................................................................... 28
3.4 Maintain Structure Relations ................................................................................................ 34
3.5 Maintain Field Mapping and Conversion Rules .................................................................... 35
3.6 Maintain Fixed Values, Translations, User-Defined Routines ............................................... 41
3.7 Specify Files ........................................................................................................................... 42
3.8 Assign Files ............................................................................................................................ 54
3.9 Read Data .............................................................................................................................. 55
3.10 Display Read Data ................................................................................................................. 57
3.11 Convert Data ......................................................................................................................... 60
3.12 Display converted data ......................................................................................................... 61
3.13 Create Batch input session.................................................................................................... 64
3.14 Run Batch input session ........................................................................................................ 66
4. Customer List ................................................................................................................................ 83
REFERENCES .......................................................................................................................................... 87
BIBLIOGRAPHY ...................................................................................................................................... 88
1
1. Create a Project, Sub Project and Object
Enter
2
Choose Continue
Click on to create the new project
3
Choose Continue
Choose Continue
Choose Continue
4
2. Create Recordings
Now we will proceed to Recordings since we want to record a transaction (Create Customer
Master data)
Important:
Please note that before you start the recording you should first actually perform this
transaction manually and plan what data you want to capture for upload purpose. This is
required so that you avoid doing mistakes while recording.
While recording you should not press enter in between, you should only press enter after you
have completed entering all the details on that screen.
Click on Go to → Recordings from the top menu:
Click on to create Recording
5
Choose Continue
Choose Continue
Enter
6
Enter
7
Fill the relevant information about your Company’s data and Click to go to the next
screen
8
Fill the relevant information and Click to go to the next screen
Click to go to the next screen
9
Click to go to the next screen
Click to go to the next screen
10
Click to go to the next screen
Assign the Reconciliation Account and Click to go to the next screen
11
Choose the Payment Terms and Payment Methods and Click to go to the next screen
12
Choose the Dunning Procedure and Click to go to the next screen
13
Fill the relevant information and Click to go to the next screen
14
Click to go to the next screen
15
Click to go to the next screen
Click to go to the next screen
16
Click to go to the next screen and you will have the following screen:
17
Click to update the field name
18
Make a note of these fields since they will be required later on.
You can export these fields to an excel sheet as follows:
19
Select the with the radio button
20
Choose Continue
Click to change the directory location where you want to save the Spreadsheet
21
Click
Click
22
If you have the above dialogue box, then choose and the file will be saved. The
file will be checked later.
Choose to save the Recording and click to go back
Click again to go back
Execute
23
3. LSMW Process Steps
There are 14 process steps included in the execution of LSMW which are as follows:
3.1 Maintain Object Attributes
Here we maintain the attributes of the Object ‘Customers’. We link the recording created to
the Object ‘Customers’.
Execute
24
Click
Select radio button and Click on drop down button to
look for the Recording.
25
Save
Go back
3.2 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.
Here we maintain the source structure for the LSMW.
26
Execute
Click on .
Click on to create Source Structure
27
Mention the following details:
Choose Continue
Save
Go back
3.3 Maintain Source Fields
Here we maintain the source fields which are to be updated with the data.
28
Execute
Click on .
Select the node with the cursor
And Click on
29
Now we need to update the fields which you have captured in the recording. In step 1
recording we had downloaded a file with the fields. Let us open that file in excel.
Double Click
Click on
30
Next, you can insert a new worksheet and copy all the fields shown in Column ‘J’ along with
Field type ‘C’ which represents Character and the ‘Length’ of the field ‘100’.
31
Now the field names, their type and length need to be mapped in LSMW screen, you can
copy all the data and paste it into the LSMW screen:
32
Note: No field should be mapped twice. If this is the case, then the system can give error and
the mapping should be done again without the repetition of the field name.
33
Save
Go back
Save
Go back
3.4 Maintain Structure Relations
We actually don’t do anything except click on change button and click on save button.
34
Execute
Click
Save
Go back
3.5 Maintain Field Mapping and Conversion Rules
35
Here we create a link between the system fields and the source fields maintained in the earlier
step.
Execute
36
Click
From the top menu, choose Extras → Auto-Field Mapping
37
38
Choose Continue
Choose and you will proceed to the proposal for the next field:
Similarly keep choosing for all the fields until you get this message:
39
Continue
Save
Click
40
Go back
3.6 Maintain Fixed Values, Translations, User-Defined Routines
41
Skip this Step and select the radio button manually to go to the next one.
3.7 Specify Files
Here you attach the text file for upload.
Execute
42
Before we attach the file for upload, we must create this file. Use the file already downloaded
for creating upload file.
Copy column K till the end of the data and insert on a new worksheet. Right click and select.
43
44
Check ‘Transpose’ and Click
Delete the blank columns in between the data
Now update the data for Customers to be uploaded into the system.
45
Save this file as an excel template for upload of Customer master data.
Next, you have to copy the data without the header row and paste that into the new
worksheet:
46
Now click on File → Save as
Click
Click
47
Click
Check the text file and make sure that it should not have single or double quotes, commas etc.
Open the text file from the location where it is saved.
There can be some single or double quotes in the file, we need to remove this:
48
Click
Click
Click
Save the file and Close it.
Now the file is ready for upload. Go to the LSMW screen in SAP
Click
49
Double Click on
50
Take a drop down in the field file:
Double Click on the file or click
51
Update the name and choose the radio button for ‘Tabulator’ option:
52
Continue
53
Save
Go back
3.8 Assign Files
We just click on change button and save the assignment.
Execute
54
Change
Save
3.9 Read Data
By executing this step the system actually reads the data from the upload file.
Execute
55
Execute
Choose
56
It shows the number of transactions read, written and not written.
Go back twice
3.10 Display Read Data
This step is very important. Here you come to know whether there are any errors. Whether
the data passed on from the file is mapped to correct field. So you should see a few records to
see whether it is correct.
Execute
Continue
57
Double Click
58
Go back twice
59
3.11 Convert Data
In this step the read data is converted.
Execute
Execute
60
Go back twice
3.12 Display converted data
In this step we display the converted data. Again you should see one or 2 records to see that
they are converted correctly.
Execute
61
Continue
Double Click
62
63
Go back twice
3.13 Create Batch input session
In this step we create the Batch input session for the upload data. The data is not updated
when you create Batch input session.
64
Execute
Execute
Continue
65
3.14 Run Batch input session
In this step, we execute the Batch input session. Data is actually updated here. We should
first execute the Batch input session for a few records in foreground. After testing that the
data is getting uploaded correctly, then you can execute this session in the background.
Execute
Highlight
Click
66
Check ‘Extended log’ and ‘Expert mode’ and Uncheck ‘Dynpro standard size’.
Run the first record in foreground.
Click
67
Click
68
Click
69
Click
70
Click
71
Click
72
Click
73
Click
Click
74
Click
75
Click
Click
76
Click
77
Click
78
Click
79
Click
80
Click
81
Click
Click
82
Click
Similarly, you can migrate all the Customer Master data by keep clicking until you get
this information:
Click and with this, the execution of LSMW process of migrating Customer
Master Data comes to an end.
4. Customer List
You can confirm the creation of Customer master data by using the following menu path:
Easy Access: Accounting → Financial Accounting→ Accounts Receivable → Information
System → Master Data → S_ALR_87012179 – Customer List
83
Double Click
84
Choose the Company Code and Execute
85
The Customer master data created with the LSMW process can be seen in the above list.
86
REFERENCES
1. TFIN50 (Financial Accounting Part 1 of 2: mySAP ERP Financials
2. LSMW (Legacy System Migration Workbench) Published by Team of SAP Consultants
at SAPTOPJOBS
3. http://help.sap.com/saphelp_40b/helpdata/en/c7/a88b2743dd11d182b30000e829fbfe
/content.htm (Accessed Feb 15, 2013)
4. http://help.sap.com/saphelp_46c/helpdata/en/c7/a88b9c43dd11d182b30000e829fbfe/
content.htm [Accessed May 29, 2013]
5. http://help.sap.com/saphelp_470/helpdata/en/c7/a88ba943dd11d182b30000e829fbfe/
content.htm [Accessed May 29, 2013]
6. http://www.allinterview.com/showanswers/4116.html [Accessed May 29, 2013]
7. http://help.sap.com/saphelp_46c/helpdata/en/96/8b3ee943ce11d189ee0000e81ddfac/
content.htm [Accessed Jun 08, 2013]
8. http://help.sap.com/saphelp_46c/helpdata/en/01/a9bb94455711d182b40000e829fbfe/
content.htm [Accessed Jun 10, 2013]
9. http://help.sap.com/saphelp_46c/helpdata/en/01/a9bba1455711d182b40000e829fbfe/
content.htm [Accessed Jun 10, 2013]
87
BIBLIOGRAPHY
1. TFIN50 (Financial Accounting Part 1 of 2: mySAP ERP Financials
2. help.sap.com
3. http://scn.sap.com
4. http://www.sapebooks.com
88