You are on page 1of 30

3/4/2017 LSMW 

for Functional Consultants in simple step­by­step way | SAP Blogs

Get Started
 
Solutions  Support Training Community  Developer 

Partner  About 

Community  /  Blogs

LSMW for Functional
Consultants in simple step­by­
step way
September 10, 2013   |  19,752 Views  |
Ravi Sankar Venna 
more by this author

FIN (Finance)
SAP ERP |  data conversion | data migration | enterprise resource planning | lsmw | sap erp
financials

share
0 share
0 tweet share
1
          

Follow

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

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 1/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

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.

Go to Transaction Code “LSMW” and follow the following steps:

Give some Unique name for Project, Subproject and Object. Click Create
(Shift+F1). Now execute or press CTRL+F8.

Give the description for Project, Sub Project and Object and say OK. Now
execute or press CTRL+F8.

Select Maintain Object Attributes and Execute (CTRL+F8)

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 2/30
3/4/2017 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

Give Required Transaction Code (In this case it is FK01)

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 3/30
3/4/2017 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

Press Enter

Click on Save Button.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 4/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Recording is saved now. Click on “Default All” Button.

Click
Ctrl+Y, a + will come. With this, you can drag and copy whatever you want. 
In case if any field is appearing twice you
need to change the field name by double clicking on that. Otherwise, your
uploading will get failed.

  

Copy
the fileds to an excel file. 

Remove the Blank Rows.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 5/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Now the field 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.

Now Select the fixed with and say “Next”.

Select Fixed Width and click next.

Keep columns wherever you want by clicking.

Now say Next and then again say “Finish”. Now all fields and texts are
divided into two Columns.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 6/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Now copy the fields 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.

Now all your rows will become your columns as shown in the blow Screen.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 7/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Now
fill 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 colors should be there in the sheet.

No letter should be typed in different colors. All are in normal color only.

Keep the columns to “LEFT” Margin.

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/ 8/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Now say OK.

Now copy the whole Sheet2 and paste it in the Sheet3.   Then
delete the header rows as shown below:

Save
this file 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.

Click on OK button as shown below.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 9/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Click on “YES” button as shown below.

Now, Click on “NO” button as shown below.

Press F3 or Click on Back Button.

Now, Click on “YES” to save.

You will reach the below screen.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 10/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Again, press F3 or click on back Button.

Click
F4 in the Recording Button, your structure will be populated. In this case it
is “VENDRECO”.

Now click on Save on Ctrl+S to save your recording.

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/ 11/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Click on Display / Change Button or press Ctrl+F1

Now create a Structure by clicking “Create Structure” or Ctrl+F4.

Give Source Structure Name and Description

Your Source Structure Name and Description is shown. Click on Save
button

Now Press F3 or Click back button to go back.

  

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
fields.

Click on Display / change as shown above OR press Ctrl+F1.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 12/30
3/4/2017 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 file)

In case if your fields are came twice in recording, none of the field should be
similar. As already advised that change the field names to different field 
names. Whatever, field names that you have changed in the structure
should also
appear here. Meaning that in case these fields does not map with your
changed
fields 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 field.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 13/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

  

Say “Save”.

Press “Enter”. Save the results and Press
F3 or Click on back button to go back.

Now Click Save in this screen and again press F3 to go back.

Now system will automatically takes you to fourth screen.

Click CTRL+F8 or Click on Execute Button.

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/ 14/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Click on Relationship (Ctrl+F4)

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”.

  

Now press Save and PressF3 or Click on back button to go back.

  
It will take you to the next screen automatically.

Press CTRL+F8 or Click on Execute Button.

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/ 15/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

  

Again Select the Structure,

Go select the auto filed mapping as showing above in the above screen
shot.

Say “OK” with this 50 number screen. Do not make any changes.

Keep on Pressing “Accept Proposal” for all the proposal as shown above.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 16/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Your entire field mapping should appear as above. Each field should have
four rows as above.

Once it is being completed the system issues a statement that “Auto Field
Mapping is completed”

Click Save (Ctrl+S) and go back (F3).

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 17/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Nothing to do with “Maintain Field Values, Transactions, User Defined
Routines”

Now Go to “Specify Files” Screen Manually and press “Ctrl+F8” or Execute
Button.

Select the first row and click on Display / change Button.

Now Click on Add Entry “Ctrl+F2” as shown above.

Select the “TEXT (Tab Delimited)” file 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/ 18/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Your file has come and Enter some relevant “Name”

Select “Tabulator” Radio Button and say OK.

Now Save (Ctrl+S) and press F3 or Back Button to go back.

Now the system will take you to next step i.e., “Assign Files”. Press
Ctrl+F8 or
press Execute Button.

Select Source Structure (as shown in blue colour above) and press Display /
Change
Button (Ctrl+F1).

Click on Assignment  (Ctrl+F2)

Though it is a customary step, you need to visit this step compulsory. The
system will
issue a message stating that “A file has already been assigned to source
structure “VENDOR_RECORDING”. Say Ok. 

Click on Save (Ctrl+S) and Press F3 or click on back button.

The system will take you to next step i.e., “Read Data”. Click on Execute or
Press Ctrl+F8.

Remove the Checks for

Value
Fields ­> 1234.56

Date
Value ­> YYYYMMDD as shown above. There should not be any check in

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 19/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

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.

Now the system takes you to next step “Display Read Data”

Click on Execute or Press Ctrl+F8.

Here you give the number of lines in your text file and say OK.

Click on Any one row and see whether the fields in SAP and columns in
your Text File 
are matching.

Once you are satisfied that everything is matching and going fine, press F3
or Click
on Back button TWICE, which will take you to initial screen.

Now you are automatically in “Convert Data” Screen.

  

PressCtrl+F8 or Click on Execute Button.

Just press F8 or Execute Button.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 20/30
3/4/2017 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.

Now the system will automatically takes you to “Display Converted Data”.

  

Press Ctrl+F8 or Click on Execute Button.

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.

If you are satisfied that everything is going fine, then Click on Go back
button
(F3) TWICE, which will take you to initial screen.

You will be automatically taken to “Create Batch Input Session”.

   

Click Ctrl+F8 or press “Execute” Button.

Select “Keep Batch input Folder(s)?

Just Click on Execute Button (F8).

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/ 21/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Click Ctrl+F8 or Press on Execute Button.

Now you are in SM35 Screen. Select the line that is being created to upload
and
press Execute (F8) button as shown above.

Select “Background” Radio Button.

Check in:

Extended log

Expert Mode

Dynpro Standard Size

As shown above and the click on “Process” button.

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.

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.

Please let me know if you have any doubts.

Alert Moderator

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 22/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

269 Comments
You must be Logged on to comment or reply to a post.

saurabh awasthi

December 5, 2015 at 7:42 am

Hello sir,
Super document. Please share with mw subcontracting and stock transport
order process

Md. Ali Akbar

December 5, 2015 at 10:22 am

Hi Ravi,
This tutorial is very helpful.I have strongly appreciate for such kind of tutorial.
Thanks
Akbar

Sumit Dhelia

December 11, 2015 at 10:03 am

Thanks for detailed explanation. Its very helpful

Marianna Bilan

December 21, 2015 at 2:01 pm

Three years passed since publication, but this document is still valid and
helpful. I was able to create my first LSMW project to change customer credit

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 23/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

limits  with the reference to this tutorial. Everything works, thank you, Ravi,
very much!!!

Ravi Sankar Venna  Post author

December 21, 2015 at 2:08 pm

Thanks Marianna Bilan
Glad to know that this blog has helped you. 🙂

Revs M

May 9, 2016 at 3:02 pm

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.

Ravi Sankar Venna  Post author

May 10, 2016 at 7:42 am

Material master at times wouldn’t work
in background. Please rerecord and
execute in the foreground in the last
step.

Revs M

May 10, 2016 at 2:55 pm

Ok thanks i will execute in
the foreground in the last
step.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 24/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

one more question in the
first step which object type
and import method  for
material master i should
choose :
1.Std batch/ Direct input
or
2.Batch input recording
Thank you.
Regards,
Revs

Ravi Sankar Venna  
Post author

May 11, 2016 at 4:22 pm

It should be batch input
recording

Jürgen L

May 11, 2016 at 9:18 pm

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.

Harris Chandra

December 28, 2015 at 9:28 am

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 25/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Thanks Ravi for LSMW documentation. It’s really help me as Functional
Consultant.
Regards,
Harris

Sattaiah Gundu

January 4, 2016 at 1:05 pm

Good Document…………Thanks

Shuja R

January 8, 2016 at 6:57 am

Hi,
Very nice work.
Regards,
Shuja

Daniel Jonathan Co Marquez­Lim ­ DMBZ

January 27, 2016 at 1:42 am

this was very helpful when I was trying out LSMW. thank you!

harsha vardhan reddy

March 21, 2016 at 8:37 am

hi
thanks for sharing this document

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 26/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Murali Vemula

March 22, 2016 at 10:36 am

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

Jacques Libeyre

April 8, 2016 at 1:23 pm

Very helpful thank you Ravi Sankar Venna
Asmaa­Lojelis

Anuj Kumar

May 10, 2016 at 4:55 pm

SUPERB…:)
i learnt LSMW only by following this article..:)
Regards
Anuj Kumar

Lorena Lista Arenas

June 9, 2016 at 9:34 pm

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.

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 27/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Ranu Eugene

June 10, 2016 at 11:48 am

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 fine 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.
Hope this will make the things clear at your end.
Regards
Eugene

Lorena Lista Arenas

June 10, 2016 at 5:22 pm

Hi Eugene! Thank you for answering. I finally 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.

Ravi Sankar Venna  Post author

June 13, 2016 at 2:17 am

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 file.

Rohtas Sharma
https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 28/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

June 10, 2016 at 12:30 pm

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

Sachin Rawat

September 7, 2016 at 6:25 am

Hi,
You make LSMW looks very easy. Thanks for the details and step by step
insights. 🙂
Regards
Sachin

Bamidele OGUNDIPE

September 19, 2016 at 10:41 am

Great Material!!

Shantanu Marathe

November 16, 2016 at 9:54 am

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.

 Previous   1   2   3   4

Share & Follow               


https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 29/30
3/4/2017 LSMW for Functional Consultants in simple step­by­step way | SAP Blogs

Privacy  Terms of Use  Legal Disclosure  Copyright  Trademark  Sitemap  Newsletter

https://blogs.sap.com/2013/09/10/lsmw­for­functional­consultants­in­simple­step­by­step­way/ 30/30

You might also like