Professional Documents
Culture Documents
Legacy System Migration Workbench (LSMW) : Satish Kumar Gunda
Legacy System Migration Workbench (LSMW) : Satish Kumar Gunda
LSMW
Author
2007/Q3
satish.gunda@yahoo.com
LSMW
Batch input
Direct input
BAPIs (Business Application Programming Interfaces)
IDocs (Intermediate Documents)
The import technique to be used in an individual case depends on the business object.
2007/Q3
satish.gunda@yahoo.com
LSMW
Data can be imported from Legacy Data on the PC or from the Legacy Application Server, The imported data will be converted to
SAP format, to convert the data we create
Structure Relationships,
Field Assignments and
Conversion Rules,
The, converted Data can be exported in SAP through
Batch Input Processing
Direct Input Processing and
Inbound IDoc Processing
2007/Q3
satish.gunda@yahoo.com
LSMW
The main screen of LSMW provides wizard-like step-by-step tasks. To complete your data conversion, you need to execute these
steps in sequence. Once a step is executed, the cursor is automatically positioned to the next step.
2007/Q3
satish.gunda@yahoo.com
LSMW
On the initial screen, you can create a new project, corresponding subprojects and objects via Edit -> Create new entry.
Project
: An ID with a maximum of 10 characters to name your data transfer project. If you want to transfer data from
several legacy systems, you may create a project e.g. for every legacy system.
Subproject
Object
In 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 objects of the project 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. The documentation function is additionally available under Administration and Recordings in the first seven steps
of data migration.
Below, you find an example for a project with several subprojects and objects. This representation is displayed by pushing the
button All objects of the project:
Note that these steps may look different depending upon your Personal menu settings. You could make step numbers visible by
Numbers on icon or hidden by Numbers off icon. You can execute a step by double-clicking on the row. Toggle icon
Doubleclick=Display or Doubleclick=Edit, makes the step in display mode or change mode.
2007/Q3
satish.gunda@yahoo.com
LSMW
2007/Q3
satish.gunda@yahoo.com
LSMW
2007/Q3
satish.gunda@yahoo.com
LSMW
2007/Q3
satish.gunda@yahoo.com
LSMW
might get a message such as Target structure BKNA1 needs a relation to a source structure.) Even though you dont want to
update any fields in these structures, you NEED to create a relationship with source structures. In all, you need to create
relationship for four target structures. Create relationship between source structures XD01 with these target structures with icon
.
Create Relationship
Keep Cursor on these four target structures and click on icon Create Relation and structure relations are maintained
2007/Q3
satish.gunda@yahoo.com
LSMW
2007/Q3
satish.gunda@yahoo.com
10
LSMW
Assign rules:
Initial:
Move:
This deletes the coding assigned to the target field. In addition, source fields assigned to the target fields are removed
as well. Depending on the object type, the target field is assigned the following value:
For standard batch input/standard direct input: Nodata characters (determined e.g. in session header BGR00,
BI000)
For BAPIs, IDocs: Clear field (i.e.: character field blank; numeric field '00...0')
The data is transferred using ABAP command "Move". For source fields that are not of type 'C' or 'N', this means:
Packed field
WRITE...TO...
e.g. 01.10.1998
Date field
Popup to select
- internal format
- user format
-
Amount field
2007/Q3
YYYYMMDD
satish.gunda@yahoo.com
11
LSMW
source fields: all source fields available are displayed for selection
XFIELD: This is a special function for processing of IDocs. In some cases an X-structure exists in addtion to the data transfer
structure (where the values for the import can be found); the fields of this X-structure have to be filled with X or blank to decide if
the corresponding field in the data transfer structure should be transfered or not.
2007/Q3
satish.gunda@yahoo.com
12
LSMW
Choose radio button Constant to enter value XD01 transaction code. In the same way select the fields that you want to maintain
constant values and give values, like company code, currency, etc., Here I have given many constant values like Sales
Organization, Distribution Channel, Division, Customer A/c Group and many other. But I have selected only 7 fields that are
variable from customer to customer, for which we have created in source field. So to assign a source field, keep the cursor on the
filed like NAME1 and select Source Field
and select NAME1. And in the same way for all the 7 fields we have
maintained the source. Here exactly match each field with its source field.
2007/Q3
satish.gunda@yahoo.com
13
LSMW
Constant Values
(appear in white color
lines)
2007/Q3
satish.gunda@yahoo.com
LSMW
2007/Q3
satish.gunda@yahoo.com
15
LSMW
2007/Q3
satish.gunda@yahoo.com
LSMW
2007/Q3
satish.gunda@yahoo.com
17
LSMW
2007/Q3
satish.gunda@yahoo.com
18
LSMW
2007/Q3
satish.gunda@yahoo.com
19
LSMW
2007/Q3
satish.gunda@yahoo.com
20
LSMW
2007/Q3
satish.gunda@yahoo.com
21
LSMW
2007/Q3
satish.gunda@yahoo.com
22
LSMW
2007/Q3
satish.gunda@yahoo.com
23
LSMW
2007/Q3
satish.gunda@yahoo.com
24
LSMW
2007/Q3
satish.gunda@yahoo.com
25
LSMW
2007/Q3
satish.gunda@yahoo.com
26
LSMW
Then select any line, and then the screen appears like below.
2007/Q3
satish.gunda@yahoo.com
27
LSMW
2007/Q3
satish.gunda@yahoo.com
28
LSMW
2007/Q3
satish.gunda@yahoo.com
29
LSMW
2007/Q3
satish.gunda@yahoo.com
30
LSMW
2007/Q3
satish.gunda@yahoo.com
31
LSMW
Then select
2007/Q3
satish.gunda@yahoo.com
32
LSMW
In my CUSTOMER project I have two Subprojects XD01 and XD02, I can export the entire subprojects, but here in our example
we will not export XD02 Update Name and Search term subproject, to deselect it, click on the long text of Subproject,
will deselected. Now go to Export Rules on Menu bar and select Export (F8). System proposes with the
immediately this
name LSMW_GSK_CUSTOMER.txt, save the file on your system. I have saved at C:\LSMW_GSK_CUSTOMER.txt. U will get the
success message. Now your project is exported including Subproject.
2007/Q3
satish.gunda@yahoo.com
33
LSMW
Importing Project
To import Project Select Extras on menu bar and select Import (Ctrl+F9)
. And
And browse to the location where we have saved the file, mine is at C:\LSMW_GSK_CUSTOMER.txt. Then select
select/deselect subprojects for importing data by select/deselecting the long text, after u finish with selection press F7 or go to
Extras and select Import. The Project and subproject selected will be imported.
2007/Q3
satish.gunda@yahoo.com
34