top of page

LSMW Step-by-Step Guide in SAP

Updated: May 18

In the world of SAP, data migration plays a critical role during implementation, rollout, and support projects. One of the most popular tools provided by SAP for this purpose is LSMW (Legacy System Migration Workbench).


During SAP implementations, rollouts, or data migration phases, one of the major challenges is bringing legacy data into the SAP environment without compromising accuracy and consistency. LSMW bridges this gap by:

  • Simplifying the data load process

  • Allowing functional consultants to perform uploads without ABAP

  • Supporting multiple data migration techniques


Common Use Cases for LSMW

Here are a few common business scenarios where LSMW is widely used:

Use Case

Object Type

T-code

Material Master Upload

Master Data

MM01

Asset Master Upload

Master Data

AS01

Purchase Order Upload

Transactional Data

ME21N

Financial Postings

Transactional Data

FB01


>> Go to Transaction Code LSMW


Define Project, Subproject, and Object :


Project : A Project is the main container or top-level category for your LSMW task, you can create different projects for different clients, modules, or business processes.

Subproject : A Subproject allows you to break down your project into smaller components or phases. Useful when you have multiple data sets or when you want to separate work by teams or functions.

Object : An Object refers to the specific data you are migrating within that subproject. This is where you define the actual data structure and mapping task.

Level

Name

Purpose

Project

FI_MIGRATION

Migration related to Financial Accounting

Subproject

GL_MASTER

Focused on GL Master Data

Object

FS00_UPLOAD

LSMW Object to upload GL Master Data


STEP 1 : Click on Create to create Project > Subproject > Object

LSMW

STEP 2 : Click on Execute button.

LSMW


SAP S/4 HANA Controlling (CO) Online Training - Weekends
Buy Now


NOTE: In LSMW the Steps are always in Display mode by default so always change it to Edit mode to make any changes in in every step


There are typically 14 Steps in the LSMW process. Below is a simplified overview:



  1. Maintain Object Attributes

Choose the import method (e.g., Batch Input Recording).


Here, you define the technical method you’ll use to transfer data from your legacy system into SAP.

You’ll select one of the following methods:

  • Batch Input Recording (most commonly used)

  • Standard Batch/Direct Input

  • BAPI (Business Application Programming Interface)

  • IDoc (Intermediate Document)


STEP 3 : Select Define Object Attributes and click on Execute

LSMW

STEP 4 : After changing the screen to Change Mode > Select Batch Input Recording then click on Recordings Overview Button

LSMW

STEP 5 : Click on create button and Provide the Recording Name & Description then Transaction Code of Screen for which you want to bring Create/Change.

LSMW

STEP 6 : Create/Change in the T code Screen Entered so that the system can Capture it.

LSMW

STEP 7 : Click on Default All then SAVE and Go back.

LSMW

STEP 8 : Click on Recording Field or Select the Proper Recording saved from F4.


  1. Maintain Source Structures

To define the structure of your input (legacy) data file - basically, how your data is organized before it's mapped to SAP fields.


STEP 9 : Select Define Source Structures and Execute.

LSMW

STEP 10 : Click on Create & Enter the Source Structure field Name and Description.

LSMW

  1. Maintain Source Fields

Map the structure fields to individual fields from the legacy system.


STEP 11 : Before creating the Source Field, select Object Overview then click on Table

LSMW

STEP 12 : Copy the below Highlighted fields except first Two fields.


STEP 13 : Paste it in Excel Sheet and Change the Type from CHAR to "C" for all

LSMW

STEP 14 : Select Source Fields and Click on Execute

LSMW

STEP 15 : then, position cursor on Source fields and click on Table Maintenance and click on SAVE.

LSMW

STEP 16 : Copy the Fields maintained in STEP 12 and Paste it here

LSMW

  1. Maintain Structure Relations

To Link source structure to SAP (Target) structures.


STEP 17 : Select Define Structure Relations


STEP 18 : Position the cursor to Structure Relations and click on Relationship Button > SAVE.


  1. Maintain Field Mapping and Conversion Rules

Map source fields to target SAP fields. You can also add transformation logic here.


STEP 19 : Select the Define Field Mapping and Conversion Rules and Execute



STEP 20 : Click on More > Extras > Auto-Field Mapping



STEP 21 : Without making any changes in Auto Field Mapping: Settings save it and the click on Accept Proposal by matching the Target Field and Source Field.


STEP 22 : Click on SAVE.


  1. Maintain Fixed Values, Translations, User-Defined Routines

Optional step to apply rules and mappings.



To Prepare File


STEP 23 : Prepare the Excel sheet as shown below with Row 1 (Field Name) and Copy it


STEP 24 : Paste and Save it in txt file.


  1. Specify Files

Upload or specify the location of the source file (usually a .txt or .csv file).


STEP 25 : Select Specify Files and click on Execute


STEP 26 : Position the cursor on the PC (Frontend) and click on Create


STEP 27 : Select the File and Enter Name of file.

Select the check box of Tabulator, Field names at start of file and Proceed



STEP 28 : Click on SAVE and Go back to main Screen


  1. Assign Files

Link source files to source structures.


STEP 29 : Select Assign Files and click on execute


STEP 30 : Position the cursor on Source Structure file and click on Assignment


  1. Read Data

Read the contents of the source file into LSMW.


STEP 31 : Select Read Data and click on execute button


STEP 32 : Click on execute and then allow


Read Data Records


  1. Display Read Data

Review the imported data for accuracy.


STEP 33 : Select Read Data and click on execute button


Click on file to check the Information Captured



  1. Convert Data

Convert legacy data to the SAP format.


STEP 34 : Select Convert Data and click on execute button


STEP 35 : Click on Execute


Converted Data Records


  1. Display Converted Data

View the converted data before upload.


STEP 36 : Select Read Data and click on execute button


To Display Converted data click on any Row to see



  1. Create Batch Input Session / Start Direct Input

Execute the upload into SAP.


STEP 37 : Select Create Batch Input Session and click on execute button


STEP 38 : Click on Execute



Unlimited Access to All Our SAP S4 HANA Video Courses
Buy Now


  1. Run Batch Input Session


STEP 39 : Select the Batch Input Session and Click on Process


STEP 40 : You can Execute in either Background/Foreground.


Result :


Conclusion

LSMW remains a powerful and widely-used tool for data migration in SAP environments. Whether you are a functional consultant or part of a project team, learning LSMW can significantly reduce manual effort, minimize errors, and speed up your project delivery.


By mastering LSMW, you can confidently take ownership of migration tasks and contribute significantly during implementation and rollout phases.





153 Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
Rated 5 out of 5 stars.

XOSO66 làm mình để ý nhiều hơn đến cách vị trí của từng khu vực hỗ trợ việc tìm kiếm mà không cần nhớ một trình tự cố định. Mình có thể chú ý đến bắn cá hoặc nổ hũ trước, trong khi casino vẫn là một nhóm riêng khá dễ xác định khi nhu cầu thay đổi. Cách bố trí này giúp mình chuyển điểm tập trung mà vẫn giữ được hình dung về giao diện tổng thể. Mình đánh giá sự phân khu như vậy tạo cảm giác khá linh hoạt trong quá trình sử dụng. Khi các vị trí đã quen mắt, mình có thể tìm đúng nhóm muốn xem dựa vào bố cục thay vì phải kiểm…


Like

Rated 5 out of 5 stars.

mu88 khiến tôi chú ý đến cách hệ thống phân chia nội dung khi có nhiều lựa chọn giải trí cùng xuất hiện. Tôi thường quan sát các khu vực thể thao, casino, slot, bắn cá và xổ số để xem cách từng nhóm được đặt trong giao diện. Tên danh mục rõ ràng giúp người dùng nhanh chóng nhận biết khu vực cần truy cập thay vì phải kiểm tra từng lựa chọn. Tôi cũng xem xét vị trí menu, thứ tự hiển thị và cách chuyển đổi giữa các sảnh. Khi cấu trúc được duy trì ổn định, việc tìm kiếm nội dung trở nên trực quan hơn và người dùng dễ ghi nhớ vị trí các chức năng…

Like

Rated 5 out of 5 stars.

xx88 làm tôi chú ý đến cách bảng dữ liệu thể thao giữ vị trí khi thông tin thay đổi liên tục. Mình chọn giải hoặc trận, xem chi tiết rồi quay lại danh sách để kiểm tra bộ lọc có được giữ hay không. Nếu bảng cập nhật mà tự nhảy về đầu, tôi sẽ khó đối chiếu mục vừa xem. Tôi cũng để ý thời gian cập nhật và cách phân tầng thông tin trên màn hình nhỏ. Với tôi, khu dữ liệu trực tiếp dễ dùng khi thay đổi kịp thời nhưng vị trí, bộ lọc và thứ tự danh sách vẫn ổn định trong suốt phiên

Like

Rated 5 out of 5 stars.

fly88 promo là mục tôi mở khi muốn kiểm tra một ưu đãi chỉ áp dụng cho khu vực. Mình thường đọc phạm vi, thời hạn và điều kiện trước khi chuyển sang thể thao, casino hoặc nội dung liên quan. Nếu chương trình chỉ dùng cho một nhóm nhưng phần mô tả không nói rõ từ đầu, tôi sẽ dễ hiểu nhầm. Tôi cũng để ý khi quay lại trang khuyến mãi, vị trí chương trình có còn được giữ không. Với mình, phần này dễ dùng khi phạm vi áp dụng được nêu, điều kiện gọn rõ và luồng quay lại không làm mất nội dung đang xem

Like

Rated 5 out of 5 stars.

go88 gives the Live Casino area a distinct enough place for me to recognize it without checking every other category first. From there, I can focus on the live section while card games remain another separate option in the wider layout. I like having these broader divisions because they make the page easier to read in stages rather than all at once. Over time, I have started using the category positions almost as visual markers. Returning to a familiar section now requires much less deliberate searching.


Like

Get updates on new programs, workshops, the latest developments, and community activities, straight to your inbox.

Thanks for subscribing!

Programs
Instructor Led
Self-Paced Videos

Corporate Workshops

 

Gaurav Learning Solutions Reviews.png

© 2025 Gaurav Learning Solutions

bottom of page