-
Getting Started Newsletters Store
Products Services & Support About SCN DownloadsIndustries
Training & Education Partnership Developer CenterLines of
Business University Alliances Events & Webinars Innovation
Log On Join UsHi, Guest Search the Community
Activity Communications Actions
Browse
More documents in SAP ERP Financials
created by Ravi Sankar Venna on Sep 10, 2013 10:40 AM, last
modified by Ravi Sankar Venna on Sep 10, 2013 1:53 PM
Legacy System Migration Workbench (LSMW) is handy tool for data
uploads. In most of the big projects there is aseparate development
/ data migration team is available. However, at times, it would be
responsibility of the functionalconsultant to load the data such as
vendor master, customer master and asset master etc. It would be
real handy for afunctional consultant to know LSMW (at least
recording method) and it would help them to successfully complete
thetask. Hope this document would help many of our functional
consultants, as I am seeing number of questions aroundLSMW. The
simple rule is: Follow this document and practice is for number of
times possible, then you will becomemaster. 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 pressCTRL+F8.
Give the description for Project, Sub Project and Object and say
OK. Now execute or press CTRL+F8.
LSMW for Functional Consultants in simplestep-by-step way
Register
Login to follow, like, comment, share andbookmark content.
Login
Actions
Incoming LinksRe: LSMW - Cannot successfully pass RUNBATCH INPUT
SESSIONRe: LSMW simple sterp for functional consultantAutomatic
processing of data using BDC , LSMWRe: Transfer action with LSMWRe:
hi experts,EAMRe: LSMW - Field already in use
Version 1
-
Select Maintain Object Attributes and Execute (CTRL+F8)
Click Display / Change (it will make you to change). Select the
Radio Button Batch Input Recording. Now clickon Goto Recordings
Overview. Click on Create Recording (Ctrl+F1).
Click OK
Give Required Transaction Code (In this case it is FK01)
-
Create Vendor or Make changes for Entering Withholding tax
details in the Vendor.
Press Enter
CPress Enter
Click on Save Button.
-
Recording is saved now. Click on Default All Button.
ClickCtrl+Y, a + will come. With this, you can drag and copy
whatever you want. In case if any field is appearingtwice youneed
to change the field name by double clicking on that. Otherwise,
your uploading will get failed. Copythe fileds to an excel
file.
Remove the Blank Rows.
Now the field name and descriptions are in one Column. I.e., A.
You need tosegregate that. To do that, select Column A and Select
in Excel Data Textto 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.
Now copy the fields and texts as shown in the Sheet1
(Ctrl+C)
-
Goto Sheet2 Keepthe cursor in the Sheet 2 (A1) and then Edit,
PasteSpecial Checkin Transpose as shown below and say OK.
Now all your rows will become your columns as shown in the blow
Screen.
Nowfill the required details exactly as shown below. You should
note that you haveto enter 0001 for payment method instead of 0001,
since if you straight enter0001 it will become 1, therefore you
must ensure whenever it is starting with0 should be preceded with
.
Now
-
Nowselect the whole sheet2. Removeall 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.
Now say OK.Now copy the whole Sheet2 and paste it in the Sheet3.
Thendelete the header rows as shown below:
Savethis file to your Hard Disk with a simple name. In this case
I saved as Vendor. Nowgo to SAVE AS in Excel, and Saveas Text (Tab
Delimited) as shown in the above screen shot.
Click on OK button as shown below.
-
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.Again, press F3 or click on back
Button.
ClickF4 in the Recording Button, your structure will be
populated. In this case itis 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 leftout. This is because of the recording mode that
you have been selected. Ideallythere 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.
-
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.
-
Now press on Table Maintenance as shown above by keeping your
cursor on the SourceStructure (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 besimilar. As already advised that change the field
names to different fieldnames. Whatever, field names that you have
changed in the structure should alsoappear here. Meaning that in
case these fields does not map with your changedfields in your
Structure, uploading will fail.
Enter the Field Type as C Characteristic and Length as 60. If
you know the lengthenter the exact length. If you do not enter the
maximum length 60. You shouldnot enter the length less than the
actual length of the field. Say Save.
Press "Enter". Save the results and PressF3 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
Click on Relationship (Ctrl+F4)
Thoughit is customary step, you should go to this step. And say
OK for the messagethat 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). 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.
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).
-
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.
-
Now Click on Add Entry Ctrl+F2 as shown above.
Select the TEXT (Tab Delimited) file that you have already
created and say Open.
Your file has come and Enter some relevant NameSelect 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 orpress Execute Button.
Select Source Structure (as shown in blue colour above) and
press Display / ChangeButton (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
sourcestructure 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 ValueFields -> 1234.56 DateValue ->
YYYYMMDD as shown above. There should not be any check in the
abovetwo check boxes. NowClick 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 Fileare matching.
-
Once you are satisfied that everything is matching and going
fine, press F3 or Clickon 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.
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 inConverted 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 inputfolder with 8 transactions created will be
issued. Say OK. (Click Right),which will take you to initial
screen.
Click Ctrl+F8 or Press on Execute Button.
-
Now you are in SM35 Screen. Select the line that is being
created to upload andpress 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 youto Easy Access Screen.
-
Average User Rating
(111 ratings)
Go to ReportS_ALR_87012086 Now You are Viewing the vendor
records that you are uploaded. You can also followthe same steps
for Change also.
Please let me know if you have any doubts.
83831 ViewsProducts: sap_erp_financials Topics:
enterprise_resource_planning Tags: lsmw, data_migration,
data_conversion
1 2 3 10
PreviousNext
237 Comments
Like (4)
Naresh Krishnamoorthy Sep 10, 2013 2:01 PMGood Resource for
All....Many Thanks. Best Regards,Naresh K.
Jandoval Nascimento Silva Junior Sep 10, 2013 2:05 PM
-
Like (2)
Hi Ravi. Thank you for share that documentation with us. Best
Regards. Jandoval Nascimento.
Like (2)
Ravi Sankar Venna Sep 10, 2013 2:05 PM (in response to Naresh
Krishnamoorthy)Thank you Naresh, much appreciated your comments.
Kind Regards,Ravi
Like (1)
Ravi Sankar Venna Sep 10, 2013 2:09 PM (in response to Jandoval
Nascimento Silva Junior)Thanks Jandoval. Kind Regards,Ravi
Like (13)
Marssel Vilaa Sep 10, 2013 2:14 PMThis is the most detailed
content about LSMW of SCN.I think even my grandmother can migrate
records now! All the best Ravi.
Like (3)
Ravi Sankar Venna Sep 10, 2013 2:16 PM (in response to Marssel
Vilaa)
Ha ha ha.I cannot stop laughing now Marssel.I have skipped some
of the screen shot, as it became very lengthy. Best
Regards,Ravi
Like (1)
Satendra Singh Sikarwar Sep 10, 2013 2:20 PMHello Mr. Ravi
Sankar the step wise procedure for LSMW is very helpful. Thnx 4 ur
knowledge sharing. Regards, Satendra Singh Sikarwar
Like (0)
Ravi Sankar Venna Sep 10, 2013 2:21 PM (in response to Satendra
Singh Sikarwar)Thanks Satendra for your comments. Kind
Regards,Ravi
Like (1)
Kiran Nimmagadda Sep 10, 2013 2:21 PM
Good One and explained in lay-man terms .. RegardsKiran N
Like (0)
Ravi Sankar Venna Sep 10, 2013 2:23 PM (in response to Kiran
Nimmagadda)
Thanks Kiran.
Like (1)
Ranu Eugene Sep 10, 2013 2:23 PMHi Ravi,Good work and a very
useful document.Keep up the good work and keep educating us on SCN.
RegardsEugene
-
Like (1)
Ravi Sankar Venna Sep 10, 2013 2:35 PM (in response to Ranu
Eugene)Thanks Eugene, much appreciated your comments. Kind
Regards,Ravi
Like (2)
Anshu Lilhori Sep 10, 2013 2:39 PM (in response to Marssel
Vilaa)
Well Said Marssel..even i cannot stop laughing after reading
your comment.. Regards,AL
Like (1)
Anshu Lilhori Sep 10, 2013 2:43 PMVery well documented.Its a
cakewalk..Thanks for sharing and making. I am sure after following
this no will have any doubts.. Regards,AL
Like (1)
Ravi Sankar Venna Sep 10, 2013 2:44 PM (in response to Anshu
Lilhori)
Thanks Anshu I forgot one thing to update in the blog. Usually
the mistake done the people try to open the whileuploading the
file, which gives them the integration error. (even I did this
mistake for my first time ) Kind Regards,Ravi
Like (2)
Erico Mattos Sep 10, 2013 2:50 PMHi Ravi, Nice and helpful work.
Thanks and Regards!Erico
Like (1)
Anshu Lilhori Sep 10, 2013 2:50 PM (in response to Ravi Sankar
Venna)Yes we even get the same error in BW while flat file upload
when the file is open.. Seriously after going through your document
even i can do LSMW,whereas i am not a functionalconsultant. Great i
learnt new thing,i heard ABAPers lot of time talking regarding the
same. Regards,AL
Like (0)
Ravi Sankar Venna Sep 10, 2013 3:18 PM (in response to Erico
Mattos)Thanks Erico. Much appreciated. Kind Regards,Ravi
Like (1)
Ravi Sankar Venna Sep 10, 2013 3:19 PM (in response to Anshu
Lilhori)Thanks for the update Anshu. Kind Regards,Ravi
Jrgen L Sep 10, 2013 3:54 PM
-
Follow SCNSite Index Contact Us SAP Help PortalPrivacy Terms of
Use Legal Disclosure Copyright
1 2 3 10
PreviousNext
Like (13)
Very much detail, and certainly any beginner is able to redo the
same However, it does not really explain the pitfalls, and it
ignores the messagesI have seen it to often that people just focus
on SAP, but the L in LSMW is about Legacy system,hence the source
is very important.you defined the source from SAP, but this just
makes the source equal to SAP for easy loading.But usually the
source system is quite different to SAP.So it is very important to
define the source how the data is defined in the source system.You
made all source fields just 60 long, it is convenient, but then you
get for all fields in the fieldmapping the info " Caution: source
field longer than target field"Because you get this message for any
field it actually becomes a useless information, while it isusually
very important as it directly tells you that source data may get
truncated if you dont care.To be honest, even after 20 migrations I
still get source files from the location teams with content
thatexceeds the field length in SAP.Often forgotten is the
importance of a mapping old number to new number, usually you have
tomigrate more than just vendors. you may have to load orders, or
open items, info records etc etc. Andfor these jobs you then need
this mapping. for 8 test records it might me easy to create such
mapping,but what if you have to load 30000? And not to forget that
you just create new records, but often you have already some of
these vendorsin your system, which would only need to be extended
to a new company code.here you need a second recording
Like (4)
Ravi Sankar Venna Sep 10, 2013 4:43 PM (in response to Jrgen
L)Thanks Jurgen or your comments.Mostly this document is written to
explain how the data can be loaded from excel to SAP by
recordingmethod.You are right, there might be cases, where the
source system is also SAP, then it may need coding.That is not
considered as that may be much for a functional consultant. Much
appreciated your complimentary points for this blog. Hopefully, the
Community would benefit out of this. Kind Regards,Ravi
Like (1)
John Lartey Sep 10, 2013 8:34 PM
Fantastic job for putting this detailed documentation. We need
more of these
Like (0)
Ravi Sankar Venna Sep 10, 2013 9:17 PM (in response to John
Lartey)Thanks John, much appreciated your comments. Kind
Regards,Ravi
Like (1)
Sivaram V Sep 11, 2013 8:09 AMHi Ravi, Once again thanks for
your dedication and commitment for SCN. Sharing the knowledge
andexperience with others has to come from heart, which you already
had. I am really surprised fordedicating your time, even though
playing different roles like managing own consulting firm, as
afather,of course as a husband. Best Regards,Sivaram.
Like (2)
Sanil Bhandari Sep 11, 2013 8:10 AMHi The write up is very
informative Regards Sanil Bhandari
ActionsLSMW for Functional Consultants in simple step-by-step
wayIncoming LinksComments