LSMW
LSMW
Workbench
lsm@sap.com
BY
What is
LSMW
?
What is data migration?
– Data transfer
• source: non-SAP systems (“legacy systems”)
• target: SAP R/3
data
data fieldmapping
preparatory data import on R/3
in and
steps data
legacy rules base
system
LSMW
What is LSMW (Legacy System Migration
Workbench) ?
LSMW
Organisational
– Customizing of the R/3 applications must be finished
– Know how in LSMW (1-2 days)
– Knowledge of the source data (Which fields means what?)
– Knowledge of the R/3 application (Which fields means what?)
– technical know how
• R/3 basis (batch input processing, IDoc processing)
• ABAP
System requirements
–Current release – LSMW 4.0 ( AUG 2004).
–for LSMW 1.6 (July 1999): R/3 release 4.0x, 4.5x or 4.6x
–for LSMW 1.0 (Sept. 1998): R/3 release 3.0F or
3.1x
What kind of data can be read?
– Data from spreadsheet-based applications
• MS Excel, MS Access, etc.
– Data from host systems on R/3 application
servers
– Fixed record length, end of record indicator
or hexadecimal length field at the
beginning
– With and without separator
Which data can be migrated via LSMW?
LSMW
look like?
What LSMW can do
– organize the data migration project
• project, subproject, object
– document the data migration project
– define data conversion per object
• select object attributes
- eg: batch input,direct input ,bapi, idoc
• define source
– structure of the source data (segments, fields, file attributes
etc)
• define relations
– between source and target (SAP R/3) on record level and on
field level
• define rules
– transfer of field contents
What LSMW can do
– read data (technical conversion)
– convert data (conversion of values)
– import data
• with a standard import technique
– batch-input
– direct input
– method for a business-object (“BAPI”)
– IDoc technique
• this means:
– LSMW does not write data into the databases of the
applications
– precondition for the use of LSMW is the availability of a data
transfer interface in the R/3 application
What LSMW can do
– transport the data migration object
• via download and upload
• via R/3 transport system
LSMW
. Reading data files from an external system into an internal LSMW format
. Converting the data, that is, formatting and assigning the data to the required structures
. Calling the standard transfer program or BAPIs or IDocs to perform the data transfer into the
R/3 tables.
The LSMW generates two executable ABAP programs from the structure definitions
and the conversion rules –
LSMW
. Standard transfer programs used with batch input, call transaction, and direct input.
. Data transfer using IDocs.
. Data transfer using BAPIs.
. Creation of a recording using the transaction recorder and generation of a batch input session.
You can only create one structure per recording for migration objects created
through a recording of a transaction as there is only one flat target structure
available per recording.
LSMW
Supported Releases
Legacy data
on PC
Read data Read data
Structure Legacy data
relations on application
server
R/3 Standard
Batch Input
Conversion processing
rules
Converted Direct Input
data processing
IDoc inbound
processing
Batch input
Direct input