73333003 lsmw training document

Upload: knani9090

Post on 03-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/28/2019 73333003 LSMW Training Document

    1/59

    DATA MIGRATION IN SAP USING

    LSMW(Batch Input Recording Method)

    17 November 2011

    CA Swapnil [email protected] Shared ServicesGandhinagar

  • 7/28/2019 73333003 LSMW Training Document

    2/59

    DATA MIGRATION IN SAP USING LSMW

    INTRODUCTION

    LSMW an abbreviation for Legacy System Migration Workbench is a toolin 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 thefields to be uploaded.

    Thus upload of master data and transaction data is made very simple inthis tool. You can use this tools in almost all modules for upload ofmaster 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 withaccounting view.

    INTERNAL USE 2

  • 7/28/2019 73333003 LSMW Training Document

    3/59

    DATA MIGRATION IN SAP USING LSMW

    Contents

    Create Project, Sub-project & Object ................................................................................................... 41. 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 .................................................................................................................................4912. Display Converted Data ............................................................................................................... 51

    13. Create Batch Input Session ...........................................................................................................53

    14. Run Batch Input Session .............................................................................................................. 54

    INTERNAL USE 3

  • 7/28/2019 73333003 LSMW Training Document

    4/59

    DATA MIGRATION IN SAP USING LSMW

    Create Project, Sub-project & Object

    In order to create a LSMW, we need to create a Project & Sub-project. The significance ofcreating Project & Sub-project is to create a location where we can save the LSMW.

    For Eg: If we want to create a LSMW for uploading vendors then we can create a Project

    as FINANCE and Sub-project as VENDOR UPLOAD.

    Object is just the name of the LSMW that we are creating.

    Go to SAP Basic screen and type LSMW in the command field.

    LSMW screen would appear as follows:

    Click on New icon

    INTERNAL USE 4

  • 7/28/2019 73333003 LSMW Training Document

    5/59

    DATA MIGRATION IN SAP USING LSMW

    Click OK

    Click OK

    Click on execute button.

    INTERNAL USE 5

  • 7/28/2019 73333003 LSMW Training Document

    6/59

    DATA MIGRATION IN SAP USING LSMW

    1. Maintain Object Attributes

    There are the various steps for making a LSMW.

    These steps vary according to the method which we select in the step no. 1

    For Eg: Direct data input method, Batch Input recording Method, etc

    Now, Click

    INTERNAL USE 6

  • 7/28/2019 73333003 LSMW Training Document

    7/59

    DATA MIGRATION IN SAP USING LSMW

    Click on Batch Input recording radio button as we need to record the transaction for vendorupload.

    Click on

    INTERNAL USE 7

  • 7/28/2019 73333003 LSMW Training Document

    8/59

  • 7/28/2019 73333003 LSMW Training Document

    9/59

    DATA MIGRATION IN SAP USING LSMW

    Click enter .

    Enter the relevant details that are necessary. These parameters may vary upon theorganisation.

    Click Enter.

    Enter the necessary details and click enter.

    INTERNAL USE 9

  • 7/28/2019 73333003 LSMW Training Document

    10/59

    DATA MIGRATION IN SAP USING LSMW

    Click enter.

    INTERNAL USE 10

  • 7/28/2019 73333003 LSMW Training Document

    11/59

    DATA MIGRATION IN SAP USING LSMW

    Click enter

    Click enter

    INTERNAL USE 11

  • 7/28/2019 73333003 LSMW Training Document

    12/59

    DATA MIGRATION IN SAP USING LSMW

    Click enter

    INTERNAL USE 12

  • 7/28/2019 73333003 LSMW Training Document

    13/59

    DATA MIGRATION IN SAP USING LSMW

    Click enter

    INTERNAL USE 13

  • 7/28/2019 73333003 LSMW Training Document

    14/59

    DATA MIGRATION IN SAP USING LSMW

    Click enter

    INTERNAL USE 14

  • 7/28/2019 73333003 LSMW Training Document

    15/59

    DATA MIGRATION IN SAP USING LSMW

    Click Enter

    Click Yes.

    INTERNAL USE 15

  • 7/28/2019 73333003 LSMW Training Document

    16/59

  • 7/28/2019 73333003 LSMW Training Document

    17/59

    DATA MIGRATION IN SAP USING LSMW

    By clicking on , the highlighted information would appear automatically.

    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 theactual data that we have entered during the recording.

    For Eg: LFA1-NAME1- test.

    Click on Save

    INTERNAL USE 17

  • 7/28/2019 73333003 LSMW Training Document

    18/59

    DATA MIGRATION IN SAP USING LSMW

    Click on

    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 therecording and assign to the recording.

    INTERNAL USE 18

  • 7/28/2019 73333003 LSMW Training Document

    19/59

    DATA MIGRATION IN SAP USING LSMW

    Click on and then

    INTERNAL USE 19

  • 7/28/2019 73333003 LSMW Training Document

    20/59

    DATA MIGRATION IN SAP USING LSMW

    2. Maintain Source Structures

    Maintain source structure would automatically be selected. We can see the radio buttonhas come to the next step.

    Now click on

    We need to define a source structure. The significance of creating source structure is tocreate a hierarchy level.

    Click on and then on .

    INTERNAL USE 20

  • 7/28/2019 73333003 LSMW Training Document

    21/59

    DATA MIGRATION IN SAP USING LSMW

    The source structure Vendors is created.

    Click on

    INTERNAL USE 21

  • 7/28/2019 73333003 LSMW Training Document

    22/59

    DATA MIGRATION IN SAP USING LSMW

    3. Maintain Source Fields

    The third step is regarding creating the source fields.

    Source fields are generally created by us. In other words, source fields are nothing but the

    column names of our excel file.

    Click on execute .

    Click on and then click on

    INTERNAL USE 22

  • 7/28/2019 73333003 LSMW Training Document

    23/59

    DATA MIGRATION IN SAP USING LSMW

    There are four columns in the above table.

    FIELD NAME

    The first column is about the field name. In this field we need to enter the technical nameof the data that we need to maintain. There is one restriction to this column. We cantmaintain any data with spaces.

    Its recommended to maintain technical names as it makes easy to map the source fieldsin the next step.

    Even though, the technical names are not maintained, there wont be any problem increating LSMW

    TYPE

    Second column is type.

    Here we can decide whether the field is number, character, date, etc.

    LENGTH

    Third column is about the length of the source field. Here you can give the appropriatelength to the source fields. For Eg: Company code- length would be 4 characters.

    FIELD DESCRIPTION

    Fourth Column is about the description.

    This column is for our reference. We just need to give a description of the field names.

    Spaces are allowed in this colum.

    INTERNAL USE 23

  • 7/28/2019 73333003 LSMW Training Document

    24/59

    DATA MIGRATION IN SAP USING LSMW

    Creating source fields and maintaining the technical names of each source field is a veryclumsy process. In order to overcome that problem, the below mentioned procedureproves out to be very helpful.

    Click on object overview tab.

    Click on table button.

    INTERNAL USE 24

  • 7/28/2019 73333003 LSMW Training Document

    25/59

    DATA MIGRATION IN SAP USING LSMW

    Here we can get the readymade table along with the technical names as well as all thedetails that we require for creating the source fields.

    Now just select the above details and copy & paste it to excel sheet as follows.

    For copying the data, you need to start from the company code ie BUKRS.

    Table name and Tcode are not relevant for creating the source fields so you just need toleave those two fields.

    INTERNAL USE 25

  • 7/28/2019 73333003 LSMW Training Document

    26/59

    DATA MIGRATION IN SAP USING LSMW

    Now we need to modify this table according to the requirement of the SAP.

    So for this, we need to shift the columns B, C & D.

    We need to interchange the columns and make it as A, C, D & B instead of A, B, C & D.

    INTERNAL USE 26

  • 7/28/2019 73333003 LSMW Training Document

    27/59

    DATA MIGRATION IN SAP USING LSMW

    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, specialcharacters, 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 27

  • 7/28/2019 73333003 LSMW Training Document

    28/59

    DATA MIGRATION IN SAP USING LSMW

    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 28

  • 7/28/2019 73333003 LSMW Training Document

    29/59

    DATA MIGRATION IN SAP USING LSMW

    Now we can see that the table has been perfectly set in the maintain source fields table.

    Click on and

    The table which we had maintained has been converted into a structured format.

    Click on and .

    INTERNAL USE 29

  • 7/28/2019 73333003 LSMW Training Document

    30/59

    DATA MIGRATION IN SAP USING LSMW

    4. Maintain Structure Relations

    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 . Here we can see that VENDORS have been assigned to theVEN_UPLOAD.

    Click on

    INTERNAL USE 30

  • 7/28/2019 73333003 LSMW Training Document

    31/59

  • 7/28/2019 73333003 LSMW Training Document

    32/59

    DATA MIGRATION IN SAP USING LSMW

    The above are the fields which we have to map with our source fields.

    So for that, click on and then put the cursor on the first field and then click on

    .

    INTERNAL USE 32

  • 7/28/2019 73333003 LSMW Training Document

    33/59

    DATA MIGRATION IN SAP USING LSMW

    The following screen would appear when clicked on source field.

    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 theCompany code (SAP field).

    So for that, double click on company code.

    INTERNAL USE 33

  • 7/28/2019 73333003 LSMW Training Document

    34/59

    DATA MIGRATION IN SAP USING LSMW

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

    INTERNAL USE 34

  • 7/28/2019 73333003 LSMW Training Document

    35/59

    DATA MIGRATION IN SAP USING LSMW

    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 35

  • 7/28/2019 73333003 LSMW Training Document

    36/59

    DATA MIGRATION IN SAP USING LSMW

    Keep pressing enter until the dialogue box disappears.

    By doing this procedure, all the fields are automatically mapped to the relevant sourcefields.

    This is just a secondary method to map the source fields.

    INTERNAL USE 36

  • 7/28/2019 73333003 LSMW Training Document

    37/59

    DATA MIGRATION IN SAP USING LSMW

    6. Maintain Fixed Values, Translations, User-Defined Routines

    This step is irrelevant. So we can skip this step.

    INTERNAL USE 37

  • 7/28/2019 73333003 LSMW Training Document

    38/59

    DATA MIGRATION IN SAP USING LSMW

    7. Specify Files

    Click on

    For assigning the file, we need to make a file first.

    For making a file in a specific format, we need to follow below mentioned steps:

    We need the excel sheet which we created previously (at the time of making source field)

    INTERNAL USE 38

  • 7/28/2019 73333003 LSMW Training Document

    39/59

  • 7/28/2019 73333003 LSMW Training Document

    40/59

    DATA MIGRATION IN SAP USING LSMW

    Click on transpose. And select ok.

    This will paste the content horizontally.

    Now by this way, the format of the excel file has been made. In other words, we can nowmaintain 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 inthe 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 40

  • 7/28/2019 73333003 LSMW Training Document

    41/59

    DATA MIGRATION IN SAP USING LSMW

    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 41

  • 7/28/2019 73333003 LSMW Training Document

    42/59

    DATA MIGRATION IN SAP USING LSMW

    Now double click on Legacy data on the PC (Front end).

    Here you need to assign the notepad file that we created in the earlier step.

    The system will fetch the data from the notepad file and will convert it into the technicalformat.

    INTERNAL USE 42

  • 7/28/2019 73333003 LSMW Training Document

    43/59

  • 7/28/2019 73333003 LSMW Training Document

    44/59

    DATA MIGRATION IN SAP USING LSMW

    8. Assign Files

    After specifying the files, we need to assign the file to the structure.

    Click on and

    Message would be displayed .

    INTERNAL USE 44

  • 7/28/2019 73333003 LSMW Training Document

    45/59

    DATA MIGRATION IN SAP USING LSMW

    9. Read Data

    Click on execute

    Click on

    INTERNAL USE 45

  • 7/28/2019 73333003 LSMW Training Document

    46/59

    DATA MIGRATION IN SAP USING LSMW

    Here we can see one record has been read. It means that our file contains one row ofmaster data.

    INTERNAL USE 46

  • 7/28/2019 73333003 LSMW Training Document

    47/59

    DATA MIGRATION IN SAP USING LSMW

    10. Display Read data

    Click on execute

    Click

    INTERNAL USE 47

  • 7/28/2019 73333003 LSMW Training Document

    48/59

    DATA MIGRATION IN SAP USING LSMW

    Click on the line item

    This is the data that is fetched from the notepad file.

    When the green colour is highlighted, it shows that the data is fetched correctly.

    INTERNAL USE 48

  • 7/28/2019 73333003 LSMW Training Document

    49/59

    DATA MIGRATION IN SAP USING LSMW

    11. Convert Data

    Click on execute

    Click on execute

    INTERNAL USE 49

  • 7/28/2019 73333003 LSMW Training Document

    50/59

    DATA MIGRATION IN SAP USING LSMW

    We can see that the records have been read and the data have been successfully

    converted.

    INTERNAL USE 50

  • 7/28/2019 73333003 LSMW Training Document

    51/59

    DATA MIGRATION IN SAP USING LSMW

    12. Display Converted Data

    Click on execute

    Click enter

    Click on any line item

    INTERNAL USE 51

  • 7/28/2019 73333003 LSMW Training Document

    52/59

    DATA MIGRATION IN SAP USING LSMW

    The data is successfully converted.

    INTERNAL USE 52

  • 7/28/2019 73333003 LSMW Training Document

    53/59

    DATA MIGRATION IN SAP USING LSMW

    13. Create Batch Input Session

    Click on execute

    Click on execute

    Click on

    INTERNAL USE 53

  • 7/28/2019 73333003 LSMW Training Document

    54/59

    DATA MIGRATION IN SAP USING LSMW

    14. Run Batch Input Session

    Click on execute

    One batch has been generated.

    Now select the batch and click on

    INTERNAL USE 54

  • 7/28/2019 73333003 LSMW Training Document

    55/59

    DATA MIGRATION IN SAP USING LSMW

    Click on process

    After executing the batch, you can see that the Tcode FK01 has been displayed and thedata which we have maintained in the excel sheet have been successfully inputted in therelevant fields in the screen.

    Click on enter

    INTERNAL USE 55

  • 7/28/2019 73333003 LSMW Training Document

    56/59

    DATA MIGRATION IN SAP USING LSMW

    Click enter

    INTERNAL USE 56

  • 7/28/2019 73333003 LSMW Training Document

    57/59

    DATA MIGRATION IN SAP USING LSMW

    Click on enter

    INTERNAL USE 57

  • 7/28/2019 73333003 LSMW Training Document

    58/59

    DATA MIGRATION IN SAP USING LSMW

    Click enter

    INTERNAL USE 58

  • 7/28/2019 73333003 LSMW Training Document

    59/59

    DATA MIGRATION IN SAP USING LSMW

    Click execute

    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