SlideShare a Scribd company logo
1 of 93
Download to read offline
LSMW (Legacy System
Migration Workbench)
TABLE OF CONTENT
INTRODUCTION ..................................................................................................3
1. Create a project, sub project and object ........................................................4
2. Create Recordings.........................................................................................7
3. Maintain object attributes.............................................................................26
4. Maintain Source Structure ...........................................................................29
5. Maintain source fields..................................................................................31
6. Maintain Structure relations .........................................................................44
7. Maintain field mapping and conversion rules...............................................45
8. Specify file for upload and create a file for upload .......................................56
9. Assign files...................................................................................................71
10. Read data.................................................................................................72
11. Display Read data....................................................................................74
12. Convert data.............................................................................................77
13. Display converted data.............................................................................78
14. Create Batch input session ......................................................................81
15. Run Batch input session...........................................................................82
INTRODUCTION
LSMW an abbreviation for Legacy System Migration Workbench is a tool in SAP
which is used to migrate Legacy data into SAP.
It is a very important tool and easy to learn and master it.
LSMW has a recording tool which can record the transaction and the fields to be
uploaded.
Thus upload of master data and transaction data is made very simple in this tool.
You can use this tools in almost all modules for upload of master data and too
some extent transaction data also.
Thus in FI you can upload the following master data through this:
Vendors, Customers, General Ledger, Asset master, Bank Master.
You can upload Transaction balance through this i.e. an FI document.
In CO you can upload the following master data:
Cost element, Cost center, Profit center, Activity types, Internal orders, Statistical
key figures
In other modules likewise you can upload other sets of master data.
In this book we cover the creation of a Vendor master data with accounting
view.
Let’s get going then.
1. Create a project, sub project and object
Type LSMW in the command field
Click
Click to continue.
If you do not want this message to appear every time,
You can click on the check box
Click on to create a new project
Update the following fields:
Click
Create a subproject
Click
Create an object description
Click
2. Create Recordings
Now we will proceed to Recordings since we want to record a transaction (Create
Vendor 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 Goto à Recordings
Click
Click
Update the following:-
Update the following:-
Click
Update the following fields:
Click
We do not want capture anything here.
Click to go to the next screen
Click to go to the next screen.
Update the following:-
Click
Update the following:-
Click
Update the following:-
Click
Click to save the vendor master data.
Click to update the field name.
Click on
Make a note of these fields since they will be required later on.
You can export these fields to an excel sheet as follows:-
Select spreadsheet
Click
Click to change the location
Click
Click
We will see the file later.
Click
Click
Click
3. Maintain object attributes
Here we maintain the attributes of the object VENDORS. We link the recording
created to the object VENDORS.
Click
Click
Click radio button to select
Take a drop down in Recording
Click
Click
4. Maintain Source Structure
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.
Click
Click
Click
Update the following:-
Click
Click
5. Maintain source fields
Here we maintain the source fields which are to be updated with the data.
Click
Click
Position the cursor on
Click
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.
Click
Click
Click
All the fields shown in column J needs to be mapped
Now go to SAP LSMW screen and copy and paste all these fields from excel.
To know the length of fields, go to the transaction code FK01 and enter the
vendor code you just now saved. In our case we saved vendor code 100001
We want to know the length of the field Name
Position the cursor on field and press F1 function button on the
keyboard or right click and select Help
Click to see the technical information
Double click
The length of the field Name1 is 40 and the data type is character
Here you update the field name, the type of field whether C (Character,
alphanumeric) or N (Numeric) and the length of the field
After updating all the fields
Click
Click
Click
Click
Click
6. Maintain Structure relations
We actually don’t do anything except click on change button and click on save
button.
Click
Click
Click
Click
7. Maintain field mapping and conversion rules
Here we create a link between the system fields and the source fields maintained
in the earlier step.
Click
Click
Position the cursor on and click
Double click
If you want to default the company code position the cursor on BUKRS and click
Update the following:-
Position the cursor on and click
Double click
Position the cursor on NAME1 and click .
Double click
Similarly map all the fields
To
Sometime you get a message ignore it. This is because you have maintained the
length of the field which is more than the target field. If the source field is longer
than the target field the text such as name, address could get truncated.
Click
Click
Click
8. Specify file for upload and create a file for upload
Here you attach the text file for upload.
Skip the Step Maintain fixed values, translations, user defined routines
Click
Click
Before we attach the file for upload, we must create this the file.
Use the file already downloaded for creating upload file
Copy column K and insert on a new worksheet
Right click and select
Click
Remove the blank columns in between
Now update the data for vendors to be uploaded into the system.
Save this file as an excel template for upload of Vendor master.
Thereafter delete the header row.
Now click on Fileà Save as
Click
Click
Click
Click to close the file
Click
Check the text file to see if it is ok , whether it has no double quotes etc.
Open the text file from the location where it is saved.
There are some double quotes in the file, we need to remove this
Update the following:-
Click
Click
Close this file.
Now the file is ready for upload.
Go to the LSMW screen in SAP
Click
Double click
Take a drop down in the field file
Click
Update the following:-
Click
Click
Click
9. Assign files
We just click on change button and save the assignment.
Click
Click
Click
Click
10. Read data
By executing this step the system actually reads the data from the upload file.
Click
Click
It shows the number of transactions read, written and not written.
Click twice
11. 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.
Click
Click
Double click
Click twice
12. Convert data
In this step the read data is converted.
Click
Click
Click twice
13. 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.
Click
Double click on
Click twice
14. 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.
Click
Click
15. 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.
Click
Select
Click
Run the first record in foreground.
Click
Click
Click
Click
Click
Click
Click
Click
Click
Update the following:-
Click
After verifying that the first record is uploaded correctly, you can now run the
batch input session in background.
Now again select and process in background for the next record
Click
Keep Pressing enter till the session goes away.
The Vendors are successfully updated.
That brings us to an end of creation and execution of LSMW.

More Related Content

Similar to SAP ABAP lsmw beginner lerning tutorial.pdf

Sales force managing-data
Sales force managing-dataSales force managing-data
Sales force managing-dataAmit Sharma
 
Sales force managing-data
Sales force managing-dataSales force managing-data
Sales force managing-dataAmit Sharma
 
Ad basic tech_workshop
Ad basic tech_workshopAd basic tech_workshop
Ad basic tech_workshopmanisherp084
 
Ad basic tech_workshop
Ad basic tech_workshopAd basic tech_workshop
Ad basic tech_workshopmanisherp084
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-iiAmit Sharma
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-iiAmit Sharma
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-iiAmit Sharma
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-iiAmit Sharma
 
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6Tiziano Menconi
 
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6Tiziano Menconi
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformationsSunil Pandey
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformationsSunil Pandey
 
Lsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaLsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaHari Krishna
 
Lsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaLsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaHari Krishna
 
Sales force class-3
Sales force class-3Sales force class-3
Sales force class-3Amit Sharma
 
Sales force class-3
Sales force class-3Sales force class-3
Sales force class-3Amit Sharma
 
Creating mass users using e_catt
Creating mass users using e_cattCreating mass users using e_catt
Creating mass users using e_cattsparten369
 
Creating mass users using e_catt
Creating mass users using e_cattCreating mass users using e_catt
Creating mass users using e_cattsparten369
 

Similar to SAP ABAP lsmw beginner lerning tutorial.pdf (20)

Sales force managing-data
Sales force managing-dataSales force managing-data
Sales force managing-data
 
Sales force managing-data
Sales force managing-dataSales force managing-data
Sales force managing-data
 
Ad basic tech_workshop
Ad basic tech_workshopAd basic tech_workshop
Ad basic tech_workshop
 
Ad basic tech_workshop
Ad basic tech_workshopAd basic tech_workshop
Ad basic tech_workshop
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-ii
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-ii
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Mca 504 dotnet_unit5
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Mca 504 dotnet_unit5
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-ii
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-ii
 
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
 
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformations
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformations
 
Lsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaLsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishna
 
Lsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaLsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishna
 
Sales force class-3
Sales force class-3Sales force class-3
Sales force class-3
 
Sales force class-3
Sales force class-3Sales force class-3
Sales force class-3
 
Creating mass users using e_catt
Creating mass users using e_cattCreating mass users using e_catt
Creating mass users using e_catt
 
Creating mass users using e_catt
Creating mass users using e_cattCreating mass users using e_catt
Creating mass users using e_catt
 

Recently uploaded

Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 

Recently uploaded (20)

Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 

SAP ABAP lsmw beginner lerning tutorial.pdf

  • 2. TABLE OF CONTENT INTRODUCTION ..................................................................................................3 1. Create a project, sub project and object ........................................................4 2. Create Recordings.........................................................................................7 3. Maintain object attributes.............................................................................26 4. Maintain Source Structure ...........................................................................29 5. Maintain source fields..................................................................................31 6. Maintain Structure relations .........................................................................44 7. Maintain field mapping and conversion rules...............................................45 8. Specify file for upload and create a file for upload .......................................56 9. Assign files...................................................................................................71 10. Read data.................................................................................................72 11. Display Read data....................................................................................74 12. Convert data.............................................................................................77 13. Display converted data.............................................................................78 14. Create Batch input session ......................................................................81 15. Run Batch input session...........................................................................82
  • 3. INTRODUCTION LSMW an abbreviation for Legacy System Migration Workbench is a tool in SAP which is used to migrate Legacy data into SAP. It is a very important tool and easy to learn and master it. LSMW has a recording tool which can record the transaction and the fields to be uploaded. Thus upload of master data and transaction data is made very simple in this tool. You can use this tools in almost all modules for upload of master data and too some extent transaction data also. Thus in FI you can upload the following master data through this: Vendors, Customers, General Ledger, Asset master, Bank Master. You can upload Transaction balance through this i.e. an FI document. In CO you can upload the following master data: Cost element, Cost center, Profit center, Activity types, Internal orders, Statistical key figures In other modules likewise you can upload other sets of master data. In this book we cover the creation of a Vendor master data with accounting view. Let’s get going then.
  • 4. 1. Create a project, sub project and object Type LSMW in the command field Click
  • 5. Click to continue. If you do not want this message to appear every time, You can click on the check box
  • 6. Click on to create a new project Update the following fields: Click Create a subproject Click Create an object description Click
  • 7. 2. Create Recordings Now we will proceed to Recordings since we want to record a transaction (Create Vendor 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 Goto à Recordings
  • 11. Click
  • 12. We do not want capture anything here. Click to go to the next screen
  • 13. Click to go to the next screen.
  • 14.
  • 16.
  • 18.
  • 20. Click to save the vendor master data. Click to update the field name.
  • 21. Click on Make a note of these fields since they will be required later on. You can export these fields to an excel sheet as follows:-
  • 23. Click Click to change the location
  • 24. Click Click We will see the file later. Click
  • 26. 3. Maintain object attributes Here we maintain the attributes of the object VENDORS. We link the recording created to the object VENDORS. Click
  • 27. Click Click radio button to select Take a drop down in Recording
  • 29. 4. Maintain Source Structure 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. Click
  • 31. Click Click 5. Maintain source fields Here we maintain the source fields which are to be updated with the data. Click
  • 33. 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.
  • 35. Click
  • 36. All the fields shown in column J needs to be mapped Now go to SAP LSMW screen and copy and paste all these fields from excel. To know the length of fields, go to the transaction code FK01 and enter the vendor code you just now saved. In our case we saved vendor code 100001 We want to know the length of the field Name
  • 37. Position the cursor on field and press F1 function button on the keyboard or right click and select Help
  • 38. Click to see the technical information
  • 40. The length of the field Name1 is 40 and the data type is character
  • 41. Here you update the field name, the type of field whether C (Character, alphanumeric) or N (Numeric) and the length of the field After updating all the fields Click
  • 44. 6. Maintain Structure relations We actually don’t do anything except click on change button and click on save button. Click Click
  • 45. Click Click 7. Maintain field mapping and conversion rules Here we create a link between the system fields and the source fields maintained in the earlier step. Click
  • 46. Click
  • 47. Position the cursor on and click
  • 49. If you want to default the company code position the cursor on BUKRS and click Update the following:-
  • 50. Position the cursor on and click
  • 52. Position the cursor on NAME1 and click . Double click Similarly map all the fields To
  • 53. Sometime you get a message ignore it. This is because you have maintained the length of the field which is more than the target field. If the source field is longer than the target field the text such as name, address could get truncated.
  • 55. Click
  • 56. 8. Specify file for upload and create a file for upload Here you attach the text file for upload. Skip the Step Maintain fixed values, translations, user defined routines Click Click
  • 57. Before we attach the file for upload, we must create this the file. Use the file already downloaded for creating upload file
  • 58. Copy column K and insert on a new worksheet Right click and select
  • 59. Click Remove the blank columns in between Now update the data for vendors to be uploaded into the system.
  • 60. Save this file as an excel template for upload of Vendor master. Thereafter delete the header row. Now click on Fileà Save as
  • 62. Click Check the text file to see if it is ok , whether it has no double quotes etc. Open the text file from the location where it is saved. There are some double quotes in the file, we need to remove this
  • 64. Close this file. Now the file is ready for upload. Go to the LSMW screen in SAP
  • 65. Click
  • 66. Double click Take a drop down in the field file
  • 67. Click
  • 69. Click
  • 71. 9. Assign files We just click on change button and save the assignment. Click Click
  • 72. Click Click 10. Read data By executing this step the system actually reads the data from the upload file. Click
  • 73. Click It shows the number of transactions read, written and not written.
  • 74. Click twice 11. 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. Click Click
  • 77. 12. Convert data In this step the read data is converted. Click Click
  • 78. Click twice 13. 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.
  • 79. Click
  • 81. 14. 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. Click Click
  • 82. 15. 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. Click
  • 84. Run the first record in foreground. Click Click
  • 85. Click
  • 86. Click
  • 87. Click
  • 88. Click
  • 89. Click
  • 90. Click
  • 92. After verifying that the first record is uploaded correctly, you can now run the batch input session in background. Now again select and process in background for the next record Click Keep Pressing enter till the session goes away.
  • 93. The Vendors are successfully updated. That brings us to an end of creation and execution of LSMW.