Ads

SAP LSMW Step by Step Tutorial

SAP LSMW Step by Step Tutorial

What is LSMW( Legacy System Migration Workbech)?

Now let us know what is the LSMW? ,is a Legacy System Migration workbench using which we can import the data from Non-SAP system to SAP system.It is specially designed for functional consultants who are not experts in the coding and it can be done in 14 steps to complete the LSMW for this we have to map the all steps and LSMW has  four ways to import data into SAP, and they are: BDC, Direct Input, BAPI(BO) and IDOC..Here steps are:

First of all ,go to transaction LSMW.

Enter Project name    : zs_lsmw.
      Subproject name : zs_lsmw.
      Object name     : zs_lsmw.

Now ,Click on Create entry  button.

It will ask for description, Give description for
      Project name    : zs_lsmw project.
      Sub-project name : zs_lsmw subproject.
      Object name     : zs_lsmw object.

Click on Continue(f8) button.

It will takes you to the LSMW steps screen and first step radio button already selected.

Step1   Maintain object attributes 

Step2  Maitain source structures 

Step3  Maitain source fields 

Step5  Maitain field mapping coversion rules 

Step6   Maintain fixed values, translations, user-defined routines

Step7   Specify files 

Step8   Assign files 

Step9   Read data 

Step10   Display read data 

Step11   Convert data

Step12  Display converted data 

Step13  Create batch input session 

Step14  Run batch input session

Data upload using "LSMW" is succesfully completed.

Finally ,Go to SE11 and check whether  data is uploaded or not.

To start working with the LSM Workbench, use transaction LSMW:
SAP LSMW Step by Step Tutorial


Click on the create button to create new project, sub-project and the object. As shown below.


On the initial screen, you can create a new project, corresponding sub-projects and objects via Edit -> Create new entry.
Click on the execute button once the project, sub-project and the object are created. 

SAP LSMW Step by Step Tutorial


Click Back.Now record using Batch Input Recording Data Migration - Step by Step via Batch Input Recording
SAP LSMW Step by Step Tutorial

Maintain Object attributes in LSMW

Here, you will be updating the Material master records of the transaction (MM01). Select radio button Batch Input Recording and click on the recording overview icon to record the R/3 transaction. Enter the Recording name as MM01_REC2. 
SAP LSMW Step by Step Tutorial
  
Click on create to record the transaction.


SAP LSMW Step by Step Tutorial
SAP LSMW Step by Step Tutorial


Enter Transaction code MM01 and Click on Continue.
SAP LSMW Step by Step Tutorial


Enter the fields the fields and Default Values populated autamatically .
SAP LSMW Step by Step Tutorial

You can remove the default values by clicking on the field.
SAP LSMW Step by Step Tutorial

Repeat the above step for all fields.Now ,you can see the recording overview screen .
SAP LSMW Step by Step Tutorial

Click on SAVE to save the recording. The click on BACK icon to the main screen. Save the while going back to the main screen.

Maintain Source Structure for LSMW

Select the Radio button Maintain Source Structure.
SAP LSMW Step by Step Tutorial

Click on CREATE to create a source structure. Give a name and a description to the source structure as shown below:
SAP LSMW Step by Step Tutorial

Save the source structure and go to the main screen.

Maintain Source Fields for LSMW

Click on 'Table Maintenance' icon to enter Field name, Type and Length for each field.
SAP LSMW Step by Step Tutorial

Save while coming back to the main screen.

Maintain Structure Relations in SAP LSMW

Execute a step to 'Maintain Structure Relations'. Since, there is only one Source and Target Structure, the relationship is defaulted automatically.
SAP LSMW Step by Step Tutorial

Save while coming back to the main screen.

Maintain field mapping and conversion rules

Keep cursor on field 'MATNR' and click on 'Assign Source field' icon to choose source field MATERIAL from structure MM01V6 .
SAP LSMW Step by Step Tutorial

Similarly, assign 'Source Field' rules to the remaining fields.
Once all the fields are mapped, you should have an overview screen like below.
SAP LSMW Step by Step Tutorial
Save while coming back to the main screen.

Maintain fixed values, translations, user-defined routines

Specify files
In this step, we define how the layout of the input file is.  It is present on your PC ,Double Click on the legacy data.
SAP LSMW Step by Step Tutorial

Save while going to main screen.
Create an Excel with your data and save it in your PC.
SAP LSMW Step by Step Tutorial


Assign file
Execute step 'Assign Files' and the system automatically defaults the filename to the source structure.
SAP LSMW Step by Step Tutorial

Save while going to main screen.
Read data
In this step, LSMW reads the data from the source file (from your PC's local drive). You have the option to read only selected rows and convert data values to internal format.

SAP LSMW Step by Step Tutorial
  
After we execute the data read from the flat file is as shown below.
SAP LSMW Step by Step Tutorial
Display read data
This step is optional. If required, you can review the field contents for the rows of data read.
SAP LSMW Step by Step Tutorial
SAP LSMW Step by Step Tutorial


Convert data
This is the step that actually converts the source data (in source format) to a target format. Based on the conversion rules defined, source fields are mapped to target fields. 
SAP LSMW Step by Step Tutorial
SAP LSMW Step by Step Tutorial

Click BACK to come back to main screen.
Display Converted data
Again this is an optional step to view how the source data is converted to internal SAP format.
SAP LSMW Step by Step Tutorial

Create batch input session
Once the source data is converted in an internal format, you can create a batch session to process updates.
SAP LSMW Step by Step Tutorial

Click on EXECUTE button to execute a batch input session.

Run Batch Input Session

You can execute batch input session is using a standard SM35 transaction for managing BDC sessions. Once you have successfully executed the batch input session, the Material master records are updated in the system. You can confirm this by viewing the Material master records (MM03).
SAP LSMW Step by Step Tutorial
Select the session and click on the PROCESS icon.
SAP LSMW Step by Step Tutorial

You can Process the session in foreground or background or can only display errors.

 BDC and LSMW
  BDC Call Transaction Method Program in SAP ABAP
  BDC Session Method Program Tutorial in SAP ABAP 
  BDC Interview Questions
 SAP LSMW Tutorial Step by Step
 Difference Between Call Transaction and Session Methods in SAP ABAP
SAP ABAP Tutorials for Beginners

LSMW,Tutorial ,SAP LSMW, Step by Step Tutorial on LSMW,Creating LSMW in SAP.

Comments

Popular posts from this blog

BADI Interview Questions in SAP ABAP

Sample SAP ABAP Programming Examples for Practice

Module Pool Programming Interview Questions and Answers in SAP ABAP

Step by Step tutorial on BDC Session Method Program in SAP ABAP

SAP ABAP Interview Questions and Answers for 10 Years Experienced