Skip to Content
avatar image
Former Member

How to Create a T - Code for LSMW

Hi,

I want to Create T-code for which i Did LSMW.

My Requirement is i want to give t-code for user it should be started from specify files.

so that he can complete rest of the things to upload the data.

Thanks In Advance

For helpful Answer Points will be rewarded.

Ramesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Feb 18, 2014 at 02:36 AM

    Hello,

    There are two other ways to create Tcodes for any LSMW conversion object.

    1. Write an ABAP program using below code and create a new Tcode using SE93. The program can also have parameters in the selection-screen for Project, Sub-Project and Object.

    Type-pools: TUMLS.

    DATA: Gv_proj TYPE  tumls_project VALUE 'ZPROJECT_MM',     

          Gv_subproject TYPE  tumls_subproj VALUE 'ZSUBPROJECT_MM',     

          Gv_object TYPE  tumls_objectnew VALUE 'ZOBJECT_MM'.

    CALL FUNCTION '/SAPDMC/LSM_OBJ_STARTER' 

    EXPORTING  

    project                  = Gv_proj   

    subproj                  = Gv_subproject  

    object                     = Gv_object

    *   X_CALLED_FROM_DXWB       = ' '

    * EXCEPTIONS

    *   NO_SUCH_OBJECT           = 1

    *   OTHERS                   = 2.

    IF NOT sy-subrc is initial.

    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    2.  Second method to create a Tcode for LSMW is using the steps below provided.


    a. Create Z-Tcode with Parameter Transaction(SE93).

    b. In the default values for area, give transaction 'LSMW' and check the box for 'skip initial screen'.

    c. In the name of screen field area section, provide the following.

    /SAPDMC/LSSCREEN-PROJECT = <Z-Project>

    /SAPDMC/LSSCREEN-SUBPROJ = <ZSub-Project

    /SAPDMC/LSSCREEN-OBJECT        = <Zobject>

    d. Save and Activate

    Hope this helps.

    G

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 08, 2008 at 11:38 AM

    Hi,

    1.LSMW is a Tool ,it's not a Program or ABAP object.

    So ,it is not possible to create a TCode for the LSMW.

    Regards,

    Shiva

    Add comment
    10|10000 characters needed characters exceeded

  • May 08, 2008 at 11:43 AM

    Sometimes you have to give to an experienced user access to LSMW, so I did a workaround:

    In screen where all steps are shown, click on 'User menu' pushbutton and then hide all steps a user should not see, so Specify files step should be first.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 09, 2008 at 04:10 PM

    Hi Ramesh

    LSMW is directly did at production server itself, it doesn't requires any transport request and any quality check.

    Also it is one time requirement which is done at initial stage of implementation to upload master data to database tables.

    So, it's not case of using T.Code by the users.

    If you found it helpful to you.

    Please do reward.

    Thanks

    Suren

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 09, 2008 at 05:15 PM

    LSMW itself is the Transaction code for LSMW.

    No need of assigning any Tcode for LSMW and you can't assign

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 14, 2013 at 08:59 AM

    Hi. I have the same requirement today, after searching solution in forums without success, I have to figure it out myself.

    YES, IT CAN BE DONE.

    I assump that you already have a functionable LSMW project

    1. Open your desired LSMW project and go to Extras->User Menu.

    2. Select the following unselected steps there 😊

    - Generate Read Program

    - Display Read Program

    - Generate Conversion Program

    - Display Conversion Program

    3. Run the step Generate Read Program  then Generate Conversion Program to generate programs and then active them

    4. Run step Display Read Program and copy the program name in Report field

    5. Run step Display Conversion Program and copy the program name in Report field

    6. With the 2 newly generated programs, you can try to run them using SE30 (Program mode)

    7. Assign T-code for these programs

    8. For the Create batch input step, you can run it in LSMW and try to get the program code in the task bar. In my case it is /SAPDMC/SAP_LSMW_BI_RECORDING

    Now you already have 3 T-codes with 3 separate steps in a specific LSMW project, you can consider to assign them to the desired users.

    Good luck

    Harry 

    Add comment
    10|10000 characters needed characters exceeded