SlideShare a Scribd company logo
1 of 26
Download to read offline
Community
Ask a Question Write a Blog Post
The LSMW (Legacy System Migration Workbench) is a tool based on SAP software that supports single
or periodic data transfer from non-SAP to SAP systems (and with restriction from SAP to SAP system).
Its core functions are:
Importing legacy data from PC spreadsheet tables or sequential files.
Converting data from its original (legacy system) format to the target (SAP) format
Importing the data using the standard interfaces of SAP (IDoc inbound processing, Batch Input, Direct
Input).
(This blog only explains how to create/ change Master data in SAP by using Standard Programs or
recordings. I have not covered BAPI and IDoc method to make it simple and easy)
Generally, people have questions in mind as how to create an LSMW project, which method should be
used to upload the master data and how to use and what all master data can be uploaded through LSMW.
LSMW – Legacy Data Migration Workbench
I am dividing the whole process of creating a Project, Subproject & Object for uploading the Master Data
and its upload procedure in different steps as explained below:
Step 1 – Creating Project, Subproject and Object:
Chintan Budhbhatti
August 12, 2014 8 minute read
LSMW for Master Data upload Simple Explanation (Part –
1)
27 Likes 48,448 Views 13 Comments
Follow RSS feed Like
Login
For using LSMW tool, first step you need to do is Create Project, Sub Project and Object as shown in the
screen below:
Here, Project can have multiple Subprojects and in turn Subprojects can have multiple Objects as
explained below:
Create Project
Give the desired name of data migration Project (For ex: Module name as I have taken “ZPM” for Plant
Maintenance Module)
Create Subproject
Give the desired name of data migration Subproject (For ex: Master’s name as I have taken “EQUIP” for
Equipment Master)
Create Object
Give the desired name of data migration Object (For ex: Master’s name as I have taken “CREATE” for
Creating Equipment Master)
Step 2 – Selecting Menu Items:
Once Project, Subproject and Objects are created, pressing enter would generate the screen which
includes all the menu items for both Master upload as well as IDoc updation which we might not require.
Let us select the menu items which are required only for Master uploads.
Selecting Menu Items
First of all, pressing the User Menu button would guide you through selecting and de-selecting the Menu
items.
Please tick the required Items as shown in the screen below:
Now, the screen would display only the selected Menu Items which we require for building and executing our LSMW
program as shown below:
Click the button “Double Click = Display” which would make it to “Double Click=Change” which means it
will allow all the Menu Items to open in Change mode on double clicking else every item is in display
mode by default.
Henceforth, we will see each Menu Item in detail as an individual step.
Step 3 – Maintain Object Attributes:
This Menu Item defines the procedure we adopt for our program which could be:
1. Standard Batch/ Direct Input
2. Batch Recording
3. Business Object Method (BAPI)
4. IDoc (Intermediate Document)
For defining the procedure, double click on the First option “Maintain Object Attributes”. The screen
below shows how to select the method:
As mentioned earlier, this blog covers explanation of only first two methods to make it simple and easy.
(Believe me most of the Masters gets covered in this two methods.)
Method 1 – Standard Batch/ Direct Input
In this method, we are simply selecting the standard program defined by SAP for different Masters (most
of the Masters are listed here):
Click on Object to select the program then click on Method to select the method (For ex: Create/
Change) as shown in screen below:
Once selected, save this method.
Method 2 – Batch Input Recording
This method, involves creating a recording for a specific Master transaction Creation/ Change.
We would select this method when we require only specific fields to be created/ changed inside the
Master screen.
Creating a recording is explained below:
Click on button and then click on (Recordings: Overview) button which would guide to
the Recording screen. Here press Create button which will show the screen as below:
Fill in the desired Recording Name and description as shown and press Enter and input the Transaction code as shown in
the next screen:
On pressing Enter, system will start the transaction screen as shown below:
Perform the recording for the transaction (i.e., input all the fields you require to be taken into account for
batch input).
Remember to save the transaction to complete the recording procedure as saving is also getting
recorded.
On pressing save, you will see all the fields recorded as shown below:
Here press “Default All” button to populate the fields to be made available for batch input.
This will show the exact field names against each field as shown in the screen below:
Saving this screen would guide user to the list of recordings. Here press back and select the recording in the Recording
field as shown below and save:
This ends the Step 1 for creating the method for specific Master creation/ change.
Step 4 – Object Overview and Field List:
Before moving to the second Menu Item “Maintain Source Structures”, we would go for listing the fields and viewing the
structuring of the fields by pressing the button in the Menu List Screen and then “List” button which
would show the screen as below (for easiness I have used Method-1 i.e., Standard Batch/ Direct Input but list will be
similar in both the cases only the fields would differ):
Here in the “Target Fields” section you will find all the fields (captured by Method-1 or Method-2).
Please copy all the fields (except field TCODE and RECORDNAME which we don’t require to change while
running our batch) and arrange the same in excel file as shown below:
By this you will be able to capture all the required fields in your excel file which ends the Step 4.
Step 5 – Maintain Source Structures:
Source Structure will have all the Source fields which are recorded or captured during Method definition.
Double click on “Maintain Source Structures” to which will guide to screen of Source Structure creation
Here press the create button which will ask for Source Structure Name and Description as shown below:
After entering the desired Source Structure name and Description, press enter and press Save.
Step 6 – Maintain Source Fields:
Source fields are the same which we have listed in Step 4.
Before moving to this step, back to your excel sheet, change all field Types as below:
CHAR C
DATS DDMY
UNIT C
TIMS C
TIMS C
(This is to be done because the types defined in LSMW are different then field types in program or
recording)
Now, double click ”Maintain Source Fields” in the Menu List screen, which will guide you to the screen as
shown below:
Press the (Table Maintenance) button after selecting the Structure which will generate the field definition screen.
Copy paste all the excel fields to the screen as shown below:
Press Save and Back and it will display the fields attached to the Source Structure as shown below:
Again press save button to save this Structure field relation.
Step 7 – Maintain Structure Relations:
This Step is for maintaining relation between Structure and Recording/ Standard Program.
Double click “Maintain Structure Relations” in the Menu List screen, which will guide you to the screen as
shown below:
Select the first Structure and press and the structure you have created will be automatically be selected as
you have created only one structure. This will create the relationship between program and Structure as shown below:
Press Save and Back.
Step 8 – Maintain Field Mapping and Conversion Rules:
We have created the Structure to Program Relationship, now we need to create the mapping
(Relationship) between Fields from Structure and Fields from Program/ Recording.
Double click “Maintain Field Mapping and Conversion Rules” in the Menu List screen, which will guide you
to the screen as shown below:
As we have copied the fields from the Program/ Recording itself as in Step 4, it will be easy to perform
the field mapping in a simple step.
Go to Extras à Auto Field mapping which will pop-up a dialog box as shown below:
Perform the selection exactly as shown in the screen above and press Enter.
If you have any Date fields in your Field List, it will ask for your confirmation for every individual Fields as shown below
and make selection as per your requirement (This is how system will interpret Date further throughout the program):
Press Enter for all the Date Fields and you will find the field mapping for all your Source Fields to Program/ Recording
Fields as shown below:
Confirm all the Fields are mapped correctly and press Save and Back.
Due to certain restrictions of blogs, this document covers the steps uptil “Maintain Field mapping and
Conversion Rules” below steps,
1. Specify Files
2. Assign Files
3. Read Data
4. Display Read Data
5. Convert Data
6. Display Convert Data
7. Create Batch Input Session
8. Run Batch Input Session
are convered in Part-2 of this document which can be found in the link below:
LSMW for Master Data upload Simple Explanation (Part – 2)
Community
Ask a Question Write a Blog Post
This blog is in continuation to my previous blog “LSMW for Master Data upload Simple Explanation (Part
– 1)” –
We will continue here with Step 9 – Specify Files
Step 9 – Specify Files:
Before performing this Step, you need to create your File format with exact field sequence.
For creating the Format, simply transpose your Excel File fields from column to Row as shown below:
Chintan Budhbhatti
August 12, 2014 5 minute read
LSMW for Master Data upload Simple Explanation (Part –
2)
19 Likes 13,184 Views 13 Comments
Follow RSS feed Like
LSMW for Master Data upload Simple Explanation (Part – 1)
Login
(Here I have mentioned only Single line for data you should have all the data which you wish to create in
one time as in screen shot below)
Select only the Data from excel sheet and copy it to notepad file as shown below and Save:
Now in SAP, double click “Specify Files” in the Menu List screen which will guide you to the screen as
shown below:
Double click on “Legacy Data – On the PC (Frontend)” which will pop-up the dialog box as shown below:
In File field select the Notepad File created, in the Name Field assign any desired name and make other
selections exactly as shown in the screen and Press Enter, Save and Back.
Step 10 – Assign Files:
Double click “Assign Files” in the Menu List screen, which will guide you to the screen as shown below:
As we have single Structure and Single File, it is auto assigned to Structure. Just Press Save and Back
Step 11 – Read Data:
Double click “Read Data” in the Menu List screen, which will guide you to the screen as shown below:
Without making any changes to this screen, press execute button which will show the screen as below:
This will Show the exact number of total records/ Masters which you have mentioned in your notepad
file. If this does not match the exact value, check your notepad and excel file for data. Once Confirmed,
Press back twice
Step 12 – Display Read Data:
Double click “Display Read Data” in the Menu List screen, will pop-up a dialog box as shown below:
Without making any changes to this screen press enter, which will show the screen as below:
This screen is displaying all the Master Data Records which are read from your notepad file. Double
Clicking any record will show Field-wise Data where you can check the correctness of your data (this step
is not mandatory).
Once confirmed press back twice.
Step 13 – Convert Data:
Double click “Convert Data” in the Menu List screen, which will guide you to the screen as shown below:
Without making any changes to this screen, press execute button which will show the screen as below:
This will Show the exact number of total records/ Masters which are converted from your notepad file to
Structure. If this does not match the exact value, check your notepad and excel file for data. Once
Confirmed, Press back twice
Step 12 – Display Convert Data:
Doubleclick “Display Convert Data” in the Menu List screen, will pop-up a dialog box as shown below:
Without making any changes to this screen press enter, which will show the screen as below:
This screen is displaying all the Master Data Records which are read from your notepad file. Double
Clicking any record will show Field-wise Data where you can check the correctness of your data (this step
is not mandatory).
Once confirmed press back twice.
Step 13 – Create Batch Input Session:
Double click “Create Batch Input Session” in the Menu List screen, which will guide you to the screen as shown below:
Make the selections as per shown in the screen above and press execute. This will guide you to screen as shown below:
This will display the number of transactions saved for execution. This all fields should be in green. If any
record is in red, please check your entries again. If all records are green, press back twice.
Note: For some masters or for recording method Step 13 would show a simple screen where you need to
tick “Keep Batch Input Session” and execute.
Step 13 – Create Batch Input Session:
Double click “Run Batch Input Session” in the Menu List screen, which will guide you to the screen as shown below:
This screen can also be executed through SM35.
Here select the record you want to process and press which will pop-up a dialog box as shown below:
Processing Mode:
First Option “Process/ foreground” will guide you to each field of each screen of your Master records.
Second option “Display errors only” will process your program in Background but will stop at Errors in
any Field of any Screen which you can change.
Third Option “Background” will process your program completely in background and will update the
errors at last.
(Recommended to use “Display errors only” option)
Additional Functions
Select the “Extended Log”, “Expert Mode” and “Dynpro Standard Size” options.
Once made the above selections, press process.
Once all the data are uploaded will pop-up a dialog box as shown below:
Pressing “Session overview” will show the session details and “Exit Batch input” will exit the transaction.
Here it completes the Legacy Data Migration Workbench (LSMW) process.

More Related Content

What's hot

Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systems
Kranthi Kumar
 
Oss note 1779330 - error message fs716 during a document creation
Oss note   1779330 - error message fs716 during a document creationOss note   1779330 - error message fs716 during a document creation
Oss note 1779330 - error message fs716 during a document creation
Sweta Agrawal
 
Step by Step guide for creating first ABAP report in SAP
Step by Step guide for creating first ABAP report in SAPStep by Step guide for creating first ABAP report in SAP
Step by Step guide for creating first ABAP report in SAP
nityaabap
 
Sap implementation
Sap implementationSap implementation
Sap implementation
sydraza786
 
ASC 606 - IFRS 15 and SAP RAR
ASC 606 - IFRS 15 and SAP RARASC 606 - IFRS 15 and SAP RAR
ASC 606 - IFRS 15 and SAP RAR
Zak Syed
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
Hicham Khallouki
 
ck40 n-edit-costing-run-instruction
ck40 n-edit-costing-run-instructionck40 n-edit-costing-run-instruction
ck40 n-edit-costing-run-instruction
Pepa Pencheva
 

What's hot (20)

Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systems
 
Oss note 1779330 - error message fs716 during a document creation
Oss note   1779330 - error message fs716 during a document creationOss note   1779330 - error message fs716 during a document creation
Oss note 1779330 - error message fs716 during a document creation
 
Step by Step guide for creating first ABAP report in SAP
Step by Step guide for creating first ABAP report in SAPStep by Step guide for creating first ABAP report in SAP
Step by Step guide for creating first ABAP report in SAP
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programming
 
PCA Configuration
PCA ConfigurationPCA Configuration
PCA Configuration
 
Sap abap real time questions
Sap abap real time questionsSap abap real time questions
Sap abap real time questions
 
Sap implementation
Sap implementationSap implementation
Sap implementation
 
Fi processamento de arquivo retorno
Fi processamento de arquivo retornoFi processamento de arquivo retorno
Fi processamento de arquivo retorno
 
Create schedule monitor batch jobs with dynamic selection
Create schedule monitor batch jobs with dynamic selectionCreate schedule monitor batch jobs with dynamic selection
Create schedule monitor batch jobs with dynamic selection
 
Add new object in a dms object link sap q&a
Add new object in a dms object link   sap q&aAdd new object in a dms object link   sap q&a
Add new object in a dms object link sap q&a
 
1. img mm projeto completo mbp
1. img mm projeto completo mbp1. img mm projeto completo mbp
1. img mm projeto completo mbp
 
SAP EASY DMS
SAP EASY DMSSAP EASY DMS
SAP EASY DMS
 
ASC 606 - IFRS 15 and SAP RAR
ASC 606 - IFRS 15 and SAP RARASC 606 - IFRS 15 and SAP RAR
ASC 606 - IFRS 15 and SAP RAR
 
07 sap scripts
07 sap scripts07 sap scripts
07 sap scripts
 
Academia S4HANA Logística - Treinamento BP (1).docx
Academia S4HANA Logística - Treinamento BP (1).docxAcademia S4HANA Logística - Treinamento BP (1).docx
Academia S4HANA Logística - Treinamento BP (1).docx
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
 
SAP Document Management System Integration with Content Servers
SAP Document Management System Integration with Content Servers SAP Document Management System Integration with Content Servers
SAP Document Management System Integration with Content Servers
 
Funds management configuration sap ag
Funds management configuration sap agFunds management configuration sap ag
Funds management configuration sap ag
 
ck40 n-edit-costing-run-instruction
ck40 n-edit-costing-run-instructionck40 n-edit-costing-run-instruction
ck40 n-edit-costing-run-instruction
 
SAP solutions for government contracting in Aerpspace & Defense
SAP solutions for government contracting in Aerpspace & DefenseSAP solutions for government contracting in Aerpspace & Defense
SAP solutions for government contracting in Aerpspace & Defense
 

Similar to Lsmw for master data upload simple explanation

SAP ABAP lsmw beginner lerning tutorial.pdf
SAP ABAP lsmw beginner lerning tutorial.pdfSAP ABAP lsmw beginner lerning tutorial.pdf
SAP ABAP lsmw beginner lerning tutorial.pdf
Phani Pavan
 
SAP ABAP lsmw beginner lerning tutorial.pdf
SAP ABAP lsmw beginner lerning tutorial.pdfSAP ABAP lsmw beginner lerning tutorial.pdf
SAP ABAP lsmw beginner lerning tutorial.pdf
Phani Pavan
 
Uploading customer master extended address using bapi method
Uploading customer master extended address using bapi methodUploading customer master extended address using bapi method
Uploading customer master extended address using bapi method
londonchris1970
 
Creating mass users using e_catt
Creating mass users using e_cattCreating mass users using e_catt
Creating mass users using e_catt
sparten369
 
Report exchange designer
Report exchange designerReport exchange designer
Report exchange designer
rlsotto
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformations
Sunil Pandey
 
Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7
helpido9
 
Generic steps in informatica
Generic steps in informaticaGeneric steps in informatica
Generic steps in informatica
Bhuvana Priya
 
Cis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry universityCis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry university
lhkslkdh89009
 
Report exchange designer
Report exchange designerReport exchange designer
Report exchange designer
Bhushan Rajgure
 
Darkroom 2 photoshop masking techniques and smart objects
Darkroom 2 photoshop masking techniques and smart objectsDarkroom 2 photoshop masking techniques and smart objects
Darkroom 2 photoshop masking techniques and smart objects
daviddiener
 

Similar to Lsmw for master data upload simple explanation (20)

Lsmw (Legacy System Migration Workbench)
Lsmw (Legacy System Migration Workbench)Lsmw (Legacy System Migration Workbench)
Lsmw (Legacy System Migration Workbench)
 
SAP ABAP lsmw beginner lerning tutorial.pdf
SAP ABAP lsmw beginner lerning tutorial.pdfSAP ABAP lsmw beginner lerning tutorial.pdf
SAP ABAP lsmw beginner lerning tutorial.pdf
 
SAP ABAP lsmw beginner lerning tutorial.pdf
SAP ABAP lsmw beginner lerning tutorial.pdfSAP ABAP lsmw beginner lerning tutorial.pdf
SAP ABAP lsmw beginner lerning tutorial.pdf
 
Uploading customer master extended address using bapi method
Uploading customer master extended address using bapi methodUploading customer master extended address using bapi method
Uploading customer master extended address using bapi method
 
Lc solutions sop manual2
Lc solutions sop manual2Lc solutions sop manual2
Lc solutions sop manual2
 
Creating mass users using e_catt
Creating mass users using e_cattCreating mass users using e_catt
Creating mass users using e_catt
 
Ad basic tech_workshop
Ad basic tech_workshopAd basic tech_workshop
Ad basic tech_workshop
 
SAP BPC Learning Notes and Insights.docx
SAP BPC Learning Notes and Insights.docxSAP BPC Learning Notes and Insights.docx
SAP BPC Learning Notes and Insights.docx
 
Report exchange designer
Report exchange designerReport exchange designer
Report exchange designer
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformations
 
Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7
 
Generic steps in informatica
Generic steps in informaticaGeneric steps in informatica
Generic steps in informatica
 
Birt (business intelligence and reporting tools)
Birt (business intelligence and reporting tools)Birt (business intelligence and reporting tools)
Birt (business intelligence and reporting tools)
 
Cis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry universityCis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry university
 
NonConformances
NonConformancesNonConformances
NonConformances
 
Change transport system in SAP
Change transport system in SAP Change transport system in SAP
Change transport system in SAP
 
Report exchange designer
Report exchange designerReport exchange designer
Report exchange designer
 
Vb%20 tutorial
Vb%20 tutorialVb%20 tutorial
Vb%20 tutorial
 
How to design a report with fine report reporting tool
How to design a report with  fine report reporting toolHow to design a report with  fine report reporting tool
How to design a report with fine report reporting tool
 
Darkroom 2 photoshop masking techniques and smart objects
Darkroom 2 photoshop masking techniques and smart objectsDarkroom 2 photoshop masking techniques and smart objects
Darkroom 2 photoshop masking techniques and smart objects
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 

Lsmw for master data upload simple explanation

  • 1. Community Ask a Question Write a Blog Post The LSMW (Legacy System Migration Workbench) is a tool based on SAP software that supports single or periodic data transfer from non-SAP to SAP systems (and with restriction from SAP to SAP system). Its core functions are: Importing legacy data from PC spreadsheet tables or sequential files. Converting data from its original (legacy system) format to the target (SAP) format Importing the data using the standard interfaces of SAP (IDoc inbound processing, Batch Input, Direct Input). (This blog only explains how to create/ change Master data in SAP by using Standard Programs or recordings. I have not covered BAPI and IDoc method to make it simple and easy) Generally, people have questions in mind as how to create an LSMW project, which method should be used to upload the master data and how to use and what all master data can be uploaded through LSMW. LSMW – Legacy Data Migration Workbench I am dividing the whole process of creating a Project, Subproject & Object for uploading the Master Data and its upload procedure in different steps as explained below: Step 1 – Creating Project, Subproject and Object: Chintan Budhbhatti August 12, 2014 8 minute read LSMW for Master Data upload Simple Explanation (Part – 1) 27 Likes 48,448 Views 13 Comments Follow RSS feed Like Login
  • 2. For using LSMW tool, first step you need to do is Create Project, Sub Project and Object as shown in the screen below: Here, Project can have multiple Subprojects and in turn Subprojects can have multiple Objects as explained below: Create Project Give the desired name of data migration Project (For ex: Module name as I have taken “ZPM” for Plant Maintenance Module) Create Subproject Give the desired name of data migration Subproject (For ex: Master’s name as I have taken “EQUIP” for Equipment Master) Create Object Give the desired name of data migration Object (For ex: Master’s name as I have taken “CREATE” for Creating Equipment Master) Step 2 – Selecting Menu Items: Once Project, Subproject and Objects are created, pressing enter would generate the screen which includes all the menu items for both Master upload as well as IDoc updation which we might not require. Let us select the menu items which are required only for Master uploads. Selecting Menu Items First of all, pressing the User Menu button would guide you through selecting and de-selecting the Menu items. Please tick the required Items as shown in the screen below:
  • 3. Now, the screen would display only the selected Menu Items which we require for building and executing our LSMW program as shown below: Click the button “Double Click = Display” which would make it to “Double Click=Change” which means it will allow all the Menu Items to open in Change mode on double clicking else every item is in display mode by default.
  • 4. Henceforth, we will see each Menu Item in detail as an individual step. Step 3 – Maintain Object Attributes: This Menu Item defines the procedure we adopt for our program which could be: 1. Standard Batch/ Direct Input 2. Batch Recording 3. Business Object Method (BAPI) 4. IDoc (Intermediate Document) For defining the procedure, double click on the First option “Maintain Object Attributes”. The screen below shows how to select the method: As mentioned earlier, this blog covers explanation of only first two methods to make it simple and easy. (Believe me most of the Masters gets covered in this two methods.) Method 1 – Standard Batch/ Direct Input In this method, we are simply selecting the standard program defined by SAP for different Masters (most of the Masters are listed here): Click on Object to select the program then click on Method to select the method (For ex: Create/ Change) as shown in screen below:
  • 5. Once selected, save this method. Method 2 – Batch Input Recording This method, involves creating a recording for a specific Master transaction Creation/ Change. We would select this method when we require only specific fields to be created/ changed inside the Master screen. Creating a recording is explained below: Click on button and then click on (Recordings: Overview) button which would guide to the Recording screen. Here press Create button which will show the screen as below:
  • 6. Fill in the desired Recording Name and description as shown and press Enter and input the Transaction code as shown in the next screen: On pressing Enter, system will start the transaction screen as shown below: Perform the recording for the transaction (i.e., input all the fields you require to be taken into account for batch input). Remember to save the transaction to complete the recording procedure as saving is also getting recorded. On pressing save, you will see all the fields recorded as shown below:
  • 7. Here press “Default All” button to populate the fields to be made available for batch input. This will show the exact field names against each field as shown in the screen below:
  • 8. Saving this screen would guide user to the list of recordings. Here press back and select the recording in the Recording field as shown below and save:
  • 9. This ends the Step 1 for creating the method for specific Master creation/ change. Step 4 – Object Overview and Field List: Before moving to the second Menu Item “Maintain Source Structures”, we would go for listing the fields and viewing the structuring of the fields by pressing the button in the Menu List Screen and then “List” button which would show the screen as below (for easiness I have used Method-1 i.e., Standard Batch/ Direct Input but list will be similar in both the cases only the fields would differ): Here in the “Target Fields” section you will find all the fields (captured by Method-1 or Method-2). Please copy all the fields (except field TCODE and RECORDNAME which we don’t require to change while running our batch) and arrange the same in excel file as shown below:
  • 10. By this you will be able to capture all the required fields in your excel file which ends the Step 4. Step 5 – Maintain Source Structures: Source Structure will have all the Source fields which are recorded or captured during Method definition. Double click on “Maintain Source Structures” to which will guide to screen of Source Structure creation
  • 11. Here press the create button which will ask for Source Structure Name and Description as shown below: After entering the desired Source Structure name and Description, press enter and press Save. Step 6 – Maintain Source Fields: Source fields are the same which we have listed in Step 4. Before moving to this step, back to your excel sheet, change all field Types as below: CHAR C DATS DDMY UNIT C TIMS C TIMS C
  • 12. (This is to be done because the types defined in LSMW are different then field types in program or recording) Now, double click ”Maintain Source Fields” in the Menu List screen, which will guide you to the screen as shown below: Press the (Table Maintenance) button after selecting the Structure which will generate the field definition screen. Copy paste all the excel fields to the screen as shown below:
  • 13. Press Save and Back and it will display the fields attached to the Source Structure as shown below:
  • 14. Again press save button to save this Structure field relation. Step 7 – Maintain Structure Relations: This Step is for maintaining relation between Structure and Recording/ Standard Program. Double click “Maintain Structure Relations” in the Menu List screen, which will guide you to the screen as shown below:
  • 15. Select the first Structure and press and the structure you have created will be automatically be selected as you have created only one structure. This will create the relationship between program and Structure as shown below: Press Save and Back. Step 8 – Maintain Field Mapping and Conversion Rules: We have created the Structure to Program Relationship, now we need to create the mapping (Relationship) between Fields from Structure and Fields from Program/ Recording. Double click “Maintain Field Mapping and Conversion Rules” in the Menu List screen, which will guide you to the screen as shown below: As we have copied the fields from the Program/ Recording itself as in Step 4, it will be easy to perform the field mapping in a simple step.
  • 16. Go to Extras à Auto Field mapping which will pop-up a dialog box as shown below: Perform the selection exactly as shown in the screen above and press Enter. If you have any Date fields in your Field List, it will ask for your confirmation for every individual Fields as shown below and make selection as per your requirement (This is how system will interpret Date further throughout the program): Press Enter for all the Date Fields and you will find the field mapping for all your Source Fields to Program/ Recording Fields as shown below:
  • 17. Confirm all the Fields are mapped correctly and press Save and Back. Due to certain restrictions of blogs, this document covers the steps uptil “Maintain Field mapping and Conversion Rules” below steps, 1. Specify Files 2. Assign Files 3. Read Data 4. Display Read Data 5. Convert Data 6. Display Convert Data 7. Create Batch Input Session 8. Run Batch Input Session are convered in Part-2 of this document which can be found in the link below: LSMW for Master Data upload Simple Explanation (Part – 2)
  • 18. Community Ask a Question Write a Blog Post This blog is in continuation to my previous blog “LSMW for Master Data upload Simple Explanation (Part – 1)” – We will continue here with Step 9 – Specify Files Step 9 – Specify Files: Before performing this Step, you need to create your File format with exact field sequence. For creating the Format, simply transpose your Excel File fields from column to Row as shown below: Chintan Budhbhatti August 12, 2014 5 minute read LSMW for Master Data upload Simple Explanation (Part – 2) 19 Likes 13,184 Views 13 Comments Follow RSS feed Like LSMW for Master Data upload Simple Explanation (Part – 1) Login
  • 19. (Here I have mentioned only Single line for data you should have all the data which you wish to create in one time as in screen shot below) Select only the Data from excel sheet and copy it to notepad file as shown below and Save: Now in SAP, double click “Specify Files” in the Menu List screen which will guide you to the screen as shown below: Double click on “Legacy Data – On the PC (Frontend)” which will pop-up the dialog box as shown below:
  • 20. In File field select the Notepad File created, in the Name Field assign any desired name and make other selections exactly as shown in the screen and Press Enter, Save and Back. Step 10 – Assign Files: Double click “Assign Files” in the Menu List screen, which will guide you to the screen as shown below:
  • 21. As we have single Structure and Single File, it is auto assigned to Structure. Just Press Save and Back Step 11 – Read Data: Double click “Read Data” in the Menu List screen, which will guide you to the screen as shown below: Without making any changes to this screen, press execute button which will show the screen as below: This will Show the exact number of total records/ Masters which you have mentioned in your notepad file. If this does not match the exact value, check your notepad and excel file for data. Once Confirmed, Press back twice Step 12 – Display Read Data: Double click “Display Read Data” in the Menu List screen, will pop-up a dialog box as shown below:
  • 22. Without making any changes to this screen press enter, which will show the screen as below: This screen is displaying all the Master Data Records which are read from your notepad file. Double Clicking any record will show Field-wise Data where you can check the correctness of your data (this step is not mandatory). Once confirmed press back twice. Step 13 – Convert Data: Double click “Convert Data” in the Menu List screen, which will guide you to the screen as shown below: Without making any changes to this screen, press execute button which will show the screen as below:
  • 23. This will Show the exact number of total records/ Masters which are converted from your notepad file to Structure. If this does not match the exact value, check your notepad and excel file for data. Once Confirmed, Press back twice Step 12 – Display Convert Data: Doubleclick “Display Convert Data” in the Menu List screen, will pop-up a dialog box as shown below: Without making any changes to this screen press enter, which will show the screen as below: This screen is displaying all the Master Data Records which are read from your notepad file. Double Clicking any record will show Field-wise Data where you can check the correctness of your data (this step is not mandatory).
  • 24. Once confirmed press back twice. Step 13 – Create Batch Input Session: Double click “Create Batch Input Session” in the Menu List screen, which will guide you to the screen as shown below: Make the selections as per shown in the screen above and press execute. This will guide you to screen as shown below:
  • 25. This will display the number of transactions saved for execution. This all fields should be in green. If any record is in red, please check your entries again. If all records are green, press back twice. Note: For some masters or for recording method Step 13 would show a simple screen where you need to tick “Keep Batch Input Session” and execute. Step 13 – Create Batch Input Session: Double click “Run Batch Input Session” in the Menu List screen, which will guide you to the screen as shown below: This screen can also be executed through SM35. Here select the record you want to process and press which will pop-up a dialog box as shown below:
  • 26. Processing Mode: First Option “Process/ foreground” will guide you to each field of each screen of your Master records. Second option “Display errors only” will process your program in Background but will stop at Errors in any Field of any Screen which you can change. Third Option “Background” will process your program completely in background and will update the errors at last. (Recommended to use “Display errors only” option) Additional Functions Select the “Extended Log”, “Expert Mode” and “Dynpro Standard Size” options. Once made the above selections, press process. Once all the data are uploaded will pop-up a dialog box as shown below: Pressing “Session overview” will show the session details and “Exit Batch input” will exit the transaction. Here it completes the Legacy Data Migration Workbench (LSMW) process.