lsmw_whitepaper

21
Legacy System Migration Workbench Version 1.0 A whitepaper by Sanjoy Roy document.doc Page 1 of 21

Upload: aniruddha-jha

Post on 12-Jan-2016

4 views

Category:

Documents


0 download

DESCRIPTION

LSMW_whitepaper

TRANSCRIPT

Page 1: LSMW_whitepaper

Legacy System Migration Workbench

Version 1.0

A whitepaper by

Sanjoy Roy

document.doc Page 1 of 18

Page 2: LSMW_whitepaper

Table of Contents

Legacy System Migration Workbench_________________________________________1

Introduction_____________________________________________________________3

LSMW__________________________________________________________________4

System Requirements__________________________________________________________4

Features of LSMW____________________________________________________________4

Constraints__________________________________________________________________5

LSMW – a closer look_____________________________________________________6

Main Design steps_____________________________________________________________6Maintain Object Attribute___________________________________________________________8Maintain Source Structure__________________________________________________________10Maintain Source Fields_____________________________________________________________11Maintain Structure relation_________________________________________________________12Maintain Field Mapping & Conversion Rules__________________________________________13Maintain Fixed Values, translations, user-defined Routines_______________________________15Specify Files______________________________________________________________________16Assign Files_______________________________________________________________________17

Program Execution__________________________________________________________17

Periodic Data Transfer_______________________________________________________17

Way forward________________________________________________________________18

document.doc Page 2 of 18

Page 3: LSMW_whitepaper

IntroductionDuring software implementation, data transfer and the set-up of periodic/permanent interfaces is one of the most costly and time-intensive tasks. Several market studies have shown that, on average, these issues account for 20% of implementation costs. In individual cases it can be many times that amount.

To unleash the full potential of the SAP solution and to drastically reduce the substantial need for individual programming to convert data, SAP offers the Legacy System Migration (LSM) Workbench. The LSM Workbench is a SAP tool that facilitates the process of data transfer from non-SAP system (also called Legacy system) without additional programming to do data conversion. At the push of a button, you can define the rules for the conversion. The LSM Workbench then generates an ABAP program and thus supports an important step in the process of data transfer. It is a cross-application component (CA) of the SAP R/3 System and, therefore, is independent from the platform. The tool has interfaces with the Data Transfer Center and with batch input and direct input processing in R/3. The tool can be used in each of the different R/3 releases.

By combining the Data Transfer (DX) Workbench and the Legacy System Migration (LSM) Workbench in SAP Basis component Release 4.6, SAP has made substantial progress towards tackling one of the most costly and time-consuming implementation activities - the migration of legacy systems and the data transfer from ERP systems that are being replaced. Data migration with the DX Workbench and the LSM Workbench guarantees maximum quality and consistency of your data in the SAP business solution. When data is imported, the system performs the same checks as it does during online entry. The update in your database is performed through the Standard Batch Input Program, Standard Direct Input Program and BAPIs. So far, the LSM Workbench has been successfully used in over 500 projects for the migration of legacy system data into the SAP business solution.

In this document, the LSM workbench is discussed.

document.doc Page 3 of 18

Page 4: LSMW_whitepaper

LSMW

System RequirementsFor LSMW 1.6 (July 1999): R/3 Release 4.0x or 4.5xFor LSMW 1.0 (September 1998): R/3 Release 3.0F or 3.1x

Features of LSMWInstead of individual tables or field contents, the tool transfers complete business data objects (also called object class) such as Material Master, Supplier Master data. A migration object class is a unit combined from the business point of view, which can be used to transfer the data of all the legacy systems defined in the LSMW to the R/3 System. The migration object class comprises the R/3 structures as well as the program used for data import. The batch and direct input technique is used to ensure consistency of data. For each migration object, a batch or direct input program has to be available in the SAP R/3 System.

The LSMW comprises the following main functions: Definition of the legacy system structures and fields Definition of object dependencies and assignment of conversion rules

The structure and field relationships between the legacy system and the R/3 System are defined in data mapping. The way how data is being processed during migration is determined by the conversion rules.

Data conversionFrom the object dependencies, the LSMW generates conversion programs that translate the legacy system data.

Data import Batch or direct input is used to import the data to the SAP R/3 System.

The following additional functions are available: Spreadsheet interface

Legacy system data in spreadsheet format can be processed. Host interface

Legacy system data in a structured data format (that is, with record identifiers and correct sequence) can be processed.

Batch input recorder The LSMW allows you to use the batch input recorder (shipped with the SAP R/3 standard system) in order to create user-specific classes of migration objects.

Automatic check functionsThis function generates and performs value checks against check tables and fixed values specified in the Data Dictionary.

document.doc Page 4 of 18

Page 5: LSMW_whitepaper

ConstraintsThe LSMW supports a single and complete transfer of data (initial data load) and also offers a restricted support of permanent interfaces. Thus, a periodic transfer of data is possible. It, however, does not include any functions for monitoring of permanent interfaces. The tool does not support any data export interfaces (outbound interfaces).

document.doc Page 5 of 18

Page 6: LSMW_whitepaper

LSMW – a closer look

In this section, LSMW is explored from user’s point of view and all major steps discussed. To launch the tool, run the transaction LSMW from SAP.

Main Design stepsOnce you open any existing / new object, the following screen is shown. It details the major steps of completing & running a LSMW object. Design steps are from 1 to 8. Execution steps are from 9. Before you may run the read & convert program, each of design steps is to be finished one by one.

document.doc Page 6 of 18

Page 7: LSMW_whitepaper

The steps viewed can also be customized using the option Extras > Personal Menu. On selecting and step and closing the window, the step screen (shown above) will change. A few of these options however depend on further attributes set/selected in subsequent steps. Normally the main steps are shown and it can be reset by the button shown in the figure. Therefore the step number shown in the previous figure is subject to change.

document.doc Page 7 of 18

Page 8: LSMW_whitepaper

Maintain Object AttributeIn this step, you configure the basic attributes of data load – e.g. one time or periodic data transfer, which object to load (Vendor Master, Material Master) and its method. SAP provides all the fundamental objects and their associated programs either Direct Input or Batch Input. In few objects, one or more options may be available and you may need to choose which one to go for. Further, ‘Intermediate Document’ (Idoc) may also be used. If the R/3 System does not provide any suitable batch or direct input program, you can use the batch input recorder to create a user-specific class of migration objects.

A few objects provided by SAP. The full list may be viewed from the drop-down help.

document.doc Page 8 of 18

Page 9: LSMW_whitepaper

If Idoc is to be used, the information of File Port, Partner type & Partner Number must be provided. The configuration screen may be invoked from the menu Settings > Idoc Inbound Processing in the initial screen of LSMW.

document.doc Page 9 of 18

Page 10: LSMW_whitepaper

Maintain Source StructureSAP has comprehensive documentation of the load programs (Direct or Batch Input) how the information is to be structured in one or more levels for the business object under consideration. The Legacy data must be organised in similar fashion in the input file. Data for more that one structures may be available in a single file. Before completing the step, it is recommended to go through the SAP documentation. The source/legacy structures to be mentioned here are only identifiers and do not need to reside in the database dictionary.

document.doc Page 10 of 18

Page 11: LSMW_whitepaper

Maintain Source Fields

In this step, the source/legacy fields must be entered in each structures. You may use any of the following copy facilities, otherwise, the source field may also be added individually.

In case of multiple structures in the same file, you need to set the value of record type identifier (STYPE) in this step.

document.doc Page 11 of 18

Page 12: LSMW_whitepaper

Maintain Structure relationThe source/legacy structures must be related to the SAP R/3 structures.

document.doc Page 12 of 18

Page 13: LSMW_whitepaper

Maintain Field Mapping & Conversion RulesIn this step, source/legacy fields in each structure are assigned to R/3 fields. It may be done individually for each R/3 field, which being time-consuming for complex structures, you may use automatic mapping utility (Extras > Auto-Fieldmapping).

You specify the conversion rule to be used to convert an LS field into the corresponding R/3 field. For this, you can use predefined conversion rules or create your own conversion rules in the editor. You may use the buttons ‘Initial’, ‘Constant’, ‘Move’ & ‘Fixed Value’ to assign different values. You may also assign different rules by using the button ‘Rule’.

document.doc Page 13 of 18

Page 14: LSMW_whitepaper

On completion of this step, SAP generates the conversion program. Menu Extras > Display Variants will give further details of the generated programs in the LSMW screens. For further flexibility, you can create global data if you need R/3 table contents and/or variables for the conversion rules and create your own routines.

document.doc Page 14 of 18

Page 15: LSMW_whitepaper

Maintain Fixed Values, translations, user-defined RoutinesIf it is needed to convert a number of legacy fields in a particular way before assigning it to the R/3 field, the conversion rule may be written in the form of a routine and may be re-used.

It will ask for number of parameters:

You may now go back to the previous step and assign these routines to the appropriate fields.

document.doc Page 15 of 18

Page 16: LSMW_whitepaper

Specify FilesHere the file name for the legacy data is to be specified. The file can reside in either user PC or in the Application Server. For background processing, the input file must be located in the Application Server. Access to presentation server files is only possible when you are working online.

For last two (Read & Convert Data), file names are defaulted by SAP and are respectively <Project>_<SubProject>_<Object>.lsmw.read and <Project>_<SubProject>_<Object>.lsmw.conv. You may however change them but it is not recommended.

File Properties:

document.doc Page 16 of 18

Page 17: LSMW_whitepaper

Assign FilesHere the source structures are mapped to the files.

Program Execution

All the design/configuration steps are now over. The programs for Read & Conversion are now generated by R/3. You may view these but SAP does not allow changing the programs directly. You can however modify and regenerate the programs from within the LSMW. The programs are /1CADMC/SAP_LSMW_READ_<8 digit identifier> and /1CADMC/SAP_LSMW_CONV_<8 digit identifier> respectively, where <8 digit identifier> is generated by the system.

Next steps are prepare the legacy source file - There are various ways of creating the input file for the

conversion program from legacy system data. The simplest way is to create a tab delimited text file. If the migration object has more one structures, each will be identified by distinct value of record type identifier (STYPE). This field exists in all the LS & R/3 structures. It is also possible to combine different files during the data import. If, for example, the data for SAP routing originates in several different files (such as one for the routing, one for associated texts) in your legacy system, you can use the LSM Workbench to easily merge such files into one source file during import.

read the legacy data from file using the read program – an intermediate file (*.read) is created

convert the data using the conversion program which converts the "intermediate file" into the input file for the batch or direct input program (second "intermediate file" - *.conv). The conversion program expects a sequential file stored on the application server as input, which has to meet certain format rules. These rules are defined by the file description and the conversion rules for data migration.

Finally the corresponding Batch or Direct Input program is to be executed. Sometimes these load programs offer test run. Direct Input programs may sometimes use logical file. Logical Path & File may be created using the transaction FILE.

Periodic Data Transfer

If the object attribute is periodic, it can be run in a periodic schedule. The underlying R/3 program is /SAPDMC/SAP_LSMW_INTERFACE. Only point to note here is that the input legacy file must reside in the Application Server.

document.doc Page 17 of 18

Page 18: LSMW_whitepaper

Way forward

The market study shows that the LSMW in conjunction with the Data Transfer (DX) Workbench can reduce the effort for data migration by 30% or more.

The LSM Workbench is a learning tool. The experience gained in other implementation projects is continually fed into the LSM Workbench, where it directly benefits all the users. Using the export/import function of the tool, you can easily gather the conversion rules and all other data related to conversion objects in one central repository and reuse this information in other projects.

document.doc Page 18 of 18