Legacy System Migration Workbench (LSMW) Workbook For Loading Master Data
Legacy System Migration Workbench (LSMW) Workbook For Loading Master Data
Legacy System Migration Workbench (LSMW) Workbook For Loading Master Data
MIGRATION
WORKBENCH (LSMW)
WORKBOOK FOR
LOADING MASTER
DATA
Unauthorized use prohibited. Please do not copy or distribute this document
without the express permission of ESP Solutions.
2
TABLE OF CONTENTS
3
1 Upload instructions
When loading HR Master Data into the Production system via LSM, the following
LSMW must be used in the order specified.
NB: You will notice that I have, on each Excel Spreadsheet, coloured the data
that has already been uploaded into Production, in yellow. This means that
should additional data have to be loaded via LSMW, the same spreadsheet can
be used but only the additional data be loaded.
NOTE: The ZHREMP2POS LSMW must only be used if the relationship between
a position and an employee did not materialize. The user will notice this when
looking for an employee on the structure and the employee does not exist.
4
2 Setting up the LSMW
FROM
DATE TO DATE OBJ ID SHORT LONG
01011900 31129999 10000000 THE COMPANY THE COMPANY
01011900 31129999 10000001 IT INFORMATION TECHNOLOGY
01011900 31129999 10000002 OPERATIONS OPERATIONS
01011900 31129999 10000003 TECHNICAL TECHNICAL
01011900 31129999 10000004 HR HUMAN RESOURCES
01011900 31129999 10000005 MKT (COTY) MARKETING (COTY)
01011900 31129999 10000006 MKT (YOL) MARKETING (YARDLEY)
01011900 31129999 10000007 FINANCE FINANCE
01011900 31129999 10000008 SALES & DIST SALES & DISTRIBUTION
01011900 31129999 10000009 BUS DEV BUSINESS DEVELOPMENT
01011900 31129999 10000010 FACTORY FACTORY
01011900 31129999 10000011 FACTORY (YOL) FACTORY (YOL)
01011900 31129999 10000012 FACTORY (COTY) FACTORY (COTY)
01011900 31129999 10000013 SITE SERVICES SITE SERVICES
01011900 31129999 10000014 SITE SERV (YOL) SITE SERVICES (YOL)
01011900 31129999 10000015 SITE SERV (COTY) SITE SERVICES (COTY)
01011900 31129999 10000016 PURCHASING PURCHASING
01011900 31129999 10000017 PLANNING PLANNING
01011900 31129999 10000018 PLANNING (YOL) PLANNING (YOL)
01011900 31129999 10000019 PLANNING (COTY) PLANNING (COTY)
5
Step 5: Maintain the following fields:
Project: Enter a name for the project e.g., ZHRORG.
Subproject: Enter a name for the subproject e.g., ZHRORG. This name
should be the same as that for Project.
Object: Enter a name for the object e.g., ZHRORG. This name should be
the same as that for Project.
6
Step 6: Click again in the Project field
In the Description field, enter a long name for the LSMW e.g., ZHR
Organisation Units
7
Your screen should now look like this.
8
The LSM Workbench screen appears.
9
3 Maintain Object Attributes
10
Step 2: Click on the Display < > Change / Ctrl + F1 button so that the screen
changes to “LSM Workbench: Change object attributes” as shown below
11
The Recordings of project ‘ZHR1’: Overview screen appears.
12
Step 5: Give the recording a name e.g. ZHRA and a description e.g. ZHRA
Testing Org Structure. NB: The recording name must be different from your
project name.
Step 7: In the Transaction Code field, enter the transaction code you will be
recording, e.g. PO10 (used in HR for creating an organizational unit).
13
Step 8: Click on the Continue / Enter button.
Plan Version field: Click once in the Plan Version field. The field should
contain the value “01” or have “Current Plan Version”.
Organisational Unit field: Cleat the contents and enter the correct ID
number e.g. 10000000 for THE COMPANY (as per spreadsheet).
Time Period: Click once in the From field and once in the To field.
Click once on the Planned tab.
Click once on the Active tab.
14
Infotype Name: Click on the box next to the infotype to be maintained. In
this case the “Object” infotype is to be maintained. (see arrow).
Menu Path: Edit > Create Infotype.
Object abbr. field: Enter the short name of the object to be created e.g.
THE COMPANY.
Object Name field: Enter the long name of the object to be created e.g.
THE COMPANY.
Menu Path: Infotype > Save
15
The Create Recording screen appears.
16
Step 10: The last 2 lines can be deleted (see arrows) by selecting one line and
clicking on the Remove screen field button. Repeat for the next
line.
17
The Create Recording screen should look like this:
Step 13: Double click on the pink section of the MARKFIELD line (as indicated
by the arrow).
18
A pop-up screen Maintain Field Properties appears
19
The Recordings of Project XXXX: Overview screen appears again.
2.
1.
Step 18: Click on the radio button next to Batch Input Recording (see arrow 1.).
Step 19: Click in the field next to Recording (See arrow 2.) A search option
20
Step 20: Click on this button. The last recording done will default into the
Recording field.
Step 21: Press enter on your keyboard.
Step 22: Save this screen.
Step 23: Click on the back button.
The LSM Workbench screen appears again with the next radio button
highlighted.
21
4 Maintain Source Structures
22
The screen changes to LSM Workbench: Change source structures
Step 3: Highlight the word “Source structures” by clicking once on the line
Source Structure field: Give the source structure a name e.g., ZHRTest.
NB: There must be no spaces in this entry.
Description field: Give the source structure a description e.g. ZHR
Testing 123.
23
Your screen should look something like this:
The LSM Workbench: Change source structures screen should now look like
this:
24
The LSM Workbench screen appears again. This time the third radio button is
highlighted.
25
5 Maintain Source Fields
Step 1: Click on the first radio button again (Maintain object attributes)
26
Step 4: Position cursor at PLVAR.
27
Your excel spreadsheet should look like this.
28
A pop-up screen Convert text to columns Wizard – Step 1 of 3 appears.
29
Step 2 appears.
Step 13: Move the line (see arrow) to just before the P for Plan version.
30
Step 14: Scroll across until you see CHAR columns.
31
Step 16: Click on “Next >”
Step 3 of 3 appears.
Step 18: Change the entries in Column C (see solid arrow) so that they are all
“C’s”.
Step 19: Delete Column “D”. (See dotted arrow).
Step 20: Move Column B to after the numbers (see screen dump below in terms
of what the spreadsheet should now look like)
32
The spreadsheet should now look like this:
33
A pop-up screen “Paste Special” appears.
Step 28: Do the same for column D in sheet 1. This time Paste Special into
Sheet 2, cell A2.
34
Your Sheet 2 should now look like this:
FROM
DATE TO DATE OBJ ID SHORT LONG
01011900 31129999 10000000 THE COMPANY THE COMPANY
01011900 31129999 10000001 IT INFORMATION TECHNOLOGY
01011900 31129999 10000002 OPERATIONS OPERATIONS
01011900 31129999 10000003 TECHNICAL TECHNICAL
01011900 31129999 10000004 HR HUMAN RESOURCES
01011900 31129999 10000005 MKT (COTY) MARKETING (COTY)
01011900 31129999 10000006 MKT (YOL) MARKETING (YARDLEY)
01011900 31129999 10000007 FINANCE FINANCE
01011900 31129999 10000008 SALES & DIST SALES & DISTRIBUTION
01011900 31129999 10000009 BUS DEV BUSINESS DEVELOPMENT
01011900 31129999 10000010 FACTORY FACTORY
01011900 31129999 10000011 FACTORY (YOL) FACTORY (YOL)
01011900 31129999 10000012 FACTORY (COTY) FACTORY (COTY)
01011900 31129999 10000013 SITE SERVICES SITE SERVICES
01011900 31129999 10000014 SITE SERV (YOL) SITE SERVICES (YOL)
01011900 31129999 10000015 SITE SERV (COTY) SITE SERVICES (COTY)
01011900 31129999 10000016 PURCHASING PURCHASING
01011900 31129999 10000017 PLANNING PLANNING
01011900 31129999 10000018 PLANNING (YOL) PLANNING (YOL)
01011900 31129999 10000019 PLANNING (COTY) PLANNING (COTY)
35
Step 31: Copy all the data in this column (except for the heading).
Step 32: Access Sheet 2 of the LSMW worksheet and paste under SEARCH
TERM column.
Step 33: From the original worksheet, copy the FROM DATE column data (Not
the heading). This data should look like this: 01011900. This data must be
copied into the BEGDA column.
Step 34: From the original worksheet, copy the TO DATE column data (Not the
heading). This data should look like this: 31129999. This data must be copied
into the ENDDA column in the LSMW Worksheet.
Step 35: On the LSMW worksheet, in the TIMR6 column, enter a capital X in all
the fields
Step 36: On the LSMW worksheet, in the MARK column, enter a capital X in all
the fields.
Step 37: From the original worksheet, copy the SHORT column data (Not the
heading) (See arrow). This data must be copied into the SHORT column on the
LSMW spreadsheet.
36
FROM
DATE TO DATE OBJ ID SHORT LONG
01011900 31129999 10000000 THE COMPANY THE COMPANY
01011900 31129999 10000001 IT INFORMATION TECHNOLOGY
01011900 31129999 10000002 OPERATIONS OPERATIONS
01011900 31129999 10000003 TECHNICAL TECHNICAL
01011900 31129999 10000004 HR HUMAN RESOURCES
01011900 31129999 10000005 MKT (COTY) MARKETING (COTY)
01011900 31129999 10000006 MKT (YOL) MARKETING (YARDLEY)
01011900 31129999 10000007 FINANCE FINANCE
01011900 31129999 10000008 SALES & DIST SALES & DISTRIBUTION
01011900 31129999 10000009 BUS DEV BUSINESS DEVELOPMENT
01011900 31129999 10000010 FACTORY FACTORY
01011900 31129999 10000011 FACTORY (YOL) FACTORY (YOL)
01011900 31129999 10000012 FACTORY (COTY) FACTORY (COTY)
01011900 31129999 10000013 SITE SERVICES SITE SERVICES
01011900 31129999 10000014 SITE SERV (YOL) SITE SERVICES (YOL)
01011900 31129999 10000015 SITE SERV (COTY) SITE SERVICES (COTY)
01011900 31129999 10000016 PURCHASING PURCHASING
01011900 31129999 10000017 PLANNING PLANNING
01011900 31129999 10000018 PLANNING (YOL) PLANNING (YOL)
01011900 31129999 10000019 PLANNING (COTY) PLANNING (COTY)
37
Step 38: From the original worksheet, copy the LONG column data (Not the
heading) (See arrow). This data must be copied into the STEXT column in the
LSMW Worksheet.
FROM
DATE TO DATE OBJ ID SHORT LONG
01011900 31129999 10000000 THE COMPANY THE COMPANY
01011900 31129999 10000001 IT INFORMATION TECHNOLOGY
01011900 31129999 10000002 OPERATIONS OPERATIONS
01011900 31129999 10000003 TECHNICAL TECHNICAL
01011900 31129999 10000004 HR HUMAN RESOURCES
01011900 31129999 10000005 MKT (COTY) MARKETING (COTY)
01011900 31129999 10000006 MKT (YOL) MARKETING (YARDLEY)
01011900 31129999 10000007 FINANCE FINANCE
01011900 31129999 10000008 SALES & DIST SALES & DISTRIBUTION
01011900 31129999 10000009 BUS DEV BUSINESS DEVELOPMENT
01011900 31129999 10000010 FACTORY FACTORY
01011900 31129999 10000011 FACTORY (YOL) FACTORY (YOL)
01011900 31129999 10000012 FACTORY (COTY) FACTORY (COTY)
01011900 31129999 10000013 SITE SERVICES SITE SERVICES
01011900 31129999 10000014 SITE SERV (YOL) SITE SERVICES (YOL)
01011900 31129999 10000015 SITE SERV (COTY) SITE SERVICES (COTY)
01011900 31129999 10000016 PURCHASING PURCHASING
01011900 31129999 10000017 PLANNING PLANNING
01011900 31129999 10000018 PLANNING (YOL) PLANNING (YOL)
01011900 31129999 10000019 PLANNING (COTY) PLANNING (COTY)
38
Step 39: Save this spreadsheet as an xls. file
Step 40: Save spreadsheet as TXT file.
Step 41: Return the LSMW Workbench where the LSM Workbench: Object
Overview (Table) screen is displayed.
39
The maintain LSMW screen is displayed and the radio button next the Maintain
Source Fields is activated.
Step 44: Click once on the yellow line where the source field title is.
40
The Source Fields of Source Structure XXXX appears.
41
Step 46: Go back to the spreadsheet that looks like this:
42
Step 50: Save the screen and go back a screen with the Back button.
Step 51: Save the screen and go back a screen with the Back button.
43
The main LSMW screen appears again, with the Maintain Structure Relations
option highlighted.
44
6 Maintain Structure Relations
45
Step 3: Save this screen.
Steps 4: Click on the back button.
The LSM Workbench screen appears again, with the option “Maintain field
mapping and conversion rules” selected.
46
7 Maintain Field mapping & Conversion Rules
The LSM Workbench: Display field mapping and conversion rules screen
appears.
47
The screen changes to LSM Workbench: Change field mapping and
conversion rules.
48
A pop-up screen “Auto-Field Mapping: Settings” appears.
49
Another pop-up screen “Information” appears
50
The LSM Workbench screen appears again, with the option “Maintain field
values, translations, user-defined routines” highlighted.
51
8 Maintain Fixed Values, Translations, User-defined
Routines
52
9 Specify Fields
Step 1: Click on the radio button next to the option “Specify fields”.
53
The screen changes to LSM Workbench: Specify files (change).
Step 4: Click on the top option “Legacy data” (see arrow) and click on the Create
button.
54
A pop-up screen File on Frontend: Edit properties appears.
Step 5: Click on the search function button to access the txt file which
contains the master data.
Step 6: Description field: Give the file a description.
55
Step 7: Select the following fields:
Data for one source structure (table)
Tabulator
Field names at the beginning of the file
Record end indicator (text file)
ASCII
The screen should now look like this:
56
Step 10: Click on the Back button.
The LSM Workbench screen appears again, with the next option Assign Files
highlighted.
57
10 Assign Files
58
The screen changes to LSM Workbench: Assign files (Change)
59
The LSM Workbench screen appears again with the next option, Read Data,
selected.
60
11 Read Data
61
The LSM Workbench: Read data for XXXX appears.
62
The LSM Workbench screen appears again with the next option, Display Read
Data selected.
63
12 Display Read Data
64
The LSM Workbench screen appears again with the next option, Convert Data,
appears.
65
13 Convert Data
66
Step 4: Click on the Back button (x 2)
The LSM Workbench screen appears again with the next option, Display
converted data, selected.
67
14 Display Converted Data
68
The LSM Workbench screen appears again with the next option, Create batch
input session, highlighted.
69
15 Create Batch Input Session
Step 2: Tick the box next to “Keep Batch Input Session(s)?” (See arrow)
Step 3: Click on the execute button.
70
The main LSMW screen appears with the final option “Run Batch Input Session”
highlighted.
71
16 Run Batch Input Session
Step 2: Click on the grey box (see arrow) next to the top line. This option is now
highlighted. In the status column “New” is indicated. The latest batch session is
always posted in the top line.
72
Step 3: Click on the Process Session button.
Step 4: Click on the radio button next to “Display errors only”. (See solid arrow).
Step 5: Click in the box next to “Expert Mode”. (See dotted arrow)
Step 6: Untick the box next to “Dynpro Standard Size”.
73