SAP - LSMW – Guide to Basics

SAP Tech Pro

SAP Technical Blog
Magzter [CPS] IN

SAP - LSMW – Guide to Basics

SAP - LSMW – Guide to Basics


Enter Transaction LSMW and you will see the following screen.

LSMW – Step by step Tutorial – Basics


What does each field signify -

Project serves as an organizational unit used to combine Mapping and Field assignments

Sub Project is an organizational unit subordinate to a Project

Object is assigned to a Sub project  

You can define meaningful names and short descriptions here by using Create button.

LSMW – Step by step Tutorial – Basics

Main Design steps

Once 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.

  LSMW – Guide Step by step Tutorial – Basics

The steps viewed above can also be customized using the option Extras > User 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.

LSMW – Step by step Tutorial – Basics


The approach of LSMW is defined in the Step-1 (Define Object Attributes).

Here you would have to decide if you go with Batch input, Direct input, BAPIs (Business Application Programming Interfaces), IDocs (Intermediate Documents).


if you have simple files and all data is directly consumed you can go for simple recording and upload data. For example -The recording function records a fixed screen sequence. It cannot be used for migrating data containing a variable number of items or for transactions with dynamic screen sequences. For this you need to maintain recordings.

In the initial screen, you can display the recording functions via Goto –> Recordings.

If neither a standard batch input program nor a standard direct input program nor an IDoc is available for a data object, you can create a new object using the recording function of the LSM Workbench.

IDOC Inbound Processing
IDocs (Intermediate Documents) were developed for exchanging messages between different systems (R/3 <=> R/3; R/3 <=> R/2; R/3 <=> non-SAP system). To do this, however, some settings and preparations are required (settings have to be done for each project).

For a summary of these requirements see Settings IDoc inbound processing in the LSMW.



The first requirement is a file port for the file transfer. If required, create a port of the file type via Maintain ports. To do this, position the cursor on "File" and press Create. You should be in change mode.

For example, you intend to use idoc processing to upload Customer Master from a market in USA


Name: Customer Master Data from WALMART/Newyork

Version: 3 (IDoc record types SAP Release 4.x)

Outbound file: Please enter a file relevant for you.

As an addition, you can specify a tRFC port. This port is required, if you do not want to create a file during data conversion but submit the data in packages directly to function module IDoc_Inbound_Asynchronous. You also need a Partner Profile and the SALE settings.

Transport LSMW Object

From the Initial Screen of LSMW, Menu – Extras – Create Change Request. Please note that all the transport will be created for all the sub-objects under the Project entered in the Initial Screen.

If you want to transport only a particular subobject then you need to change the transport entries starting from /SAPDMC/LSGSUB. This needs experience and ability to troubleshoot and do not recommend if you are not very experienced.


Add comment

Before Buying, Compare Prices at