15 April, 2021
LSMW - Helpful hints for Support PM for transaction updates using the recording option.
Here you have to first Define Project, Sub Project, and Object. It is mainly for grouping objects. One can have multiple subprojects and Objects in a Project.
Execute the transaction and you will get navigated to the second screen: LSMW Work Bench. Here one can choose the required steps by pressing the ‘User Menu’ button.
Do you want to Master SAP MM? Then enrol in "SAP MM Training" This course will help you to master SAP MM
The following 13 steps are sufficient for the Support person for the LSMW update.
Define the method of upload. i.e. batch recording, direct update, BAPI, etc. Go inside this step and choose the radio button for the options. This document explains only the transaction recording method.
One can toggle between the Display or change option using the standard button. Select the object type and Import method as ‘Batch Input Recording’. Once you have selected this click on the overview button so that you can go to the recoding overview
Example of a recording
After recording default those fields that you want to update /use in the batch update.
Give any name, which can be easily identifying the input data structure. (It is equivalent to defining an internal table in an ABAP program). Can define multiple structures also (if required).
Define all those fields that you are giving in the input file here. The order should match the order of fields in the file. Otherwise, it will get updated into the wrong fields. (Most of the errors might be in this step)
Define the source and destination structure relationships.
You have to define the mapping rules.., eg. Customer = customer. Or if any default value has to be passed, or some fixed value is given like that ( company code can be a default value if processing for a particular company code.
After making all the mappings and initialization you can even do a syntax check to see your mappings are correct or not
You have to specify the input file location in this step.
Assign the physical file path to the structure
Reading the file to the source structure
This is a very useful step where we can review the field values that got read.
Converting the source structure data to the destination by applying the conversion rules that have mentioned in step 4 and step 5.
Also useful for checking the values converted.
This will create a BI session in SM35.
This step will call SM35. One can run the session in SM35. You can run in the foreground, Error mode, or background. Preferably run in Foreground for testing some few records…once confirmed the update then run in the background.
How to transport the LSMW project from Test to Production system;
The LSMW projects can be transported between systems via the export /import method. You can export the entire project as a text file and that can be imported to another system.
In MSS no changes are allowed, so before importing to MSS, give the MSS file path in MST and then do an export.