SlideShare a Scribd company logo
1 of 25
LSMW
(Legacy System Migration Workbench)
Advantages of using LSMW
• Simple data transfer tool.
• Requires no or minimum coding.
• Can be carried out by even Functional
consultants having no/min knowledge of ABAP
Coding
• Standard tool provided by SAP itself, hence
fully compatible with all SAP Transactions.
• Can be used to upload data from non SAP
system into the SAP R3 system.
• The Legacy Systems Migration Workbench (LSMW) is an R/3-based tool that supports one-
time and periodic transfer of data from non-SAP systems (legacy systems) to R/3.
• This easy-to-use tool supports the conversion of data from the non-SAP system that can
then be imported into the R/3 System using batch input, call transaction, direct input, BAPIs,
or IDocs.
• In addition, the LSMW provides a recording function, which you can use to generate a data
migration object from a create or change transaction.
© SAP AG 1999
CT
BAPI
DI
IDoc
 Available as an add-on
 One-time and periodic data transfer from external system to
R/3
 LSMW uses standard technologies
LSMW: Characteristics
BI
• The core LSMW functions are:
• 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.
©SAP AG 1999
 Read data
 Spreadsheet tables
 Sequential files
 Convert data
 Import data
LSMW: Core Functions
Data transfer
• The LSMW reads the external files and converts the contents into the
corresponding target structures or fields, producing an output file in the
required format. This output file can then be input to the appropriate data
transfer program.
©SAP AG 1999
SAP-DB
Conversion
External
format
SAP format
Definition
The LSMW Concept
SAP
Data
transfer
• To read these files, you must define the structure of the file (source structure).
• The file contents are then read into an internal LSMW format and stored as an LSMW file.
• The next step is to define structure relationships and field assignments. These specify the
mapping of the source structure fields to the target structure fields.
• Using these definitions, the contents of the LSMW file are converted to the target structure
and can then be transferred using the specified transfer method.
© SAP AG 1999
Conversion
• Structure Relationships
• Field Assignments
• Conversion Rules
On PC
Application
Server
• Source Structure Definitions
LSMW Concept
SAP
• The LSMW generates two executable ABAP programs from the structure
definitions and the conversion rules - a READ program and a CONVERSION
program.
© SAP AG 1999
Conversion
program
• Structure relationships
• Field assignments
• Conversion rules
• Source structure definitions
Generated Programs
Read
program
• The LSMW supports the following transfer methods:
• 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.
© SAP AG 1999
SAP Record
Layout
Structure
SAP IDoc
Structure
Flat SAP
Structure
Standard
Transfer
Program
Recorder
BAPI
LSMW Transfer Procedure
IDoc
• To start the LSMW, call transaction LSMW.
• On the initial screen, you can create related subprojects and objects by choosing Create new
projects.
• Project: Maximum of 10 characters to identify your data transfer project. If you want to
transfer data from several external systems, you can create a project for each external
system.
• Subproject: Maximum of 10 characters; used as an additional subdivision.
• Object: Maximum of 10 characters; used to identify a business data object.
© SAP AG 1999
Starting the LSMW
Transaction LSMW
Initial Screen:
LSMW organized by:
You must specify a name
and short description for
each of these.
Project
Subproject
Object
 Project
 Subproject
 Object
© SAP AG 1999
Project Overview
 All Objects
 Overview of objects contained in system
 My Objects
 Overview of objects the user created
 All Objects in a Project
 Overview of objects in the current project
• A total of 26 different work steps are provided. The work steps displayed are
dependent on the selected object.
• You can create a customized personal menu of the work steps. In the personal
menu you can select a subset of the 26 work steps you want to display.
©SAP AG 1999
Define object attributes
Define source structures and source fields
Define structure relationships
Define field mapping and conversion rules
Read data
Convert data
Import data
The Main Steps
• Before you start using the LSM Workbench, create a “mapping on paper”
for the object. For this, create and print an “object overview”.
• At this time, the overview only contains the design and description of the
R/3 structures and the fields they contain. You can use this overview to
help you map these target structures and fields to the corresponding
source structures and fields.
© SAP AG 1999
EXCEL List
STYPE Record type CHAR 1
TCODE Transaction code CHAR 20
KUNNR Customer number CHAR 10 a3ktn2 10 M
BUKRS Company code CHAR 4
Field Length Conversion .........
SAP Fields
Field Description Type Length
Non-SAP Fields
Conversion on Paper
• The file with the data from the external system must be imported by the
LSMW. Therefore you have to define the structure of this data in the LSMW. It
is called the definition of the source structure.
• The source structure may be structured in different ways.
• If the source structure is a flat structure, each line in the file has the same
structure. For the definition the structure name and the field names as well as
the technical characteristics of the fields must be defined.
© SAP AG 1999
File with flat structure:
Structure A
Field 1 Field 2 Field 3
Definition contains:
 Structure name
 Field name
Flat Source Structure
• In this step, you define the object structures, including name, description,
and hierarchical relationships.
• In the dialog box, choose Change. You can now choose to create new
structures, or change, rearrange, or remove these. Use the relevant
pushbuttons to execute these functions.
©SAP AG 1999
Source Structures
  HEAD
POSI
Document header
Document position
 Object attributes
Name of the source structure
 Description of the source structure
Maintain Source Structures
• In this step, you create and maintain fields for the structures
created in the previous step.
© SAP AG 1999
Object attributes
 Field name
 Field ID
 Field length
 Field type
Source Fields
  HEAD
SET1 C(001) Record ID
REF_NO C(009) Reference number
  POSI
SET2 C(001) Record ID
DATE DDMY(010) Posting date
:
:
Maintain Source Fields
• The structure relationships define the relationships between the source and target
structures.
• To set structure relationships, place the cursor on a field in the R/3 structure or
target structure. Choose Relationship. A dialog box appears with a list of the
source structures you have created. Select a structure from this list.
• If you want to change the relationship, you must first delete the existing
relationship using the relevant pushbutton.
• A check function is available to check the structure relationships for errors.
Messages for this check are displayed in the status bar (error message or “No
structure relationship errors found”)
© SAP AG 1999
Structure Relationships
  BGR00 Batch input structure for session data <<<<
  BBKPF Document header .... <<<<
  BBSEG Document segment .... <<<< POSI
BWITH .....
Object Attributes
Source structure assignment
SAP
Record
Layout
Structure
SAP IDoc
Structure
Flat SAP
StructureBAPI
Maintain Structure Relations
HEAD
HEAD
• In this step, you assign source fields to the target fields and specify how the field
contents are to be converted.
• The following information is displayed for each target field:
• Field ID
• Any source fields assigned
• Rule type (default value, translation, and so on)
• Code
©SAP AG 1999
Field mapping and rules
  BGR00
Fields
  BBKPF
  Fields
BLDAT Date
BUKRS Company code
Field Information
Documentation
Valid values
Navigation in the ABAP Dictionary
Maintain Field Mapping and Conversion Rules
• Assigning source fields:
To assign a source field, place the cursor on a target field in the tree structure and
choose Assign source field. A list of available source fields appears, from which you can
select the desired source field by double-clicking it.
• Deleting source field assignments:
To unassign a source field, place the cursor on a target field in the tree structure and
choose Remove source field. If only one source field is assigned, this assignment is
removed. If more than one source field is assigned, a list of all assigned source fields
appears; to select the desired field, double-click it.
• After you have assigned the source fields, you define the conversion rules. The default is
“MOVE”. Various standard techniques are available by choosing the relevant
pushbutton.
©SAP AG 1999
 Sequence
1. Assignment of source field to target field
2. Definition of conversion rule
1.
2.
Source Field Assignment
• In this step you specify all the files that are to be used in the following
steps:
• Your legacy data on the PC and/or R/3 server
• The file for the imported data
• The file for the converted data
© SAP AG 1999
 Object attributes
 Specify paths and files
Conversionon PC
Application
server
File name
File name File name
File name
Specify Files
• The system proposes a name for the file containing the imported data.
You can change the name if you wish to.
© SAP AG 1999
Read Data File
File transprBC420_46_D_CT_01.lsmw.read
File name: <path><file name>.lsmw.read
 Specify paths and file names
File name = Project name + subproject name + object name
• You have the following options with the function “Read data":
• If you want to process all the data belonging to an object, execute the
function.
• If you simply want to migrate a part of the dataset, you can limit the
amount of data that you migrate in the field
“Standard selection parameters”. Select your data in “Transaction
number” “from ... to ...".
© SAP AG 1999
 Object attributes
 Specify which data is to be imported
 Amount fields
Amount fields are converted into decimal format
(with decimal point)
 Date values
Date fields are converted into the internal format
(YYYYMMDD)
Read Data
Amount fields -> 1234.56
Date values -> YYYYMMDD
• In this step you can display a part of or all of the imported data in a table. By
clicking on a table row (or selecting Field contents) you can display all the
information in this row.
• With the function Change display you can switch between one line and multiple
line display.
© SAP AG 1999
1 DOCUMENTS HBC100000119990730 07 31.07.199930.07.1999DM
2 POSI P0004S100000 3410.50 1740.89 Info 1
3 POSI P0005H113100 3005.50 1536.41 Info 2
4 POSI P0005S110000 405 204.48 Info 3
5 DOCUMENTS HBC100000219990730 07 31.07.199930.07.1999$
6 POSI P0004S100000 3420.50 3206.89 Info 1
7 POSI P0005H113100 3010.50 2830.77 Info 2
8 POSI P0005S110000 410 376.12 Info 3
1 HEAD HBC100000119990730 07 3107199930071999DM
2 POSI P0004S100000 3410.50 1740.89 Info 1
3 POSI P0005H113100 3005.50 1536.41 Info 2
4 POSI P0005S110000 405 204.48 Info 3
5 HEAD HBC100000219990730 07 3107199930071999$
6 POSI
7 POSI
8 POSI
Display Read Data
Field name Field text Field value
SET1 Record indicator H
REF_NO Reference number BC1000001
DOC_DATE Doc. date 30071999
TYPE TYPE 07
CURR_KEY document currency DM
 Display read data
 By record
 By field
• The imported data is converted into the target file by the using the defined
rules.
• If you do not select any data, confirm by executing the process. Otherwise
select the data in “from..…to..." in the “Transaction number”. You can also
select several transaction numbers.
© SAP AG 1999
Generated
conversion
program
Field assignments
Transactions read: 5
Records read: 20
Transactions written: 5
Records written: 21
Convert Data
Note:
Amount fields (AMT1...) for standard
transfer programs are formatted
according to user-defined settings.
Date fields are NOT formatted - they
are always displayed in format
YYYYMMDD
• In this step, you can display part or all of the converted data in a table.
To display information about a line, double-click it, or choose Field
contents.
• To choose between a one-line or multiple-line view, choose Change
display.
©SAP AG 1999
1 BGR00 0KNA1_A 100ROBERTS /
2 BBKPF 1FB01 30071999SA0001/ / DEM
3 BBSEG 2BBSEG 40/ //
4 BBSEG 2BBSEG 50/ //
5 BBSEG 2BBSEG 50/ //
6 BBKPF 1FB01 30071999SA0001/ / USD
7 BBSEG 2BBSEG 40/ //
8 BBSEG 2BBSEG 50/ //
9 BBSEG 2BBSEG 50/ //
 Displaying the converted data
 By record
 By field
Field Field text Field value
STYPE Record type 1
TCODE Transaction code FB01
BLDAT Date 30071999
BLART Document type SA
BUKRS Company code 0001
BUDAT Date /
WAERS Currency key DEM
Display Converted Data
• If you have selected a standard SAP transfer program, it may support batch
input, call transaction, or direct input or some combination of them.
• If you use batch input:
You must create the session and then process the session using the batch input
monitor.
You can go to the batch input monitor; only the batch input sessions for the
selected object will be displayed.
• If you use call transaction:
You can start the program directly and import the data immediately.
• If you use direct input:
You can start the direct input program directly (should only be used for testing),
or start the data transfer using the direct input monitor.
©SAP AG 1999
SAP DB
BAPI
Starting Transfer

More Related Content

What's hot

Sap Customer Service In Manufacturing Industry1
Sap Customer Service In Manufacturing Industry1Sap Customer Service In Manufacturing Industry1
Sap Customer Service In Manufacturing Industry1
evil66_in
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
Kranthi Kumar
 
Sap pp rough cut capacity planning on sop
Sap pp rough cut capacity planning on sopSap pp rough cut capacity planning on sop
Sap pp rough cut capacity planning on sop
Kanapon Gunprom
 
Sap pp shop floor control configuration
Sap pp   shop floor control configurationSap pp   shop floor control configuration
Sap pp shop floor control configuration
Vikranth Ikkalaki
 
ASAP methodology overview
ASAP methodology overviewASAP methodology overview
ASAP methodology overview
Bogdan Gorka
 

What's hot (20)

Sap sd
Sap sdSap sd
Sap sd
 
Sap Customer Service In Manufacturing Industry1
Sap Customer Service In Manufacturing Industry1Sap Customer Service In Manufacturing Industry1
Sap Customer Service In Manufacturing Industry1
 
How to add new Object Link in SAP DMS
How to add new Object Link in SAP DMSHow to add new Object Link in SAP DMS
How to add new Object Link in SAP DMS
 
Sap SD configuration-guide
Sap SD configuration-guideSap SD configuration-guide
Sap SD configuration-guide
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
 
Output determination
Output determinationOutput determination
Output determination
 
Sap pp rough cut capacity planning on sop
Sap pp rough cut capacity planning on sopSap pp rough cut capacity planning on sop
Sap pp rough cut capacity planning on sop
 
Rollout solution template SAP SD
Rollout solution template   SAP SDRollout solution template   SAP SD
Rollout solution template SAP SD
 
SAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User GuideSAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User Guide
 
Sap basis administration handbook
Sap basis administration handbookSap basis administration handbook
Sap basis administration handbook
 
Sap pp shop floor control configuration
Sap pp   shop floor control configurationSap pp   shop floor control configuration
Sap pp shop floor control configuration
 
55811936 product-costing-cost-estimation-in-sap
55811936 product-costing-cost-estimation-in-sap55811936 product-costing-cost-estimation-in-sap
55811936 product-costing-cost-estimation-in-sap
 
Sap mrp-configuration-pp
Sap mrp-configuration-ppSap mrp-configuration-pp
Sap mrp-configuration-pp
 
Migrate Custom data/object in SAP S/4 HANA
Migrate Custom data/object in SAP S/4 HANA Migrate Custom data/object in SAP S/4 HANA
Migrate Custom data/object in SAP S/4 HANA
 
SAP PP MRP Guide for Beginners
SAP PP MRP Guide for BeginnersSAP PP MRP Guide for Beginners
SAP PP MRP Guide for Beginners
 
Material master views
Material master viewsMaterial master views
Material master views
 
SAP BUSINESS BLUE PRINT PRACTICE PROJECT
SAP BUSINESS BLUE PRINT PRACTICE PROJECTSAP BUSINESS BLUE PRINT PRACTICE PROJECT
SAP BUSINESS BLUE PRINT PRACTICE PROJECT
 
ASAP methodology overview
ASAP methodology overviewASAP methodology overview
ASAP methodology overview
 
S4 HANA Business Partner Configuration@Ganesh Tarlana
S4 HANA Business Partner Configuration@Ganesh TarlanaS4 HANA Business Partner Configuration@Ganesh Tarlana
S4 HANA Business Partner Configuration@Ganesh Tarlana
 
Sap SD Standard Reports
Sap SD Standard ReportsSap SD Standard Reports
Sap SD Standard Reports
 

Viewers also liked

Sap abap ale idoc
Sap abap ale idocSap abap ale idoc
Sap abap ale idoc
Bunty Jain
 

Viewers also liked (20)

Lsmw overview
Lsmw overviewLsmw overview
Lsmw overview
 
Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1
 
Using idoc method in lsmw
Using idoc method in lsmwUsing idoc method in lsmw
Using idoc method in lsmw
 
Sap abap
Sap abapSap abap
Sap abap
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
 
SAP ABAP - Needed Notes
SAP   ABAP - Needed NotesSAP   ABAP - Needed Notes
SAP ABAP - Needed Notes
 
Sap abap ale idoc
Sap abap ale idocSap abap ale idoc
Sap abap ale idoc
 
SAP ABAP data dictionary
SAP ABAP data dictionarySAP ABAP data dictionary
SAP ABAP data dictionary
 
Osteoporosis
OsteoporosisOsteoporosis
Osteoporosis
 
Case study linear asset insp optimization 002 161104 jimc
Case study linear asset insp optimization 002 161104 jimcCase study linear asset insp optimization 002 161104 jimc
Case study linear asset insp optimization 002 161104 jimc
 
Smart form
Smart formSmart form
Smart form
 
Fico notes
Fico notesFico notes
Fico notes
 
SAP ABAP Interview questions
SAP ABAP Interview questionsSAP ABAP Interview questions
SAP ABAP Interview questions
 
Sap query by guntupalli hari
Sap query by guntupalli hariSap query by guntupalli hari
Sap query by guntupalli hari
 
Sap abap online training By Keylabstraining
Sap abap online training By KeylabstrainingSap abap online training By Keylabstraining
Sap abap online training By Keylabstraining
 
Lsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaLsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishna
 
Deploy s4 hana
Deploy s4 hanaDeploy s4 hana
Deploy s4 hana
 
Network Rail - passengers and freight
Network Rail - passengers and freightNetwork Rail - passengers and freight
Network Rail - passengers and freight
 
Idoc testing in ieds by guntupalli hari krishna
Idoc testing in ieds by guntupalli hari krishnaIdoc testing in ieds by guntupalli hari krishna
Idoc testing in ieds by guntupalli hari krishna
 
Sap fico-fi-notes
Sap fico-fi-notesSap fico-fi-notes
Sap fico-fi-notes
 

Similar to Lsmw ppt in SAP ABAP

Step by-step-lsmw-tutorial-101208040548-phpapp02
Step by-step-lsmw-tutorial-101208040548-phpapp02Step by-step-lsmw-tutorial-101208040548-phpapp02
Step by-step-lsmw-tutorial-101208040548-phpapp02
johnbryan26
 
51191092 sap-r3-extraction
51191092 sap-r3-extraction51191092 sap-r3-extraction
51191092 sap-r3-extraction
hnt_dv
 
BUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSEBUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSE
Neha Kapoor
 

Similar to Lsmw ppt in SAP ABAP (20)

Ps training mannual ( configuration )
Ps training mannual ( configuration )Ps training mannual ( configuration )
Ps training mannual ( configuration )
 
Sap abap
Sap abapSap abap
Sap abap
 
Lsmw demo
Lsmw demoLsmw demo
Lsmw demo
 
Ps training mannual ( configuration )
Ps training mannual ( configuration )Ps training mannual ( configuration )
Ps training mannual ( configuration )
 
Step by-step-lsmw-tutorial-101208040548-phpapp02
Step by-step-lsmw-tutorial-101208040548-phpapp02Step by-step-lsmw-tutorial-101208040548-phpapp02
Step by-step-lsmw-tutorial-101208040548-phpapp02
 
51191092 sap-r3-extraction
51191092 sap-r3-extraction51191092 sap-r3-extraction
51191092 sap-r3-extraction
 
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
 
Bdc
BdcBdc
Bdc
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
 
Bdc
BdcBdc
Bdc
 
Configuration Driven Reporting On Large Dataset Using Apache Spark
Configuration Driven Reporting On Large Dataset Using Apache SparkConfiguration Driven Reporting On Large Dataset Using Apache Spark
Configuration Driven Reporting On Large Dataset Using Apache Spark
 
Agile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS ReportingAgile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS Reporting
 
Randomizing Data With SQL Server
Randomizing Data With SQL ServerRandomizing Data With SQL Server
Randomizing Data With SQL Server
 
Case Study For Replication For PCMS
Case Study For Replication For PCMSCase Study For Replication For PCMS
Case Study For Replication For PCMS
 
Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...
Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...
Big Data: Getting off to a fast start with Big SQL (World of Watson 2016 sess...
 
Oracle APEX
Oracle APEXOracle APEX
Oracle APEX
 
BUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSEBUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSE
 
Sap bw lo extraction
Sap bw lo extractionSap bw lo extraction
Sap bw lo extraction
 
Legacy system migration workbench
Legacy system migration workbenchLegacy system migration workbench
Legacy system migration workbench
 
SAP Migration Overview
SAP Migration OverviewSAP Migration Overview
SAP Migration Overview
 

More from Aabid Khan (6)

Kindness to parents
Kindness to parentsKindness to parents
Kindness to parents
 
Ingredients for a happy marriage
Ingredients for a happy marriageIngredients for a happy marriage
Ingredients for a happy marriage
 
Aadaab e zindagi
Aadaab e zindagiAadaab e zindagi
Aadaab e zindagi
 
Combat kit against_bible_thumpers
Combat kit against_bible_thumpersCombat kit against_bible_thumpers
Combat kit against_bible_thumpers
 
Hard to solve brain teasers
Hard to solve brain teasersHard to solve brain teasers
Hard to solve brain teasers
 
Enhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAPEnhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAP
 

Recently uploaded

Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Recently uploaded (20)

Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration Tooling
 
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 

Lsmw ppt in SAP ABAP

  • 2. Advantages of using LSMW • Simple data transfer tool. • Requires no or minimum coding. • Can be carried out by even Functional consultants having no/min knowledge of ABAP Coding • Standard tool provided by SAP itself, hence fully compatible with all SAP Transactions. • Can be used to upload data from non SAP system into the SAP R3 system.
  • 3. • The Legacy Systems Migration Workbench (LSMW) is an R/3-based tool that supports one- time and periodic transfer of data from non-SAP systems (legacy systems) to R/3. • This easy-to-use tool supports the conversion of data from the non-SAP system that can then be imported into the R/3 System using batch input, call transaction, direct input, BAPIs, or IDocs. • In addition, the LSMW provides a recording function, which you can use to generate a data migration object from a create or change transaction. © SAP AG 1999 CT BAPI DI IDoc  Available as an add-on  One-time and periodic data transfer from external system to R/3  LSMW uses standard technologies LSMW: Characteristics BI
  • 4. • The core LSMW functions are: • 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. ©SAP AG 1999  Read data  Spreadsheet tables  Sequential files  Convert data  Import data LSMW: Core Functions Data transfer
  • 5. • The LSMW reads the external files and converts the contents into the corresponding target structures or fields, producing an output file in the required format. This output file can then be input to the appropriate data transfer program. ©SAP AG 1999 SAP-DB Conversion External format SAP format Definition The LSMW Concept SAP Data transfer
  • 6. • To read these files, you must define the structure of the file (source structure). • The file contents are then read into an internal LSMW format and stored as an LSMW file. • The next step is to define structure relationships and field assignments. These specify the mapping of the source structure fields to the target structure fields. • Using these definitions, the contents of the LSMW file are converted to the target structure and can then be transferred using the specified transfer method. © SAP AG 1999 Conversion • Structure Relationships • Field Assignments • Conversion Rules On PC Application Server • Source Structure Definitions LSMW Concept SAP
  • 7. • The LSMW generates two executable ABAP programs from the structure definitions and the conversion rules - a READ program and a CONVERSION program. © SAP AG 1999 Conversion program • Structure relationships • Field assignments • Conversion rules • Source structure definitions Generated Programs Read program
  • 8. • The LSMW supports the following transfer methods: • 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. © SAP AG 1999 SAP Record Layout Structure SAP IDoc Structure Flat SAP Structure Standard Transfer Program Recorder BAPI LSMW Transfer Procedure IDoc
  • 9. • To start the LSMW, call transaction LSMW. • On the initial screen, you can create related subprojects and objects by choosing Create new projects. • Project: Maximum of 10 characters to identify your data transfer project. If you want to transfer data from several external systems, you can create a project for each external system. • Subproject: Maximum of 10 characters; used as an additional subdivision. • Object: Maximum of 10 characters; used to identify a business data object. © SAP AG 1999 Starting the LSMW Transaction LSMW Initial Screen: LSMW organized by: You must specify a name and short description for each of these. Project Subproject Object  Project  Subproject  Object
  • 10. © SAP AG 1999 Project Overview  All Objects  Overview of objects contained in system  My Objects  Overview of objects the user created  All Objects in a Project  Overview of objects in the current project
  • 11. • A total of 26 different work steps are provided. The work steps displayed are dependent on the selected object. • You can create a customized personal menu of the work steps. In the personal menu you can select a subset of the 26 work steps you want to display. ©SAP AG 1999 Define object attributes Define source structures and source fields Define structure relationships Define field mapping and conversion rules Read data Convert data Import data The Main Steps
  • 12. • Before you start using the LSM Workbench, create a “mapping on paper” for the object. For this, create and print an “object overview”. • At this time, the overview only contains the design and description of the R/3 structures and the fields they contain. You can use this overview to help you map these target structures and fields to the corresponding source structures and fields. © SAP AG 1999 EXCEL List STYPE Record type CHAR 1 TCODE Transaction code CHAR 20 KUNNR Customer number CHAR 10 a3ktn2 10 M BUKRS Company code CHAR 4 Field Length Conversion ......... SAP Fields Field Description Type Length Non-SAP Fields Conversion on Paper
  • 13. • The file with the data from the external system must be imported by the LSMW. Therefore you have to define the structure of this data in the LSMW. It is called the definition of the source structure. • The source structure may be structured in different ways. • If the source structure is a flat structure, each line in the file has the same structure. For the definition the structure name and the field names as well as the technical characteristics of the fields must be defined. © SAP AG 1999 File with flat structure: Structure A Field 1 Field 2 Field 3 Definition contains:  Structure name  Field name Flat Source Structure
  • 14. • In this step, you define the object structures, including name, description, and hierarchical relationships. • In the dialog box, choose Change. You can now choose to create new structures, or change, rearrange, or remove these. Use the relevant pushbuttons to execute these functions. ©SAP AG 1999 Source Structures   HEAD POSI Document header Document position  Object attributes Name of the source structure  Description of the source structure Maintain Source Structures
  • 15. • In this step, you create and maintain fields for the structures created in the previous step. © SAP AG 1999 Object attributes  Field name  Field ID  Field length  Field type Source Fields   HEAD SET1 C(001) Record ID REF_NO C(009) Reference number   POSI SET2 C(001) Record ID DATE DDMY(010) Posting date : : Maintain Source Fields
  • 16. • The structure relationships define the relationships between the source and target structures. • To set structure relationships, place the cursor on a field in the R/3 structure or target structure. Choose Relationship. A dialog box appears with a list of the source structures you have created. Select a structure from this list. • If you want to change the relationship, you must first delete the existing relationship using the relevant pushbutton. • A check function is available to check the structure relationships for errors. Messages for this check are displayed in the status bar (error message or “No structure relationship errors found”) © SAP AG 1999 Structure Relationships   BGR00 Batch input structure for session data <<<<   BBKPF Document header .... <<<<   BBSEG Document segment .... <<<< POSI BWITH ..... Object Attributes Source structure assignment SAP Record Layout Structure SAP IDoc Structure Flat SAP StructureBAPI Maintain Structure Relations HEAD HEAD
  • 17. • In this step, you assign source fields to the target fields and specify how the field contents are to be converted. • The following information is displayed for each target field: • Field ID • Any source fields assigned • Rule type (default value, translation, and so on) • Code ©SAP AG 1999 Field mapping and rules   BGR00 Fields   BBKPF   Fields BLDAT Date BUKRS Company code Field Information Documentation Valid values Navigation in the ABAP Dictionary Maintain Field Mapping and Conversion Rules
  • 18. • Assigning source fields: To assign a source field, place the cursor on a target field in the tree structure and choose Assign source field. A list of available source fields appears, from which you can select the desired source field by double-clicking it. • Deleting source field assignments: To unassign a source field, place the cursor on a target field in the tree structure and choose Remove source field. If only one source field is assigned, this assignment is removed. If more than one source field is assigned, a list of all assigned source fields appears; to select the desired field, double-click it. • After you have assigned the source fields, you define the conversion rules. The default is “MOVE”. Various standard techniques are available by choosing the relevant pushbutton. ©SAP AG 1999  Sequence 1. Assignment of source field to target field 2. Definition of conversion rule 1. 2. Source Field Assignment
  • 19. • In this step you specify all the files that are to be used in the following steps: • Your legacy data on the PC and/or R/3 server • The file for the imported data • The file for the converted data © SAP AG 1999  Object attributes  Specify paths and files Conversionon PC Application server File name File name File name File name Specify Files
  • 20. • The system proposes a name for the file containing the imported data. You can change the name if you wish to. © SAP AG 1999 Read Data File File transprBC420_46_D_CT_01.lsmw.read File name: <path><file name>.lsmw.read  Specify paths and file names File name = Project name + subproject name + object name
  • 21. • You have the following options with the function “Read data": • If you want to process all the data belonging to an object, execute the function. • If you simply want to migrate a part of the dataset, you can limit the amount of data that you migrate in the field “Standard selection parameters”. Select your data in “Transaction number” “from ... to ...". © SAP AG 1999  Object attributes  Specify which data is to be imported  Amount fields Amount fields are converted into decimal format (with decimal point)  Date values Date fields are converted into the internal format (YYYYMMDD) Read Data Amount fields -> 1234.56 Date values -> YYYYMMDD
  • 22. • In this step you can display a part of or all of the imported data in a table. By clicking on a table row (or selecting Field contents) you can display all the information in this row. • With the function Change display you can switch between one line and multiple line display. © SAP AG 1999 1 DOCUMENTS HBC100000119990730 07 31.07.199930.07.1999DM 2 POSI P0004S100000 3410.50 1740.89 Info 1 3 POSI P0005H113100 3005.50 1536.41 Info 2 4 POSI P0005S110000 405 204.48 Info 3 5 DOCUMENTS HBC100000219990730 07 31.07.199930.07.1999$ 6 POSI P0004S100000 3420.50 3206.89 Info 1 7 POSI P0005H113100 3010.50 2830.77 Info 2 8 POSI P0005S110000 410 376.12 Info 3 1 HEAD HBC100000119990730 07 3107199930071999DM 2 POSI P0004S100000 3410.50 1740.89 Info 1 3 POSI P0005H113100 3005.50 1536.41 Info 2 4 POSI P0005S110000 405 204.48 Info 3 5 HEAD HBC100000219990730 07 3107199930071999$ 6 POSI 7 POSI 8 POSI Display Read Data Field name Field text Field value SET1 Record indicator H REF_NO Reference number BC1000001 DOC_DATE Doc. date 30071999 TYPE TYPE 07 CURR_KEY document currency DM  Display read data  By record  By field
  • 23. • The imported data is converted into the target file by the using the defined rules. • If you do not select any data, confirm by executing the process. Otherwise select the data in “from..…to..." in the “Transaction number”. You can also select several transaction numbers. © SAP AG 1999 Generated conversion program Field assignments Transactions read: 5 Records read: 20 Transactions written: 5 Records written: 21 Convert Data Note: Amount fields (AMT1...) for standard transfer programs are formatted according to user-defined settings. Date fields are NOT formatted - they are always displayed in format YYYYMMDD
  • 24. • In this step, you can display part or all of the converted data in a table. To display information about a line, double-click it, or choose Field contents. • To choose between a one-line or multiple-line view, choose Change display. ©SAP AG 1999 1 BGR00 0KNA1_A 100ROBERTS / 2 BBKPF 1FB01 30071999SA0001/ / DEM 3 BBSEG 2BBSEG 40/ // 4 BBSEG 2BBSEG 50/ // 5 BBSEG 2BBSEG 50/ // 6 BBKPF 1FB01 30071999SA0001/ / USD 7 BBSEG 2BBSEG 40/ // 8 BBSEG 2BBSEG 50/ // 9 BBSEG 2BBSEG 50/ //  Displaying the converted data  By record  By field Field Field text Field value STYPE Record type 1 TCODE Transaction code FB01 BLDAT Date 30071999 BLART Document type SA BUKRS Company code 0001 BUDAT Date / WAERS Currency key DEM Display Converted Data
  • 25. • If you have selected a standard SAP transfer program, it may support batch input, call transaction, or direct input or some combination of them. • If you use batch input: You must create the session and then process the session using the batch input monitor. You can go to the batch input monitor; only the batch input sessions for the selected object will be displayed. • If you use call transaction: You can start the program directly and import the data immediately. • If you use direct input: You can start the direct input program directly (should only be used for testing), or start the data transfer using the direct input monitor. ©SAP AG 1999 SAP DB BAPI Starting Transfer