Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Sap LSMW

Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

SAP LSMW

Legasy System Migration Workbench


Prepared by Mubeen Subhedar
LSMW:-

The LSM Workbench is an SAP R/3 based tool that supports the one-time or periodic transfer
of data from non-SAP systems ("legacy systems") to SAP systems.

The LSM Workbench helps to manage data migration project.

The data can be transferred to SAP system by using Batch Input, Direct Input, Intermediate
documents (IDOCS) and BAPI’s (Business Applications Programming Interface).

LSMW Import methods:-

1) Std. batch / Direct Input – In this method, the entire field mapping will be done
automatically with standard MAP and we cannot skip any field.

2) Batch input recording - This method is more user specific. We can do recording as
per user requirement & can skip any which is not required. Functional consultants more
often use this method.

3) BAPI – An ABAP Programmer defines own interface using a BAPI and implement them
to conduct large scale data migration from legasy system to SAP system.

4) IDOC - This method is used for the purpose of copying from one Business to other
business. The prerequisites for this is both the SAP version should be same when you
copying from one server to other server.

If you are a functional consultant prefer direct input or Batch input recording (if these methods
exist for your situation).

If you are a technical person with ABAP knowledge, prefer to BAPI/IDOC methods.

Difference between LSMW and BDC:-

LSMW BDC
LSMW is standard sap application. T-code
BDC is customized applications. T-code SHDB.
LSMW
SAP System will take care for mapping User has to give mapping explicitly.

Import methods: Direct input, Batch input There are two methods to implement BDC: (a) Call
recording, BAPI, IDOC. Transaction Method. (b) Session Method.

LSMW is basically designed for Functional


BDC is used by technical consultants
consultants
LSMW is more preferable method as it
In case of BDC, if screen design changes
uses the standard programs for data
tomorrow, program will not work
upload.

1|P a g e
Let’s learn LSMW with Batch input recording method.

T-Code – LSMW

Give unique names for Projects, Sub-project and object. Click on Create. Click on Execute.

Provide description for Project, Subproject and object.

We will get list of steps. Execute each step one by one.

2|P a g e
Let’s look each step in detail.

1. Maintain Object Attributes –


Click on change mode and select Batch Input Recording method. Click on Recordings:
Overview options.

3|P a g e
Click on create recordings.

Provide name & description for recoding.

Give a transaction code for recording.

4|P a g e
Fill all details and create vendor.

Click on Default All.

Press CTRL+Y, and copy all technical field names and description which captured in recording.

5|P a g e
Copy fields in excel file.

Remove blank raw.

Use Text to Column option in excel and saperate technical name and description.

Now Copy all technical names, Go to sheet 2, Right click and Use option paste special.

Select Transpose and click on OK.

6|P a g e
Prepare file which needs to be upload.

Fill all details exactly under all columns. If some field contains value starts with 0 (For eg.
Payment term -0001), Convert that column in to text format then paste value in it.

Also, If we do not want to put any value for particular field and want to skip that field from
transaction, then use ” /” instead of actual value.

7|P a g e
In SAP, click on save and press Back button.

Place cursor in recording field and Press F4. Recording name populate in recording field.

Click on Save and press back button.

Now system will take us to second step.

8|P a g e
If we observe, we found that previously there were 20 steps while executing LSMW, but now it
is showing 14 steps. It is because, we have selected Batch Input recording method.

System is not showing us BAPI/IDOCS related steps.

2. Maintain Source Structure:-

Go to change mode. Click on Create a Structure option.

Provide name and description for structure and click on SAVE.

3. Maintain Source Field:-

Click on change mode.

9|P a g e
Click on Table maintenance options.

Put all field in field name column. Provide data type (usually C) and maximum length for field.

How to find maximum length for field.

Go to SE12 Select View Put technical field name and click on Display.

10 | P a g e
Now In LSMW, Click on back button and Save.

4. Maintain Structure relationships-

Go to change mode. Keep cursor on structure and press relationship options.

11 | P a g e
System will show below message. Press Continue. SAVE.

5. Maintain field mapping with conversion rule.

Go to change mode. Select menu Extras, select option Auto-Field Mapping.

12 | P a g e
Keep on press “Accept proposal” for all proposals. Save.

6. Maintain Fixed Values, Translations, User-Defined Routines

Nothing to do in this step.

7. Specify Files

Select Specify file step and click on execute.

13 | P a g e
Place cursor on first line and go to change mode.

Click on Add Entry option.

Brows file which needs to be upload. Provide name for file. Select Tabulator option.

We can upload excel file as well as text file.

Click on continue and SAVE.

8. Assign Files

Go to change mode. Place cursor on first line and click on Assignment.

Click on Continue and SAVE.

14 | P a g e
9. Read Data

Remove check from Value Fields and Data Value. Execute.

System will tell how many records being read.

15 | P a g e
10. Display Read Data

Execute.

Click any one of row. Check system read data correctly or not.

11. Convert Data

Execute.

16 | P a g e
12. Display Converted Data

Click on Continue.

Click on one of row. Check how system converting data.

13. Create Batch Input Session

Select Keep batch input folder(s)? Checkbox and click on execute. It will create 1 batch input
folder. Click on continue. It will take you to last step.

17 | P a g e
14. Run Batch Input Session

Execute or double click on this step, it will take us to SM35 screen.

Select our batch and click on Process option.

Select option Process/Foreground if we want manual intervention.

Select option Background, system will complete the task and provide us logs.

Select option Extended logs. Click on Process.

System will show below message.

After batch process, Click on Log options. It will give below screen.

Now, click on display options. It will give details log status.

18 | P a g e
Thank you.

19 | P a g e

You might also like