2015 LSMW Tutorial

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 34

BCO 5651 ERP Systems Implementation - 2015

Legacy System Migration Workbench LSMW

Data migration from non-SAP Systems to SAP R/3 with IKEA Company
Objectives of this module are:........................................................................................................................................2
Introduction to LMSW.....................................................................................................................................................2
Advantage and disadvantages using Batch Input Recording.......................................................................................2
Business Case..............................................................................................................................................................2
ABOUT THIS TUTORIAL....................................................................................................................................................3
SECTION 1: ELABORATE A NON-SAP FILE (EXCEL SPREADSHEET)....................................................................................4
SECTION 2: CREATE A NEW PROJECT, SUBPROJECT AND OBJECTS.................................................................................5
SECTION 3: EXECUTE LSMW TO FIND THE LIST OF STEPS (14 IN TOTAL) TO BE PERFORMED FOR DATA TRANSFER.......6
3.1. MAINTAIN OBJECT ATTRIBUTES.......................................................................................................................6
3.2. STEP 2: MAINTAIN SOURCE STRUCTURES.......................................................................................................13
3.3. STEP 3: MAINTAIN SOURCE FIELDS.................................................................................................................14
3.4. STEP 4: MAINTAIN STRUCTURE RELATIONS....................................................................................................15
3.5. STEP 5: MAINTAIN FIELD MAPPING AND CONVERSION RULES.......................................................................16
3.6. STEP 6: MAINTAIN FIXED VALUES, TRANSLATIONS, USER-DEFINED ROUTINES..............................................18
3.7. STEP 7: SPECIFY FILES.....................................................................................................................................18
3.8. STEP 8: ASSIGN FILES......................................................................................................................................21
3.9. STEP 9: READ DATA.........................................................................................................................................21
3.10. STEP 10: DISPLAY READ DATA.......................................................................................................................22
3.11. STEP 11: CONVERT DATA..............................................................................................................................23
3.12. STEP 12: DISPLAY CONVERTED DATA............................................................................................................24
3.13. STEP 13: CREATE BATCH INPUT SESSION......................................................................................................25
3.14. STEP 14: RUN BATCH INPUT SESSION...........................................................................................................26
SECTION 4: RESULTS AFTER COMPLETING ALL STEPS OF LSMW...............................................................................29
SECTION 5: ASSESSMENT OF YOUR LEARNING EXPERIENCE.....................................................................................31

1
Objectives of this module are:

1. Read data (Legacy data spreadsheet tables)


2. Convert data
3. Import data (Send it to the SAP R/3 data base)

Introduction to LMSW
This manual has been created to understand different data migration techniques with the LSMW tool, such as:

 Direct Input
 BAPIs (Business Applications Programming Interfaces)
 IDocs (Intermediate Documents)
 Batch input recording

However, the tutorial is based on Batch input recording technique which is one of the most popular in the market.
The following diagram summaries the flow of data transferred from non-SAP Systems to SAP R/3:

Each one of the phases in the above diagram will be simplify in a series of steps (14 in total throughout this manual.

Advantage and disadvantages using Batch Input Recording

- Advantages: Easy modifiable, all fields are available, easy re-processing.


- Disadvantage: Comparative slow, dependant on user settings, to use new screens or tabs a new recording has
to be created.

Business Case

IKEA Company provides professional and practical interior design techniques for business or home needs. In 2009,
the production of dining tables increased dramatically and most of the information records were registered in an
information system based on spreadsheets (Microsoft Excel). In 2011, they decided to migrate all this information into
their SAP R/3 system to integrate all their data with the rest of the business processes.

As a technique required, data migration was conducted by LSMW tool taking into account five of the most demanding
material to elaborate a dining table: Glass, steel base, screws, frame and wheels.

2
At the end of this process, data migration was successfully completed reducing transactions time, workload
documentation, productivity, data accuracy and process performance.

ABOUT THIS TUTORIAL


To successfully complete this tutorial, you must complete 5 sections throughout this document. The sections are:

o SECTION 1: Elaborate a non-SAP File (Excel Spreadsheet)


o SECTION 2: Create a new project, subproject and objects
o SECTION 3: Execute LSMW to find the list of steps to be performed for data transfer.
o SECTION 4: Results after completing all steps of LSMW
o SECTION 5: Assessment of your learning experience

SAP System log in specification

To log in to the SAP system, you need to use the follow information:

 Server: Amber
 Client: 100
 User: e-XXX (Replace XXX with your SAP ID)
 Password: erpXXX (This is the default passport, please replace XXX with your SAP ID and then change for
your own password)

 Hint: Replace XXX with your SAP login ID. Do NOT use 297 because it is used as an example throughout this
manual.

3
SECTION 1: ELABORATE A NON-SAP FILE (EXCEL SPREADSHEET)

1.1. Enter the following information in an Excel spreadsheet.

 Hint: Replace XXX with your SAP login ID in column A (ITEM_CODE)

1.2. Save Excel file in your prefer location as type CSV(Comma delimited) (*.CSV)

 ATTENTION: If you get the message as below, simply just press OK and then yes.

When you close the file you need to save it and replace the file again.

4
SECTION 2: CREATE A NEW PROJECT, SUBPROJECT AND OBJECTS
2.1. Enter LSMW in the Standard Toolbar

Menu path LSMW is an additional transaction, for that reason it is not available in
the standard SAP Menu
Transaction code LSMW and then press on
2.2. The following window will pop up. Select Project and then Click on icon (Create entry)

2.3. Enter the following details for each project selection part. Then continue :

Project TABLE_PR_XXX
Create Project
Description Table Project
Subproject TABLE_SP_XXX
Create Subproject
Description Table Subproject
Object TABLE_OB_XXX
Create Object
Description Table Object

 Hint: Replace XXX with your SAP login. Do NOT use 297 because it is used as an example throughout this
manual.

2.4. Press execute icon , It will send you to the next section (Execute LSMW ).

5
SECTION 3: EXECUTE LSMW TO FIND THE LIST OF STEPS (14 IN TOTAL) TO BE
PERFORMED FOR DATA TRANSFER

3.1. MAINTAIN OBJECT ATTRIBUTES


3.1.1. Select Maintain Object Attributes and then execute .

The following window will pop up:

 ATTENTION: If the new window shows Display Object Attributes, select icon to swap to
Change Mode

3.1.2. Select Batch Input Recording. Then go to menu follow the path Goto > Recordings Overview.

6
3.1.3. Select (Create Recording)

Write the following details and press enter

 Recording: MATXXX_REC
 Description: Create Material for Table

7
 Hint: Replace XXX with your SAP login. Do NOT use 297 because it is used as an example throughout this
manual.

3.1.4. A transaction code window appears. Please enter transaction code mm01 to create a Material and confirm .

3.1.5. Enter the following information:

 Material: MAT1_XXX
 Industrial sector: Retail
 Material Type: Trading goods

Then click on Select view(s) and select Basic Data 1 and Basic Data 2. Press continue

3.1.6. Update the Basic Data 1 filling out each one of the field with the information shown below:

8
3.1.7. Select Basic Data 2 tab and Update the field Ind. Std Desc. (Industry Standard Description) with the
information shown below. Then press

3.1.8. The following window will pop up. Double click on RMMG1-MATNR field to start entering information (Shown
in the screenshot). Then press continue

9
 ATTENTION: Please keep clear the Default value field. Also, you need to enter details for 7 more fields. Repeat
the same procedure to the steps below.

3.1.9. Double click on MAKT-MAKTX field. Add the following information and press

 ATTENTION: For this MAKT-MAKTX field the information has to be entered twice (scroll down to find the same
field). Please keep clear the Default value field.

3.1.10. Double click on MARA-MEINS field. Add the following information and press

 ATTENTION: Please keep clear the Default value field.

3.1.11. Double click on MARA-BISMT field. Add the following information and press

10
 ATTENTION: Please keep clear the Default value field.

3.1.12. Double click on MARA-BRGEW field. Add the following information and press

 ATTENTION: Please keep clear the Default value field.

3.1.13. Double click on MARA-GEWEI field. Add the following information and press

 ATTENTION: Please keep clear the Default value field.

3.1.14. Double click on MARA-NTGEW field. Add the following information and press

11
 ATTENTION: Please keep clear the Default value field.

3.1.15. Double click on MARA-NORMT field. Add the following information and press

 ATTENTION: Please keep clear the Default value field.

3.1.16. Press save button follow by the back icon twice

3.1.17. Click on next to recording to bring the recording name created on step 3.1.5.

3.1.8. Press save button follow by the back icon

12
3.2. STEP 2: MAINTAIN SOURCE STRUCTURES
3.2.1. Select Maintain Source Structures and then execute .

The following window will pop up:

 ATTENTION: If the new window shows Display Source Structures, select icon to swap to Change Mode

3.2.2. Select (Create a Structure)

Write the following details and press enter

 Source Structure: TABLE_SS_XXX


 Description: Source Structure for Table

3.2.3. Your Source Structure has been created.

13
3.2.4. Press save button follow by the back icon

3.3. STEP 3: MAINTAIN SOURCE FIELDS


3.3.1. Select Maintain Source fields and then execute .

The following window will pop up:

 ATTENTION: If the new window shows Display Source Fields, select icon to swap to Change Mode

3.3.2. Click on the source fields and then press the Table Maintenance button

3.3.3. Write the following details shown below:

14
3.3.4. Press save button follow by the back icon . The information saved will be displayed on the Source
Structure.

3.3.5. Press save button follow by the back icon

3.4. STEP 4: MAINTAIN STRUCTURE RELATIONS


3.4.1. Select Maintain Structure Relations and then execute .

The following window will pop up:

 ATTENTION: If the new window shows Display Structure Relationships, select icon to swap to Change
Mode

15
3.4.2. Click on the Select Target Structure. Then Press save button follow by the back icon

 Hint: This step is just to save the Source Structure into the Structure Relations

3.5. STEP 5: MAINTAIN FIELD MAPPING AND CONVERSION RULES


3.5.1. Select Maintain Field Mapping and Conversion Rules and then execute .

The following window will pop up:

 ATTENTION: If the new window shows Display Field Mapping and Conversion Rules, select icon to swap
to Change Mode

3.5.2. Select ITEM_CODE and then click on (Assign Source Field).

16
3.5.3. Select ITEM_CODE in the Source Field column and then press

3.5.4. Repeat the steps above (3.5.2 and 3.5.3) for the other 7 Sources fields left:

1- ) ITEM_NAME

2- ) ITEM_UOM

3- ) OLD_MAT_NUM

4- ) GROSS_WEIGHT

5- ) WEIGHT_UNIT

6- ) NET_WEIGHT

7- ) ISO_STD

 ATTENTION: Make sure the field selected on step 3.5.2 has the same name in the table step 3.5.3. Sometimes
the order may vary between both steps.

3.5.5. The information entered will be shown as the screen below. Then press save button follow by the back icon

17
3.6. STEP 6: MAINTAIN FIXED VALUES, TRANSLATIONS, USER-DEFINED ROUTINES
Due to the business case for this tutorial, step 6 is NOT required to enter any information. Step 6 is used only when
there are more than one legacy systems. Also there are not translations and routines to define throughout this manual.
Please continue with step 7.

3.7. STEP 7: SPECIFY FILES


3.7.1. Select Specify Files and then execute .

The following window will pop up:

 ATTENTION: If the new window shows Specify Files (Display), select icon to swap to Change Mode

18
3.7.2. Select Legacy Data On the PC (Frontend) and then click on (Add Entry).

3.7.3. Find your excel file clicking on icon to uploaded. Name the file as Table and then select the same options
shown on the screenshot below and press

3.7.4. The Specify Files window will be showed in the following form.

19
Press save button .

 ATTENTION: If you get the following error message on the left bottom corner

, double click on Converted Data field.


Then change the name from:

“TABLE_PR_XXX_TABLE_SP_XXX_TABLE_OB_XXX.lsmw.conv” to

“TBL_PR_XXX_TBL_SP_XXX_TBL_OB_XXX.lsmw.conv” and press . Now you are

able to save your file.

 Hint: Replace XXX with your SAP login. Do NOT use 297 because it is used as an example throughout this
manual.

3.7.5. Press save button follow by the back icon

20
3.8. STEP 8: ASSIGN FILES
3.8.1. Select Assign Files and then execute .

The following window will pop up:

 ATTENTION: If the new window shows Assign Files (Display), select icon to swap to Change Mode

3.8.2. The screen shows that the file has been successfully assigned. To finalise press save button follow by the
back icon

3.9. STEP 9: READ DATA


3.9.1. Select Read Data and then execute .

3.9.2. In Transaction Number, enter 1 to 5. These 5 values represent the different items inside the file. Then execute
.

21
The following window will pop up. Please click on Allow to authorise access to the file file.

3.9.3. The import data window will be showed in the following form. To finish just press the back icon twice .

3.10. STEP 10: DISPLAY READ DATA


3.10.1. Select Display Read Data and then execute .

22
3.10.2. Enter 1 in From Line and 5 To Line to display the file uploaded. Then press .

- The following window will pop up showing the data imported from the excel file. Click on the first item on the Struct
Column to display the material details.

- Details of the material are displayed in the following form. To finish just press the back icon twice

3.11. STEP 11: CONVERT DATA


3.11.1. Select Convert Data and then execute .

23
3.11.2. In Transaction Number, enter 1 to 5. Then press execute .

3.11.3. The convert data window will be showed in the following form. To finish just press the back icon twice .

3.12. STEP 12: DISPLAY CONVERTED DATA


3.12.1. Select Display Converted Data and then execute .

3.12.2. Enter 1 in From Line and 5 To Line to display the converted data. Then press .

24
- The following window will pop up showing the converted data. Click on the first item on the Struct Column to display
the material details.

- Details of the material are displayed in the following form. To finish just press the back icon twice

3.13. STEP 13: CREATE BATCH INPUT SESSION


3.13.1. Select Create Batch Input Session and then execute .

25
3.13.2. The information required is brought automatically. Select execute

- The following information window will pop up. Click enter to generate a Batch Input Folder.

3.14. STEP 14: RUN BATCH INPUT SESSION


3.13.1. Select Run Batch Input Session and then execute .

3.14.2. Select your Session name follow by Process session icon

26
 ATTENTION: Please make sure that you have highlighted the whole row. Click where the arrow is pointing on the
screenshot above.

3.14.3. Select the same options shown on the screenshot below and press

3.14.4. The Create Material window will be displayed. Replace the OK-Code with the following information: Erase
“=AUSW” and write “=ENTR”. Then press .

3.14.5. Select Basic Data 1 and Basic Data 2. Then press enter .

27
3.14.6. The material data will be displayed. On the OK-Code little window (Basic Data 1). Click on .

3.14.7. Another similar OK-Code window (Basic Data 2) will pop up. Also click on

3.14.8. Repeat steps from 3.14.4 to 3.14.7 for the others 4 items codes. When finish, you will be addressed to the
window below. Press Session overview.

3.14.9. The system returns to the Batch Input: Session Overview.

28
 ATTENTION: As you can see from the screenshot above, there are NO ERROS displayed.

SECTION 4: RESULTS AFTER COMPLETING ALL STEPS OF LSMW


The main objective of this section is to verify if the information from the non-SAP file (Excel file) has been imported
correctly to SAP system. To do that, you are required to generate three different screenshots:

4.1. Material List → Transaction code mm60


4.2. Basic Data 1 → Transaction code mm03
4.3. Basic Data 2 → Transaction code mm03

4.1. Enter transaction code mm60 in the Standard Toolbar.

- In the Material field enter your material code TBLXXX100*. Then execute .

 Hint: Replace XXX with your SAP login ID. The symbol * instead of the last digit of your material code will help you
out to find the whole list of materials. Also make sure you deselect the option Valuated material only

SCREENSHOT1

SCREENSHOT 1: MATERIALS LIST (MM60)

29
4.2. Enter transaction code mm03 in the Standard Toolbar.

- In the Material field enter your material code TBLXXX1001. Then select Select views(s).

 Hint: Replace XXX with your SAP login ID.

- Select Basic Data 1 and Basic Data 2 and continue

SCREENSHOT 2: BASIC DATA 1 (MM03)

30
4.3. SCREENSHOT 3: BASIC DATA 2 (MM03)

- Select tab Basic data 2

End of LSMW Tutorial

SECTION 5: ASSESSMENT OF YOUR LEARNING EXPERIENCE


Please read questions carefully and give your best answer.

1. Which data types can be migrated using the LSM Workbench – Batch input recording technique?

31
2. How can you verify that data imported was conducted correctly?
3. How many source structures are allowed per recording?
4. It is allowed to use LSMW Tool to transfer data from R/3 system to a R/3 system?
5. How may you decide which migration method is the appropriate for your business case?
6. If there is an error when you run Batch input session, how would you correct the issue?
7. Is the name of the non-SAP file length, important to specify and save the file?
8. Why LSMW is not available in the standard SAP Menu?
9. Why Step 6 (maintain fixed value, translations, user-defined routines) is not relevant for this tutorial?
10.What are the different data migration techniques in LSMW?

TROUBLESHOOTING LSMW

PROBLEM 1: When you Run Batch input session (Step 14) it generates an error message during or after import the
data. An error example is displayed below:

Solution 1

First of all, verify which import method was used to identify the series of steps to follow. Then check if the object
attributes were completely fulfilled when you created the recording of materials. Sometimes this error may not have

32
any relation with the object attributes created, instead this could happen because you probably miss one of the
options or skip a step critical to import the data.

PROBLEM 2: Fields cannot be seen Fields cannot be seen in the field mapping after a recording has been created.

Solution 2

a. From the list of steps, choose Maintain source fields.


b. Check the names of the source fields. If they are missing, double-click on the corresponding field to
branch to the Change source field dialog box.
c. Fill in the corresponding fields.
d. Confirm by choosing Continue.
e. Repeat the recording process.

PROBLEM 3: Cursor Positioning when you are running your batch input session.

Solution 3

To avoid error importing the data, make sure that cursor is positioning where enable to highlight the whole row of
information of your session name. Sometimes there is a misunderstanding about selecting your session name and
positioning you cursor to highlight a session line. Otherwise the system does not recognise the data and generate
the error.

PROBLEM 4: The source file contains data in one data record out of which to records are to be created after
conversion.

Solution 4

In step 5 Maintain field mapping and conversion rule, choose the transfer_record function

PROBLEM 5: In the standard batch Input/direct input, fields are missing when creating the field mapping.

Solution 5

All the fields listed in Table SXDA3 are considered to be technical fields. By default, technical fields cannot be seen. In
step Maintain field mapping and conversion rules; choose Display variant → Technical fields. The fields are
displayed.

PROBLEM 6: Only the data of the header structure is read after merging two files.

Solution 6

33
All the fields with identical names are being merged. Check to see if merging of fields with identical names makes
sense. For this, check the data read program generated by the LSMW by choosing Personal menu → Display read
program.

REFERENCES

- SAP Help Portal


http://help.sap.com/saphelp_nw70/helpdata/en/c5/213c487a3c11d3bc8100105a6588b2/content.htm
- SAP Community network http://scn.sap.com/thread/1356595
- Slideshare LSMW Tutorial
http://www.slideshare.net/raonivaz/step-by-step-lsmw-tutorial

34

You might also like