This is a 'tips and tricks' guide aimed at users who have a prior knowledge of creating and running their own batch recordings using the Legacy System Migration Workbench.
If you want to change the name of a recording that you have already made, you can do so by selecting the relevant project, sub-project and object on the front screen and selecting 'All Project Objects' at the top of the screen. This will take you to a list of all the recordings that have been created. Select the relevant sub-project by placing the cursor on its name and click on the change icon at the top of the screen; you can now change the title.
this allows you to turn certain steps on and off. It is wise to turn off certain steps if you know you are not going to use them. If you are unsure, don't worry - it is fairly intuitive. Items that have not been selected will get switched on by the program if it needs them. Alternatively, you will get an error message letting you know that a certain step is required. Just go and turn it on to execute it.
tthis places a number at the start of each line. Having the numbers on can make it easier to use for some people as they will be able to reference the numbers rather than the actual text items.
If you would like to enter each screen in "change" mode rather than "display" mode, you need to click on the button "doubleclick=display". It will change to "doubleclick=change". Once this is showing, you will enter each screen in change mode rather than display mode. Click it again to toggle back to display mode as default. The downside about going in on change mode is that you will get an error message if you have not maintained a dependent entry. The positive aspect about this is that at least you get to know up front which step you should maintain first.
When you finish your recording, SAP will then show you the screens that you have been through and the values that you input for each field within those screens; this is where you specify the fields that you want to define in your input file. From this screen you are also able to change the default attributes of the recording. If, for example, you notice that you input an incorrect start date during your recording but everything else is correct, instead of repeating the recording with the correct date, you can simply double click on the incorrect date and change it manually.
When you are naming your source structure, ensure that you do not call it the same name as your recording; this is because SAP will be unable to tell them apart and this will consequently result in an ABAP error when SAP tries to convert the data of your input file.
When you are creating your source fields, it is a useful idea to open your LSMW in another session in display mode and select object overview at the top of the screen. At the bottom of the screen the source fields and their attributes are then displayed. You can now copy and paste these values into the source fields table. Once you have entered the field name and attributes, if you press enter, SAP will automatically fill the field description.
When entering a date in the source fields, the easiest way is to specify it as an 8 digit character. Your input file should have the date in the format DDMMYYYY (or however the default is set for your user ID) SAP will then automatically treat it as a date during the batch input and thus avoiding any conversions.
The LSMW tool is limited in its functionality, in that it is not able to perform dynamic actions during the batch input. When you are creating the field mappings between your input file and your recording however, it is possible to call function modules and entries from tables dependent on values from your input file, this is extremely useful. When, for example, you are placing employees into new positions and you want the employees to inherit all the defaults held against the relevant position such as Employee Group/Sub-group, Cost Centre etc. a standard LSMW would not be able to cope with this. However, by calling function modules or looking up table entries during your mapping, it is possible to populate many input fields for your batch input using only one source field.
It is possible to use the same LSMW as many times as you like with different input files. Once you have created and run an LSMW, if you need to reuse the recording with a different file, you can simply start the LSMW process at the specify files step and continue as normal.
When creating your batch input folders it is good practice to select 'Keep batch input folder(s)?' this means that the file will still be available for you to see via transaction code SM35 once you have run the batch input.
If you are creating a batch input file with a large amount of data on it, it may be a good idea to create a number of smaller input files so that you can run these simultaneously and save time. You can specify how many transactions you want in each folder by entering a value in the 'Display Trans. Per BI Folder' field. If, for example, you had 350 entries in your input file and you specified 100 transactions per Batch Input then you would create 4 Batch Input Files.