Professional Documents
Culture Documents
LSMW Legacy System Migration Workbench
LSMW Legacy System Migration Workbench
TellMe
ShowMe
LetMe
HelpMe
LSM Workbench
PrepareMe
TellMe
ShowMe
LetMe
HelpMe
LSM Workbench
PrepareMe
TellMe
ShowMe
LetMe
HelpMe
What is LSMW?
LSMW
The LSM Workbench is a tool that supports data transfer
from non-SAP systems to R/3. The main functions of the
LSM Workbench are:
- Import data (legacy data in spreadsheet tables and/or
sequential files)
- Convert data (from source format to target format)
- Import data (into the database of the R/3 application)
Features of LSMW
Features:Integrated in R/3 and thus independent of individual platforms
business object as
Graphical representation
Import methods
Preferred methods of input are described in order of preference:
1. IDOCs
Advantages: Fast to load, easy processing, low programming
for standard IDOCs
Disadvantages: Good knowledge of IDOC processing
required, time consuming if changes have to be made to a
created IDOC
2. BAPIs
Advantages: Fast to load, easy processing, logical interface
for functional/end user based on the business processes
involved.
Disadvantages: Not always complete with all input fields of a
transaction
Import Methods
3. Standard/Direct Input
Advantages: Well tested method, Fast to load, easy processing.
Disadvantages: No enjoy transactions, not always complete with all
input fields of a transaction.
4. Batch Input
Advantages: Easy modifiable, all fields are available, easy reprocessing.
Disadvantages: Comparatively slow, to use new screens or tabs a
new recording has to be created, not easily usable for enjoy
transactions, dependant on user settings, difference in foreground
and background processing may occur.
LSM Workbench
PrepareMe
TellMe
ShowMe
LetMe
HelpMe
Getting Started
Here is an example showing the way to use the conversion tool LSMW in SAP. It
starts in the start-up screen of LSMW transaction and ends with a screen on
which the results of the conversion are displayed
If you want to create or change objects, make sure that you are working in
change mode. To activate this mode, click Change in the corresponding
processing step. Only this mode provides all functions required for changing
objects
Enter the transaction code (LSMW) or add this transaction to your favourites (right-click
with your mouse on the Favourites map in the start menu and choose Insert transaction,
type lsmw and press enter), since LSMW is an additional transaction, it is not available in
the standard SAP menu.
Step2 contd..
- At the initial screen, All Objects provides a list of all projects
created already.
- My Objects displays a list of all objects you created personally
- All Project Objects displays all objects of the selected project as
tree structure.
- Project Documentation displays any documentation written for the
individual pop-ups and processing steps. You can print the project
documentation out, send it and save it in various file formats.
- Select Documentation to enter your notes. After clicking, a popup
is displayed in which you can write down your personal
documentation.
Initial Screen
By clicking the button execute or pressing the F8
key on your keyboard you go to the object, you
selected.
By clicking the button create a new object for the
selected project and subproject with the name
entered in the object field is created.
By positioning the cursor on an entry and clicking
on the button documentation, you can add change or
delete comments.
Subproject
Object
Step 3 Execute
Process steps
Process steps
Choose
method for
input of data.
In the method to
input data from a
BAPI, one needs
to select the
Business Object
and the
corresponding
method.
User Menu: Here you can make an individual selection from the displayed processing steps.
Pressing button Main steps automatically activates all processing steps mandatory for a
data conversion.
Numbers On or Off: You can activate or deactivate the numbering of the individual
processing steps.
Double click = Display or Double click = Change: Here, you can determine whether display
mode or change mode is selected by double clicking.
Object overview: Displays all object information for the selected object.
Information includes object information, source structures, target structures, structure
relations, source fields, target fields, field mapping.
Action log: Displays a detailed overview for all processing steps already carried out. You
can reset the action log via the menu path Extras -> Reset Action Log. This action is stored
with a reference to the user and the date.
In the step Maintain Source Structures you define the structures of the object
with name, description and the hierarchical relationships:
Click on Change button. You can now define, change, reassign or delete
structures. All these functions are available via pushbuttons.
When you define more than one structure, a popup is displayed querying the
relations between the structures: equal/subordinate?
Note: For migration objects created via transaction recording, you may only
define one structure per recording, since only one flat target structure per
recording is available.
In the step Maintain Source Fields, fields are created and maintained for the
source structure defined in the preceding step
Use source fieldnames with the same names as the target fieldnames as much as
possible, because it allows you to use the auto-field mapping function in step 5
Maintain field mapping and conversion rules.
3. Copy Source Fields from Other Sources : By selecting Copy Source Fields displays
the following options:
- Upload (Text separated with Tabs) The source field description is stored in a text file
the columns of which are separated by tabs
- Copy from Another Object Source field can be copied from source structure of
another object
- Copy from Data Repository Source field can be copied from a structure in SAP Data
Repository
- From Data File (Field Name in 1 Line) - Source fields can be copied from a data file
which should be stored on the PC in the form of text separated by tabs and contain the
fields in the first line.
In the step Maintain Field Mapping and Conversion Rules, you assign source
fields to target fields and define how the field contents will be converted
All fields of target structure, which you selected in the previous step, will be
displayed.
For each target field the following information is displayed:
- Field description
- Assigned source fields (if any)
- Rule type (fixed value, translation etc.)
- Coding
Layout determination
The layout of the Maintain field mapping screen
can be determined. i.e. we can decide whether the
Global data, Technical fields should be displayed
assigned coding
carrying out field
contents conversion
using a translation
table
The target
field is
assigned a
fixed
value
The data is
transferred
using
ABAP
command
Move
By clicking this button, after clicking once on a target field (in blue), LSMW
displays the list of available source fields, by choosing one the standard rule move is used
to link the 2 fields
By clicking this button, after clicking once on a target field (in blue), the source
field is deleted from the target field
By clicking this button, the display of this step can be changed. There are
possibilities to show or hide several aspects of the field mapping
By clicking this button, a syntax check is performed for the conversion program,
generated from the field mapping
These 3 buttons, which are available for every target field, display the help
function (I), the possible entries (?) and the last one displays the documentation in LSMW
In the step Assign Files, you can assign the file name in step 7 declared as source file to
the target structure defined in step 2 .
If you click on the Assign File button, after clicking once on a target structure (in
yellow), LSMW displays the list of available source files.
If you click on the Delete Assignment button, after clicking once on a target
structure (in yellow), the source file is deleted from the target structure.
In the step Read Data, the file specified in previous step is, as linked to the
target structures in . Even though you can select a range of transaction numbers,
the whole file is being read, only the amount of transactions written is
influenced. So for tests it is easier to read all data and convert only a certain
range, because in that step the program stops after finishing the range.
In the step Display Read Data, you can display the read data, choosing to show
all read data or an interval as shown above. The data are shown as the source
structures, in case more source structures are being used in one transaction, the
hierarchy of the transaction is displayed by the use of a different colour legend.
By clicking on one of the lines, you proceed to the field level of the line, where
you can check the read data as shown below.
In the step Convert Data, works like the step read data, but uses the conversion
program instead of the read program. You can define a range of transactions to be
converted, at the end of this range the conversion program stops running.
Note: It is recommended that when you load big amount of data in production,
load the first 10 records so that you can check and change when necessary.
In the step Display Converted Data, you can display the converted data,
choosing to show all converted data or an interval as shown above. The data are
shown as the target structures, in case more target structures are being used in
one transaction, the hierarchy of the transaction is displayed by the use of a
different colour legend. By clicking on one of the lines, you proceed to the field
level of the line, where you can check the converted data as shown below.
Process Step
After the step Display Converted Data the exact content of the next steps may differ,
depending on the import technique that you have chosen in step 1. The steps displayed by
the program for the different import techniques are:
LSM Workbench
PrepareMe
TellMe
ShowMe
LetMe
HelpMe
1.
2.
1.
2.
FLAT_FILE
Recording
overview
key
Select at
least one
area of
processing .
Default values
The fields
specified in
the recording
are displayed
Direct Input
Fields part of
the structure
available with
Standard
Object 0050
LSM Workbench
PrepareMe
TellMe
ShowMe
LetMe
HelpMe
HelpMe
Object Overview
Complete overview of Data Migration object can be obtained from the Menu:
Extras Object Overview
Overview in List format
Overview in Table format
HelpMe
Object Overview cont
Overview in List format
HelpMe
Object Overview cont
Overview in Table format
HelpMe
Settings for IDoc inbound processing
This can be obtained from the initial LSMW screen Menu: Settings Idoc
Inbound Processing
Specify the following:
File/tRFC port
Partner Type
Partner Number
These can be maintained by clicking on the respective buttons on the right.
Click on the Activate IDoc Inbound Processing button after entering all the
details above.
HelpMe
To transport data migration objects
This can be done in 2 ways:
By generating a change request or
By import/export of a project from one system to another
From the initial LSMW screen Menu: Extras
See screen print below
Help Me
Problems
Solutions
Recording
Fields cannot be seen in the field
mapping after a recording has been
created.
Help Me
Problems
Solutions