<p>Last time we discussed SAP Step-by-step LSMW Developer Guide, which you can find here <a href="https://saphcmsolutions.com/step-by-step-sap-lsmw-developer-guide/" target="_blank" rel="noopener">Step-by-step SAP LSMW Developer Guide</a></p>
<p>Today let&#8217;s have a look at the User Guide.</p>
<h2><a name="_Toc515533437"></a>Basics</h2>
<p>LSMW is a standard SAP tool to do any kind of mass data changes.</p>
<p>In 99% cases, we use Batch Recording which works like macros in MS Excel/Word. The system follows user’s steps, recording screen by screen. Once done we map data file to these screens and data fields. Than system repeats the same steps like the user would be doing manually.</p>
<h2><a name="_Toc515533438"></a>Organizing LSMW projects</h2>
<p>In LSMW transaction we have projects, subprojects, and objects.</p>
<div id="attachment_1313" style="width: 597px" class="wp-caption alignnone"><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_1.png"><img aria-describedby="caption-attachment-1313" class="wp-image-1313 size-full" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_1.png" alt="SAP LSMW Initial Screen" width="587" height="210" /></a><p id="caption-attachment-1313" class="wp-caption-text">SAP LSMW</p></div>
<p>Ideally, there should be one global project for routine updates, one for data migration.</p>
<p>The subproject is something meaningful, like OM, PA, PT, and PY for different HR areas. Or it could be one subproject for all infotypes, no matter.</p>
<p>An object usually represents what’s being changed: infotype, table or something else.</p>
<p>To start we need to choose from all three entities: project, subproject, object.</p>
<p>Here is the main LSMW window. Steps “Define Object Attributes” to “Assign Files” are settings, other for execution for the end-user.</p>
<p><!--more--></p>
<p><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_2.png"><img class="alignnone size-full wp-image-1314" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_2.png" alt="" width="890" height="531" /></a></p>
<p>As a user you need to perform just 4 steps: specify file, read data, convert data, upload data.</p>
<h2><a name="_Toc515533439"></a>Specify Files</h2>
<p>Here we create a file reference. Change file path to your local PC. Keep all other parameters the same</p>
<div id="attachment_1315" style="width: 1148px" class="wp-caption alignnone"><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_3.png"><img aria-describedby="caption-attachment-1315" class="wp-image-1315 size-full" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_3.png" alt="SAP LSMW Specify File" width="1138" height="731" /></a><p id="caption-attachment-1315" class="wp-caption-text">SAP LSMW Specify File</p></div>
<p>Save and exit.</p>
<h2><a name="_Toc515533440"></a>Read Data</h2>
<p>Here the system reads the file and converts to internal format on the server.</p>
<p><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_4.png"><img class="alignnone size-full wp-image-1316" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_4.png" alt="" width="566" height="187" /></a></p>
<p>If the file is large and we want to test our LSMW project, delimit a number of records to read and process.</p>
<div id="attachment_1317" style="width: 899px" class="wp-caption alignnone"><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_5.png"><img aria-describedby="caption-attachment-1317" class="wp-image-1317 size-full" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_5.png" alt="SAP LSMW Read Data Preview" width="889" height="500" /></a><p id="caption-attachment-1317" class="wp-caption-text">SAP LSMW Read Data Preview</p></div>
<h2><a name="_Toc515533441"></a>Display Read Data</h2>
<p>Here we can double check ourselves if the file was organized correct and data placed into right fields.</p>
<p><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_6.png"><img class="alignnone size-full wp-image-1318" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_6.png" alt="" width="655" height="185" /></a></p>
<p>If you click on the data record, it shows record content parsed into source structure.</p>
<div id="attachment_1319" style="width: 382px" class="wp-caption alignnone"><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_7.png"><img aria-describedby="caption-attachment-1319" class="wp-image-1319 size-full" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_7.png" alt="SAP LSMW Display Read Data Record" width="372" height="220" /></a><p id="caption-attachment-1319" class="wp-caption-text">SAP LSMW Display Read Data Record</p></div>
<h2><a name="_Toc515533442"></a>Convert Data</h2>
<p>The system converts data from the source structure to the recording structure including all kind of mapping we’ve done on ‘Define Field Mapping and Conversion Rules’ step.</p>
<p><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_8.png"><img class="alignnone size-full wp-image-1320" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_8.png" alt="" width="903" height="423" /></a></p>
<h2><a name="_Toc515533443"></a>Display Converted Data</h2>
<p>The same as display read data step but shows already converted data. This data will be entered during simulation (batch input).</p>
<p><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_9.png"><img class="alignnone size-full wp-image-1321" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_9.png" alt="" width="377" height="359" /></a></p>
<h2><a name="_Toc515533444"></a>Create Batch Input Session</h2>
<div id="attachment_1322" style="width: 599px" class="wp-caption alignnone"><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_10.png"><img aria-describedby="caption-attachment-1322" class="wp-image-1322 size-full" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_10.png" alt="SAP LSMW Create Batch Recording" width="589" height="207" /></a><p id="caption-attachment-1322" class="wp-caption-text">SAP LSMW Create Batch Recording</p></div>
<p>If you want to keep all recordings for your records, tick ‘Keep batch input folders’. Otherwise, the system deletes all successful recordings. Only failed will remain in the system until they are processed.</p>
<h2><a name="_Toc515533445"></a>Run Batch Input Session</h2>
<p>SAP opens a SM35 transaction with Batch Input sessions.</p>
<p><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_11.png"><img class="alignnone size-full wp-image-1323" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_11.png" alt="" width="1029" height="259" /></a></p>
<p>Select the recording and click ‘Process’.</p>
<div id="attachment_1324" style="width: 501px" class="wp-caption alignnone"><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_12.png"><img aria-describedby="caption-attachment-1324" class="wp-image-1324 size-full" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_12.png" alt="SAP SM35 Start Processing Screen" width="491" height="255" /></a><p id="caption-attachment-1324" class="wp-caption-text">SAP SM35 Start Processing Screen</p></div>
<p>For 1 record to test it’s recommended to use ‘Process/foreground’ as the system shows every step on the screen with the data filled in.</p>
<p>Display error only is to run the process in the foreground and stop only on errors, so that user could react somehow.</p>
<p>In case of a large volume, it’s better to run in the background. It’s the fastest way.</p>
<p>To update the screen with the current status click ‘Enter’ on a keyboard.</p>
<p>If the record was not processed it would show errors in the log.</p>
<p><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_13.png"><img class="alignnone size-full wp-image-1325" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_13.png" alt="" width="794" height="236" /></a></p>
<p>If we double-click on the recording there is a tab with a log. Once errors fixed (most common the employee or OM object is locked by another user) you can restart recording process. It will run ONLY for incorrect records.</p>
<p>Once all errors are fixed and recording is processed it will disappear from the list.</p>
<p>It means no more error occurred and we can verify the data.</p>
<p><a href="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_14.png"><img class="alignnone size-full wp-image-1326" src="https://saphcmsolutions.com/wp-content/uploads/2018/12/tug_lswm_14.png" alt="" width="887" height="273" /></a></p>