Professional Documents
Culture Documents
Processing IDOC Through LSMW PDF
Processing IDOC Through LSMW PDF
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 Bio
I have 3+ years of experience in ABAP. Worked in modules like HR, FI and PS.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 1
Processing IDOC through LSMW
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
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 2
Processing IDOC through LSMW
In the below screen maintain the File port (WE21), Partner Type (LS) and Partner Number (WE20).
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 3
Processing IDOC through LSMW
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 4
Processing IDOC through LSMW
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 5
Processing IDOC through LSMW
While specifying the file, specify the separator and other relevant parameters as required by clicking on
Create button in application toolbar.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 6
Processing IDOC through LSMW
The below screen shot shows the number of records converted to source structure format from the input
file.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 7
Processing IDOC through LSMW
The Message above shows that the document is posted. Kindly check the relevant table for data update
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.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 8
Processing IDOC through LSMW
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 9