Beruflich Dokumente
Kultur Dokumente
Applies to:
For more information, visit the ABAP homepage.
Summary
LSMW stands for Legacy System Migration Workbench. This tool is used to transfer data from either
legacy or application to SAP. In below scenario, the data is transferred to SAP via IDOC using LSMW.
Author:
Bathula Banu H
Author Bio
I have 3+ years of experience in ABAP. Worked in modules like HR, FI and PS.
Table of Content
Processing IDOC through LSMW ....................................................................................................................... 3
Step 1: Tcode: LSMW. .................................................................................................................................... 3
Step 2: Maintain Object Attributes .................................................................................................................. 3
Step 3: Maintain Source Structures ................................................................................................................ 4
Step 4: Maintain Source Fields ...................................................................................................................... 4
Step 5: Maintain Structure Relations .............................................................................................................. 5
Step 6: Maintain Field Mapping and Conversion Rules .................................................................................. 5
Step 7: Specify Files ....................................................................................................................................... 5
Step 8: Assign Files ........................................................................................................................................ 6
Step 9: Read and convert the data ................................................................................................................. 6
Step 10: Start IDoc Generation ....................................................................................................................... 7
Step 11: Start IDoc Processing ....................................................................................................................... 7
Step 12: Create IDoc Overview ...................................................................................................................... 8
Step 13: Start IDoc Follow-Up ........................................................................................................................ 8
Disclaimer and Liability Notice ............................................................................................................................ 9
In the below screen maintain the File port (WE21), Partner Type (LS) and Partner Number (WE20).
While specifying the file, specify the separator and other relevant parameters as required by clicking on
Create button in application toolbar.
Step 8: Assign Files
Assign the input file to the source structure created by using the button Assignment .
Save and go back.
The below screen shot shows the number of records converted to source structure format from the input
file.
The Message above shows that the document is posted. Kindly check the relevant table for data update
Step 12: Create IDoc Overview
To have a look at the Control record, Data Record and Status Record execute this step. The screen obtained
in this step is same as WE02/WE05.
The above are the steps best describing to post IDoc using LSMW tool. Using this method, large volume of
data can be posted to SAP.