SAP HR - Legacy System Migration Workbench (LSMW)

download SAP HR - Legacy System Migration Workbench (LSMW)

of 5

Transcript of SAP HR - Legacy System Migration Workbench (LSMW)

  • 7/28/2019 SAP HR - Legacy System Migration Workbench (LSMW)

    1/5

    Home Knowledgebase Data Tool s LSMW - How To

    If your browser does not support

    the SDS Knowledge B ase

    menu, click here for analternative.

    SAP HR Legacy System Migration Workbench (LSMW)

    LSMW is a really useful tool available in SAP.

    If you havent used it before then it may appear a bit daunting, but in fact apart from the large number of steps which

    need to be followed, it is reall y quite sim ple and rather versatile.

    Project Details

    Before you enter the actual details for the trans fer, you need to choose a project, sub-project and object. Choose

    existing ones or create new ones as appropriate. This is effectively your filing system for LSMW. If you are an organis ed

    person these options wil l be im portant to you. If not, then jus t use any names in the fields.

    Maintain Object Attributes

    You wil l be pres ented with the screen s hown below. Cl ick on the execute button to be taken to the next screen.

    S

    Your

    e ar

    our ar

    new o

    Pleas

    is a pa

    would

    Home Serv ices & Products Knowledgebase About SDS Customers & Partners Links Sitemap

  • 7/28/2019 SAP HR - Legacy System Migration Workbench (LSMW)

    2/5

    Another thing that you will note is that when you enter a detail s creen, you will by default be in display mode. Click on thechange/display button to toggle to change mode. You can change this. See the tips and tricks at the end of the

    document, or the separate Batch Recording document, to see how this can be done.

    You now need to create a recording which will be used as a basis for the transfer. The process is very similar to

    creating CATT procedures or BDC ses sions in SAP or recording macros in MS Excel or Word.

    Choose the menu path: Goto > Recordings Overview

    Click on the create button.

    Enter the recording and the description.

    Enter the transaction code and go through the process of entering your data. Enter all of the data that you require, even

    though there may be default entries in SAP.

    Once you have finished your recording you wil l be pres ented with the following s creen:

    What you need to do now is let SAP know which fields you wis h to load data into. Click in the relevant field and click on

    the button default.

    Once you have chosen all the relevant fields, s ave your entries.

    Use the green back arrow to go back to the screen titled LSMW Workbench: Change Object Attributes. Choose your

    recording from the drop down values in the available recordings.

  • 7/28/2019 SAP HR - Legacy System Migration Workbench (LSMW)

    3/5

    Save and then green arrow back to the main LSMW screen with the radio button set on the next step in the process.

    LSMW generally defaults the radio button to the next action in the LSMW process.

    Maintain Source Structures

    When you enter this screen you will notice that there is no detail. Click on the create icon to crea te your source structure.

    Choose a meaningful name and description and then save.

    You should end up with something looking very sim ilar to the screen shot below.

    Go back to the main LSMW screen.

    Maintain Source Fields

    Select your entry with the yellow background. You now need to create your source fields. This can be done individually or

    by mass entry. To create them individually choose the create button. To enter many fields choose the table icon.

    It is useful to ens ure that the field name is the actual field name us ed in SAP. Generally the type will be c. Enter the

    number of characters as they are from SAP. You can get this by choosing help on the field and going to technical

    information. Double click on the entry data element in the dialogue box. This wil l take you to the Data Dictionary which

    will give you this information. Of course you can use transaction code SE11 and get this information a bit quicker.

    Once done, you will see the fields entered with a powder blue background, underneath the yellow structure. Save your

    entries before going back to the main L SMW screen.

    Maintain Structure Relations

    Just go into this s creen and click on the save button. There is nothing m ore required in this step.

    Maintain Field Mapping and Conversion Rules

    When you go into this screen you should s ee your fields li sted. You now need to link these fields to the fields wh ich are

    contained in your data file.

    Click on each field and choos e the create icon. You will be presen ted with a lis t of fields from th e source structure. If

    you have named all of your fields correctly, it should be a relatively easy task of choosing the relevant field.

    Maintain Fixed Values, Translations, User-Defined Routines

    You s houldnt need to change anything on this screen. No need to save either.

    Specify Files

    Here you specify the file for your source data.

    Choose the option for Legacy data On the PC (frontend) and click on the create option as can be seen in the screen

    shot below.

  • 7/28/2019 SAP HR - Legacy System Migration Workbench (LSMW)

    4/5

    At this point you should have saved your source data. The easies t way is to s ave it in Excel as a te xt file (tab de lim ited). If

    you have field names in row 1 then you need to ensure that the checkbox for the label Field names a t the beginning of

    the file is ticked.

    Make sure that your separator is set to tabulator if you have saved your source file as a text file. All the other settings donot need to be changed and can be seen in the screen shot below.

    Click on the green tick and then s ave and exit the screen.

    Assign Files

    You dont need to do this step as you have already done it in the previous step.

    Read Data

    This just does exactly what the title says. It reads the data from your inpu t file. Check the number of records to see that

    the number read is approximately what you are expecting to load.

    Display Read Data

    You can read the data to see that all the data has been loaded and in addition that all the columns and fields containing

    the data have been loaded as well .

    Convert Data

    You need to run this s tep as the program needs to convert the data into a format which it can use to run the batch input

    sessions.

    Query Tools

    Data Tools

    Human Resources

    FI/CO

    Cross System

    Miscellaneous

    BW

  • 7/28/2019 SAP HR - Legacy System Migration Workbench (LSMW)

    5/5

    Display Converted Data

    You can dis play the converted data if you are unsure about what data i s to be loaded.

    Create Batch Input Session

    This s tep creates the actual batch input session for you.

    Run Batch Input Session

    You now ne ed to run the batch input sess ion to update the infotypes, tables , database etc.

    Once this has been run s uccessfully you have effectively completed the data upload process.

    Tips and Tricks

    Personal Menu 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, dont worry it is fairly intuitive. Items that have not been s elected wil l get switched

    on by the program if it needs them. Alternatively, you will g et an error m ess age letting you know that a certain s tep is

    required. Just go and turn it on to execute it.

    Numbers on/off this 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 ab le to reference the numbers rather that 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.

    Object Overview this can be output as a lis t or a table.

    Action Log this shows you which steps you have executed and at what time.

    If you go and maintain the object attributes you will reset any conversion rules which you may have s et up.

    Remem ber to keep your field lengths the same for both ins tances of the field. If not then you will g et a warning mes sage

    from SAP.

    Remem ber to have the date format in the sam e format as you have set it in your SAP client. It is som etimes eas iest to

    leave off any internal formats. For example 31/12/9999 can s imply be s hown in the file as 31129999. SAP will apply your

    default formats to the data anyway.

    Once you have created your recording and are choosing the fields to use and select as defaults, you can delete the

    fields which are not required.

    Copyright 2009 Strategic Data So luti ons Ltd. All rights res