LSMW For Functional Consultants in Simple Step-By-Step Way - SAP Blogs PDF
LSMW For Functional Consultants in Simple Step-By-Step Way - SAP Blogs PDF
Community
Legacy System Migration Workbench (LSMW) is handy tool for data uploads. In most of the big projects
there is a separate development / data migration team is available. However, at times, it would be
responsibility of the functional consultant to load the data such as vendor master, customer master and
asset master etc. It would be real handy for a functional consultant to know LSMW (at least recording
method) and it would help them to successfully complete the task. Hope this document would help many of
our functional consultants, as I am seeing number of questions around LSMW. The simple rule is: Follow this
document and practice is for number of times possible, then you will become master.
Give some Unique name for Project, Subproject and Object. Click Create (Shift+F1). Now execute or press
CTRL+F8.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 1/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Give the description for Project, Sub Project and Object and say OK. Now execute or press CTRL+F8.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 2/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Click Display / Change (it will make you to change). Select the Radio Button Batch Input Recording. Now click on
“Goto” –
Recordings Overview. Click on Create Recording (Ctrl+F1).
Click OK
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 3/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Create Vendor or Make changes for Entering Withholding tax details in the Vendor.
Press Enter
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 4/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Press Enter
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 5/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Click
Ctrl+Y, a + will come. With this, you can drag and copy whatever you want. In case if any eld is appearing twice
you
need to change the eld name by double clicking on that. Otherwise, your uploading will get failed.
Copy
the leds to an excel le.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 6/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now the eld name and descriptions are in one Column. I.e., “A”. You need to
segregate that. To do that, select Column “A” and Select in Excel “Data” – Text
to Column as shown in the following graph.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 7/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now say Next and then again say “Finish”. Now all elds and texts are divided into two Columns.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 8/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now copy the elds and texts as shown in the Sheet1 (Ctrl+C)
Go
to Sheet2
Keep
the cursor in the Sheet 2 (A1) and then
Edit,
Paste
Special
Check
in Transpose as shown below and say OK.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 9/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now all your rows will become your columns as shown in the blow Screen.
Now
ll the required details exactly as shown below. You should note that you have
to enter ‘0001 for payment method instead of 0001, since if you straight enter
0001 it will become 1, therefore you must ensure whenever it is starting with
“0” should be preceded with ‘.
Now
select the whole sheet2.
Remove
all grids.
No letter should be typed in di erent colors. All are in normal color only.
Now,
Format
=> Cells => Number => General as shown in the following screenshot.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 10/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now copy the whole Sheet2 and paste it in the Sheet3. Then
delete the header rows as shown below:
Save
this le to your Hard Disk with a simple name. In this case I saved as Vendor.
Now
go to “SAVE AS” in Excel, and
Save
as Text (Tab Delimited) as shown in the above screen shot.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 11/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 12/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Click
F4 in the Recording Button, your structure will be populated. In this case it
is “VENDRECO”.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 13/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
After saving your recording click Back button or press Ctrl+F3 to go back.
Now you will observe that few steps have been disappeared. Only few steps are left
out. This is because of the recording mode that you have been selected. Ideally
there should not be any Idoc related steps should be visible.
Now Step1 is being completed and the system automatically takes you to second step.
Now press CTRL+F8 or Executed.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 14/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Your Source Structure Name and Description is shown. Click on Save button
Now the second step is completed and system automatically takes you to third step.
Click CTRL+F8 or Press Execute Button, which will take to maintain source elds.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 15/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now press on Table Maintenance as shown above by keeping your cursor on the Source
Structure (in blue color in the above screen shot).
Copy those Fields from Sheet1 and copy it here. (from your excel le)
In case if your elds are came twice in recording, none of the eld should be
similar. As already advised that change the eld names to di erent eld
names. Whatever, eld names that you have changed in the structure should also
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 16/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
appear here. Meaning that in case these elds does not map with your changed
elds in your Structure, uploading will fail.
Enter the Field Type as “C” – Characteristic and Length as 60. If you know the length
enter the exact length. If you do not enter the maximum length 60. You should
not enter the length less than the actual length of the eld.
Say “Save”.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 17/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Select the Structure and click on Display / change button or press Ctrl+F1
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 18/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Though
it is customary step, you should go to this step. And say OK for the message
that the system has issued. “A source structure is already assigned to target
structure VENDRECO”.
It will take you to the next screen automatically.
In the above screen, select the structure and then click display / change or (Ctrl+F1).
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 19/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Go select the auto led mapping as showing above in the above screen shot.
Say “OK” with this 50 number screen. Do not make any changes.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 20/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Keep on Pressing “Accept Proposal” for all the proposal as shown above.
Your entire eld mapping should appear as above. Each eld should have four rows as above.
Once it is being completed the system issues a statement that “Auto Field Mapping is completed”
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 21/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now Go to “Specify Files” Screen Manually and press “Ctrl+F8” or Execute Button.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 22/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Select the “TEXT (Tab Delimited)” le that you have already created and say Open.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 23/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 24/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now the system will take you to next step i.e., “Assign Files”. Press Ctrl+F8 or
press Execute Button.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 25/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Select Source Structure (as shown in blue colour above) and press Display / Change
Button (Ctrl+F1).
Though it is a customary step, you need to visit this step compulsory. The system will
issue a message stating that “A le has already been assigned to source
structure “VENDOR_RECORDING”. Say Ok.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 26/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
The system will take you to next step i.e., “Read Data”. Click on Execute or Press Ctrl+F8.
Value
Fields -> 1234.56
Date
Value -> YYYYMMDD as shown above. There should not be any check in the above
two check boxes.
Now
Click on Execute (F8)
The system will tell that total 8 records are being read.
Now Click on Back Button or press F3 TWICE, which will take you to initial screen.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 27/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now the system takes you to next step “Display Read Data”
Here you give the number of lines in your text le and say OK.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 28/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Click on Any one row and see whether the elds in SAP and columns in your Text File
are matching.
Once you are satis ed that everything is matching and going ne, press F3 or Click
on Back button TWICE, which will take you to initial screen.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 29/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
The following screen will appear. See the screen and press Back Button (F3) twice,
which will take you to initial screen.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 30/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
LSMW_78.png
Now the system will automatically takes you to “Display Converted Data”.
Enter the number of lines From 1 to 8 in this case, to see how it is showing in
Converted Data and Say Ok. (Click on Rite Tick).
Click on any one of the converted data line and see how the data is going.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 31/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
If you are satis ed that everything is going ne, then Click on Go back button
(F3) TWICE, which will take you to initial screen.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 32/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
One Batch input session will be created. The system will state that “1 batch input
folder with 8 transactions created” will be issued. Say OK. (Click Right),
which will take you to initial screen.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 33/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Now you are in SM35 Screen. Select the line that is being created to upload and
press Execute (F8) button as shown above.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 34/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Check in:
Extended log
Expert Mode
See the log and click on Line, if there are any problems in your log.
Click on back button (F3) to come out of the session FOUR TIME, which will take you
to Easy Access Screen.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 35/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Go to Report
“S_ALR_87012086”
Now You are Viewing the vendor records that you are uploaded. You can also follow
the same steps for Change also.
Alert Moderator
Assigned tags
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 36/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
FIN (Finance) | SAP ERP | data conversion | data migration | enterprise resource planning |
View more...
Related Questions
LSMW
By Former Member , Sep 25, 2007
285 Comments
saurabh awasthi
Hello sir,
Super document. Please share with mw subcontracting and stock transport order process
Like (0)
Hi Ravi,
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 37/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
This tutorial is very helpful.I have strongly appreciate for such kind of tutorial.
Thanks
Akbar
Like (0)
Former Member
Like (0)
Marianna Bilan
Three years passed since publication, but this document is still valid and helpful. I was able to create my
rst LSMW project to change customer credit limits with the reference to this tutorial. Everything works,
thank you, Ravi, very much!!!
Like (0)
Like (0)
Former Member
hi ravi,
i have followed all the same process mentioned above to create a material master but i cannot see materials in my
material list.
i have completed all the process but there was no log error also but how to see the materials created as i have
followed all the process.
Like (0)
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 38/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Material master at times wouldn’t work in background. Please rerecord and execute in the foreground in
the last step.
Like (0)
Former Member
one more question in the rst step which object type and import method for material master i should
choose :
Thank you.
Regards,
Revs
Like (0)
Like (0)
Jürgen L
As said, recording is the wrong approach for material master. Better use the SAP given standard, which is
either batch/direct input, IDOC or BAPI method, they all work pretty well, no need for an own recording.
Like (0)
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 39/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Former Member
Thanks Ravi for LSMW documentation. It’s really help me as Functional Consultant.
Regards,
Harris
Like (0)
Sattaiah Gundu
Good Document…………Thanks
Like (0)
Former Member
Hi,
Regards,
Shuja
Like (0)
this was very helpful when I was trying out LSMW. thank you!
Like (0)
Former Member
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 40/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
hi
Like (0)
Former Member
Hi Ravi,
Thank’s for sharing this ,it’s very useful & detailed explanation .Expecting some documents form your’s as
like this.once again thank’s for your Handwork.
Regards,
Murali
Like (0)
Jacques Libeyre
Asmaa-Lojelis
Like (0)
Former Member
SUPERB…:)
Regards
Anuj Kumar
Like (0)
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 41/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Hi! I wish I had read this post sooner, It’s really helpful.
I managed to successfully complete an LSMW but in a trial and error way. The thing is I did it in a PER client
that was created only to test data uploads and now I have to do it in the real PER client and I don’t know if I
should transfer the project to that client or if all changes done to the project are already there? I really need
you help! Thank you in advance.
Like (0)
Ranu Eugene
Hi Lorena,
You can always move your LSMW to from PER client to real PER client,now the call is yours.
If your LSMW is working ne in PER client then you can move it to real PER, for doing this you
need to click on extras and Export the LSMW and then you need to import the same in real PER client and if
you think your LSMW in PER is not up to the mark then you can create another LSMW in PER and same can
be moved to real PER or else you can create the LSMW in real PER directly,choice is entirely your’s.
Regards
Eugene
Like (0)
Hi Eugene! Thank you for answering. I nally realized LSMW is a “workbenck”, which means the pojects are
cross-client and, I don’t have to export and import them. They’re already there.
Like (0)
You may need to export and import the LSMW as advised by Ranu. In such case you don’t need to record
again. Just start from the step load your le.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 42/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Like (0)
Rohtas Sharma
Document is very helpful for being a Functional consultant because I have upload number of Master data in
my current project without any coding.
thanks Ravi
Like (0)
Former Member
Hi,
You make LSMW looks very easy. Thanks for the details and step by step insights. 🙂
Regards
Sachin
Like (0)
Former Member
Great Material!!
Like (0)
Former Member
Hello Ravi, I did not understand the last step : Go to Report “S_ALR_87012086” . How can I view the records
I have uploaded ? I am a newbie in SAP.
Like (0)
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 43/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Yuvraj Sanga
Like (1)
Former Member
What a nice blog – thank you for sharing this detailed manual.
I’m trying to adapt this manual to my needs but I’m kind of stucked.
Is there a way to use LSMW to create PPMs (/SAPAPO/SCC03) or the best solution would be to change the
bucket consumption of a resource within the PPM (also /SAPAPO/SCC03).
I think the problem is that I have to use the mouse to navigate inside the TA and I not just can use ‘return’ or
any other shortcut to get where I want . Dear community, do you have any idea / best practice or something
else ?
Like (1)
Former Member
I’m really happy the way you provided the step by step process i have become master in LSMW in my entire
organisation, though there are 7 to 8 years experience guys are in my org.
Just now i have uploaded a report for 5000 assets in production successfully.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 44/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Regards,
Chandra B
Like (0)
Kamil Kosiorowski
Mr Ravi,
Thanks a lot! This manual served me to upload costcenters massively and it worked! I work only few months
as a SAP Specialist, but this gave me understanding on how LSMW works.
best regards,
Kamil Kosiorowski
Like (0)
Farhan Ali
Excellent…Mr. Ravi
Many thanks
Farhan
Like (0)
Nadeem A
Like (0)
Jürgen L
Unfortunately you made the mistake that was only discovered in the last step already in the rst step.
Personal defaults like view selection is no recorded, as a usual scenario would be that a developer creates
the recording (BDC) and a user executes it, and it cannot be assumed that any user has the same personal
settings.
Further is a recording for a full blown material master in most cases insu cient as di erent material types
have di erent views, and elds in the view depend on other chosen values.
Kindly search for similar question e.g. using Google with this search term: “Select at least one view” lsmw
site:sap.com
and see this blog that explains even more pitfalls with material master recording.
Like (0)
Nadeem A
Like (0)
Nirav Khambhata
Hi Mr. Ravi
Helpful document….
Like (0)
Former Member
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 46/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
please i want to know thing about LSMW i want to know how i change material description by using LSMW
for more than one in the same time, thanks
Like (0)
Georges Hivert
Like (1)
Fawad Tung
Hey Ravi,
Super detailed blog, but i need to upload data for asset (ABUMN), how to handle the similar elds like
ANLN1 is used for the asset from which the value / qty is to be transferred and ANLN1 is eld where the
value / qty is to be posted. How to handle this in LSMW
Like (1)
Please try “Partial Transfer” Tab, where these elds are available.
Like (0)
Fawad Tung
Dear Ravi,
The issue was resolved by making some changes in the recording elds.
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 47/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
Like (0)
DARSHAN DESAI
Hello Ravi,
Cheers
Darshan Desai
Like (1)
Kampol Tonsakul
Like (0)
Older Comments
Find us on
Trademark
Newsletter Support
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 48/49
2/16/2020 LSMW for Functional Consultants in simple step-by-step way | SAP Blogs
https://blogs.sap.com/2013/09/10/lsmw-for-functional-consultants-in-simple-step-by-step-way/ 49/49