Академический Документы
Профессиональный Документы
Культура Документы
CA Swapnil Chavda
swapnil.chavda@tcs.com
SAP- Shared Services
Gandhinagar
INTRODUCTION
LSMW an abbreviation for Legacy System Migration Workbench is a
tool in SAP which is used to migrate. Legacy data to SAP.
It is a very important tool and easy to learn and master
it.
LSMW has a recording tool which can record the transaction and the
fields to be uploaded.
Thus upload of master data and transaction data is made very simple in
this tool. You can use this tools in almost all modules for upload
of master data and too some extent transaction data also.
Thus, in FI you can upload the following master data through this
tool:
o Vendors, Customers, General Ledger, Asset master, Bank Master. You can
upload Transactional data through this i.e. an FI document.
o In MM, you can upload Material masters, Vendor masters, Info records
and various condition records relevant to pricing and out determination.
o In CO, you can upload the following master data:
o Cost element, Cost center, Profit center, Activity types, Internal orders,
Statistical key figures
o In other modules likewise you can upload other sets of relevant master
data.
In this document we cover the creation of a Vendor master data with
accounting view.
INTERNAL USE
INTERNAL USE
Contents
Create Project, Sub-project & Object...................................................................................................4
1. Maintain Object Attributes...............................................................................................................6
2. Maintain Source Structures............................................................................................................20
3. Maintain Source Fields...................................................................................................................22
4. Maintain Structure Relations..........................................................................................................30
5. Maintain Field Mapping and Conversion Rules.............................................................................31
6. Maintain Fixed Values, Translations, User-Defined Routines........................................................37
7. Specify Files...................................................................................................................................38
8. Assign Files....................................................................................................................................44
9. Read Data.......................................................................................................................................45
10. Display Read data.........................................................................................................................47
11. Convert Data.................................................................................................................................49
12. Display Converted Data...............................................................................................................51
13. Create Batch Input Session...........................................................................................................53
14. Run Batch Input Session..............................................................................................................54
INTERNAL USE
Click OK
Click OK
INTERNAL USE
INTERNAL USE
Click on Batch Input recording radio button as we need to record the transaction for vendor
upload.
Click on
INTERNAL USE
Enter the relevant details that are necessary. These parameters may vary upon the
organisation.
Click Enter.
Enter the necessary details and click enter.
INTERNAL USE
10
Click enter.
INTERNAL USE
11
Click enter
Click enter
INTERNAL USE
12
Click enter
INTERNAL USE
13
Click enter
INTERNAL USE
14
Click enter
INTERNAL USE
15
Click Enter
Click Yes.
INTERNAL USE
16
INTERNAL USE
16
By clicking on
These are nothing but the English names of the corresponding fields.
For Eg: BUKRS- Company code.
The data that is visible corresponding to the technical names in the white fields is just the
actual data that we have entered during the recording.
For Eg: LFA1-NAME1- test.
Click on Save
INTERNAL USE
17
Click on Batch input recording radio button and assign the created recording.
For Eg: We have made a recording named Vendor upload so we just need to select the
recording and assign to the recording.
INTERNAL USE
18
Click on
and then
INTERNAL USE
19
Maintain source structure would automatically be selected. We can see the radio button
has come to the next step.
Now click on
and then on
INTERNAL USE
20
Click on
INTERNAL USE
21
Click on
INTERNAL USE
22
INTERNAL USE
23
INTERNAL USE
24
Page no 25
INTERNAL USE
25
Select Generate
The original file would be
INTERNAL USE
26
While saving the above format is not supported. So save as new file like below
INTERNAL USE
27
We can see that the columns have been re arranged according to the format of
SAP. Now one more change that needs to be incorporated in column B.
The source fields are to be assigned a specific character type.
In this table, the type is maintained as CHAR that means it includes number, special
characters, alphabets, symbols, etc.
If we want to restrict the specific character type we can assign C, N, DDMM, etc.
Generally, C is maintained in all the source fields which cover all character type.
So instead of CHAR, C is to be maintained as CHAR is not accepted in the
SAP.
INTERNAL USE
28
INTERNAL USE
29
Now copy the whole table and paste it to the table in the third step of the LSMW.
(Go to third step ie Maintain Source fields >> click on
>> Click on
INTERNAL USE
30
and
The table which we had maintained has been converted into a structured format.
Click on
and
INTERNAL USE
31
In this step, we need to assign the source fields (which we have created in the third step)
to the Source structure.
Click on
Click on
and then on
VEN_UPLOAD.
Click on
INTERNAL USE
32
Click on execute
INTERNAL USE
33
and then put the cursor on the first field and then click on
INTERNAL USE
34
Now, we need to map the source fields with the fields that are already there in SAP.
The first field was company code so we need to map company code (Source field) to the
Company code (SAP field).
So for that, double click on company code.
INTERNAL USE
35
We can see the company code have been mapped with the source field BUKRS.
We need to repeat the procedure for all the fields ie Vendor account group, Title,
Name, etc.
So after mapping all the fields with the respective source fields, following screen would
appear.
INTERNAL USE
36
We can see that all fields are mapped with the relevant source fields.
NOTE: This method is cumbersome.
In order to make it simple, you can use auto fields mapping also.
For that you need to go to Extras>> Auto field Mapping.
INTERNAL USE
37
INTERNAL USE
38
INTERNAL USE
39
7. Specify Files
Click on
40
INTERNAL USE
41
Now by this way, the format of the excel file has been made. In other words, we can now
maintain the data (which is to be uploaded) in the excel file.
Now, in order to upload the vendor master data, we have fed the details of the vendor in
the excel file.
Now the next step is to convert the excel file into a notepad file.
Since LSMW doesnt recognise the excel format, it needs to be converted into notepad file.
So copy all the data and paste it to the notepad and save it on your local system.
INTERNAL USE
42
The data which we have copied would be pasted in a haphazard form. But it would not
affect the file.
Now go to specify files
Click execute
Click on
INTERNAL USE
43
INTERNAL USE
44
Here we need to assign the notepad file. Name of the file is also need to be given. Since
the file that we have created has been made in excel, we need to select the TABULOR
radio button.
Field Names at the start of file is ticked as we have copied the column names along with
the master data, in the notepad file.
So by ticking this check box, the system will not consider the first row in the file. It will start
reading the data from the second row (because first row is nothing but the column
headings).
If this check box is not ticked then the system will start reading the data from the first row
itself.
Click on
Click on
and
INTERNAL USE
45
8. Assign Files
After specifying the files, we need to assign the file to the structure.
Click on
and
INTERNAL USE
46
9. Read Data
Click on execute
Click on
INTERNAL USE
47
Here we can see one record has been read. It means that our file contains one row of
master data.
INTERNAL USE
48
Click on execute
Click
49
INTERNAL USE
50
Click on execute
Click on execute
INTERNAL USE
51
We can see that the records have been read and the data have been successfully
converted.
INTERNAL USE
52
Click on execute
Click enter
INTERNAL USE
53
INTERNAL USE
54
Click on execute
Click on execute
INTERNAL USE
55
Click on
Click on execute
INTERNAL USE
56
Click on process
After executing the batch, you can see that the Tcode FK01 has been displayed and the
data which we have maintained in the excel sheet have been successfully inputted in the
relevant fields in the screen.
Click on enter
INTERNAL USE
57
Click enter
INTERNAL USE
58
Click on enter
INTERNAL USE
59
Click enter
INTERNAL USE
60
Click execute
Finally, the batch has been successfully executed and the vendor master has been
uploaded in the system.
This is the way by which we can upload the data via LSMW.
Batch job can also be scheduled in background to avoid manual steps.
Thousands of vendor masters can be uploaded with the help of LSMW, in minutes.
No doubt, the making of LSMW seems to be a lengthy process but its not actually the
same.
INTERNAL USE
61