How to Debeg LSMW.

Hi all,
I am updating material records by using LSMW.But some records are not updating in DB.Flat file records are correct only. i want to debeg LSMW. How can i do it.

Hi ,
Please use SDN Search ...
u can go thru this link .. u can sort out ur issue..
https://www.sdn.sap.com/irj/sdn/forums
Regards,
Praveen.

Similar Messages

  • How to call LSMW from a Report program

    Hi,
    I have a requirment of extending vendor master data (Companycode data and Purchasing Organization data ) through Tcode XK02 using LSMW.Also I need to generate an error log file for validating the data from flat file and  must have an export option of the error log file.
    Can you help me how to proceed on this in steps.
    Also pls let me know how to call LSMW transaction through a Report.
    Based on the selection criteria I need to maintain two source structues,one for companycode data and the other for Purchasing Orgnization data for uploading  data thru LSMW.How to do this?
    pls respond ASAP,
    Thanks,
    Nagendra

    Hi,
    create 2 LSMW object (under same project and subproject)..
    one for extended vendor master data for company code data and other for  extended purchase organization data for company code data.
    Now check the radio buttons and based on that populate ur LSMW object.
    Store project
      project = < >.
    Store subproject
      subproj = < >.
    Store object
      object  = '6GSC022_TS3'.
    if r_ccode = 'X'.
    Store object
      object  = < >.
    else.
    Store object
      object  = < >.
    endif.
    Call the function module to display object (LSMW) maintenance screen
      CALL FUNCTION '/SAPDMC/LSM_OBJ_STARTER'
        EXPORTING
          project        = project
          subproj        = subproj
          object         = object
        EXCEPTIONS
          no_such_object = 1
          OTHERS         = 2.
    Generating error log:
    After the checking the field if u think for this u need to generate error message then In the Maintain Field Mapping and Conversion Rules option under the required field write the following code:
    data: v_msgtxt(100) type c.
    message  <msg ID>    <message type>   <message no>
                     with   <var1>  <var2>
                     into v_msgtxt.
    write v_msgtxt.
    Follow the next step in LSMW object till you reach the option  Convert Data.
    After you execute this option you will get the desired message here.
    Regards,
    Joy.

  • How to use LSMW on CRM for bulk master data creation?

    Hello Experts,
    I need your help to able to use LSMW on CRM for bulk master data creation. Below is described my detailed requirement; -
    We have CRM 2007 integrated with SAP ISU (ECC6.0). As per business process all Business Master Data (BP details, Business Agreement details etc) and Technical Master Data (Connection Object, PoD etc.) is created in CRM and then it is replicated in ISU. We are going to start Assembly Test soon. Now we need to have all master data in place. Tool we want to use is LSMW.
    Now can you help me right from scratch on how to use LSMW for bulk master data creation in CRM?
    Please give me documents / links etc that is relevant.
    Regards,
    Rohit

    Hi,
    I have looked into your query.
    These are some information which might be useful to you.
    What is LSMW?
    Legacy System Migration Workbench or LSMW is SAP standard program that can be used to easily load / change master data or transactions in SAP without any programming at all. It can be used to upload data at cutover, such as: open orders, contracts, materials, vendors, stock on hand. It can also be used in a production system to make changes to existing data. Very limited authorization checks are available on the transaction, so the use of it must be very well controlled.
    One input file can be used to create all the views of the material master. For all the material types. Even if different views and fields are used for the different materials.
    Steps to take
    1. Create text file with data to be loaded
    2. Set up and run LSMW
    The following link will provide good information on LSMW Idoc method:
    [http://help.sap.com/saphelp_nw04/helpdata/en/ad/2d54a41d7011d2b42e006094b944c8/frameset.htm]
    I hope this helps.
    Regards,
    Venkat

  • How to use LSMW using the IDOC to upload and maintain cost center group

    Hi Everyone,
    Is there anyone who knows how to use LSMW using the IDOC functions instead of the recording. I wanted to upload the alternative cost center group I created in the system. 
    reply would be greatly appreciated
    Warm Regards

    Hi Praveen,
    There is a risk trying to migrate data directly into standard tables because this can generate database inconsistences or wrong inserted data according to what is customized in the target system. I do not recommend migrate like this. 
    With LSMW you use objects like direct input programs, idocs, bapis and recorded batch input. Try to create a project and use an standard object for your data. Also, check in SXDA transaction (Goto-->DX programs) if there is a standard program for your data.
    Anyway, if you want to upload data directly to tables, read below thread:
    ["UPLOAD  CSV  FILE";
    [how to upload .csv file into a custom table;
    Regards,
    Roger

  • Requesting all to help me how to create lsmw using idoc method

    hi
    thanx for ur answer
    requesting every body in the forum to help me how to create lsmw using idoc method.
    regards,
    balaji

    Hi Balaji,
    LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
    Hope this is what you are looking for. If helpful then don’t forget to reward me for that
    Darshan

  • How to Transport LSMW to development server to Prodution server

    Hi all,
    I would like to know how we transport LSMW(project, sub-project, Object) from development server to Production server.
    Thanks
    Vipin Nagpal

    Hi Vipin,
        Actually, it depends based upon the requirement. There are some advantages and disadvantages with both of the methods.
    See the following documentation. I think this would be helpful for you and based upon your requirement you proceed further.
                 <b>Transport LSMW Projects</b>
    The LSM Workbench provides data transport for a project via both the SAP transport system and down-/upload. (Excluded are the presettings for IDoc inbound processing. These presettings should be manually created in every SAP system and every client.)
    <b>1. Generate Change Request</b>
    Choosing this function creates an SAP change request containing all information about an LSMW project. This SAP change request can be exported / imported with the usual means of SAP correction and transporting. You can find this function in the initial screen under Extras -> Create change request.
    When transporting LSMW data this way, you can trace the transports any time in SAP correction and transporting.
      <b>Note 1</b>: When importing such a request, the complete project is deleted from the target system first. It is then created again.
      <b>Note 2</b>: When exporting the transport request, all changes to the selected project made until the time of export are entered (not only until the time of creation of the transport request.)
    <b>2. Export Project</b>
    In the initial screen, select Extras &#61664; Export project. This first displays the structure tree of the selected project. Via Select / Deselect you can select whether the entire project or parts of the project are exported. Then select Export. The program then creates an ASCII file.
    Note: The selected elements are exported together with their documentation
    <b>3.Import Project</b>The exported mapping and rules can be imported into another SAP system.
    On the selection screen, select Extras -> Import. The program then prompts you to enter the name of the PC file. The file is imported and the contents are analyzed. After the analysis, a list of the subprojects and objects found is displayed.
    You can now mark the objects to be imported. Project data existing already are check-marked. They are overwritten by the import.
    You can prevent a project already existing in the target system from being overwritten by using function "Import under different name".
      Note: The selected elements are imported together with their documentation.
    If you feel this is helpful, don't forget to reward points.

  • How to use lsmw and load cin details of the customer

    hi,
    how to use lsmw and load CIN details of the customer master data as the CIN DETAILS are not visible under XD01.
    thanx in advance
    regards,
    balajit

    i got the solution

  • How to create LSMW project for MPN deletion

    Hi
    in MP01 there is a deletion indicator how to tick mark that for All MPN materials
    how to create LSMW project
    bcz LSMW project wil reads the data line wise bt MPN numbers varies for different materials
    how to do this?
    i cant do it manually bcz there sre around 15000 materials are there...
    can anybody help me on this?
    Regards
    Smitha

    there is no standard program for deletion,  through LSMW recording method possible to delete the materiasl.
    goto LSMW tcode and create programt subproject and object  goto step 1 select the second method that is RECORDING  , here you need to record the MM06 tcode and process the recoding...
    the tcode MM06  is set the deletion flag.
    if you want delete alla metarial based on client level  use MMDE tcode.

  • How to lock LSMW Obj.

    Hi ,
        How to Lock LSMW Object. Restrict other users for changing.
    Thanks
    vinod.

    Hi!
    I don't know how to lock, but if you don't want other changes, just download the project (or object) to local PC. Before using next time, upload again.
    That's also good to get 'immediate' transport to other systems, you don't have to bother with transport requests when in a hurry.
    Regards,
    Christian

  • How to use LSMW to upload database table directly from flat file extract

    Hi Guru's,
    I am new to LSMW tool. I have searched the fourm before posting this thread for my issue but i didn't find any good posts for the same.
    my requirement is : I will have a flat ( tab -delimited ) or Excel file with number of records downloaded using the databrowser for some of standard tables from one SAP systesm  . I wanted to upload the records using the LSMW  to the same tables  in some other SAP systesm . Please help me to How to upload the same using the LSMW.
    Thanks & Regards,
    Praveen.

    Hi Praveen,
    There is a risk trying to migrate data directly into standard tables because this can generate database inconsistences or wrong inserted data according to what is customized in the target system. I do not recommend migrate like this. 
    With LSMW you use objects like direct input programs, idocs, bapis and recorded batch input. Try to create a project and use an standard object for your data. Also, check in SXDA transaction (Goto-->DX programs) if there is a standard program for your data.
    Anyway, if you want to upload data directly to tables, read below thread:
    ["UPLOAD  CSV  FILE";
    [how to upload .csv file into a custom table;
    Regards,
    Roger

  • How to schedule lsmw in background

    hai all,
               can any one tell me how can lsmw for a transaction can be background scheduled.

    use the program  /sapdmc/sap_lsmw_interface.
    create a variant with your project name, sub project name, etc..
    you can schedule this program for background execution...
    else, can call it from another program..
    just pseudocode...
    L_JOBNAME = some name for job.  "'PURCHASEINFODL'.
      L_SELECTION_SET = your variant name . "  'PURCH_INFO_DEL'.
      CONCATENATE L_JOBNAME SY-UNAME SY-DATUM
            INTO L_JOBNAME SEPARATED BY '_'.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          JOBNAME          = L_JOBNAME
        IMPORTING
          JOBCOUNT         = L_JOBNO
        EXCEPTIONS
          CANT_CREATE_JOB  = 1
          INVALID_JOB_DATA = 2
          JOBNAME_MISSING  = 3
          OTHERS           = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
              EXPORTING
    *            DESTINATION = 'KJAT'
                  DESTINATION    = SY-PDEST
                   COPIES         = 0
                   IMMEDIATELY    = ' '
                   RELEASE        = ' '
                   NEW_LIST_ID    = 'X'
                   LINE_SIZE      = '255'
                   LINE_COUNT     = '65'
                   SAP_COVER_PAGE = ' '
                   COVER_PAGE     = ' '
                   RECEIVER       = SY-UNAME
                   NO_DIALOG      = 'X'
              IMPORTING
                   OUT_PARAMETERS = PRINT_PARAMETERS.
        SUBMIT /SAPDMC/SAP_LSMW_INTERFACE
                                USING SELECTION-SET L_SELECTION_SET
                                TO SAP-SPOOL
                                SPOOL PARAMETERS PRINT_PARAMETERS
                                WITHOUT SPOOL DYNPRO
                                VIA JOB L_JOBNAME NUMBER L_JOBNO
                                AND RETURN.
        IF SY-SUBRC = 0.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              JOBCOUNT             = L_JOBNO
              JOBNAME              = L_JOBNAME
              STRTIMMED            = 'X'
            EXCEPTIONS
              CANT_START_IMMEDIATE = 1
              INVALID_STARTDATE    = 2
              JOBNAME_MISSING      = 3
              JOB_CLOSE_FAILED     = 4
              JOB_NOSTEPS          = 5
              JOB_NOTEX            = 6
              LOCK_FAILED          = 7
              INVALID_TARGET       = 8
              OTHERS               = 9.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            MESSAGE ID 'BT' TYPE 'I' NUMBER 156 WITH L_JOBNAME.
          ENDIF.
        ENDIF.
    WHILE BJOB_FINISHED IS INITIAL.
          WAIT UP TO 1 SECONDS.
          CALL FUNCTION 'BP_JOB_CHECKSTATE_SM37B'
            EXPORTING
              DIALOG                             = 'N'
              JOBCOUNT                           = L_JOBNO
              JOBNAME                            = L_JOBNAME
              OK_JOB                             = 0
              NOT_OK_JOB                         = 0
           IMPORTING
    *      STATUS_ACCORDING_TO_DB             = L_JOBSTATUS
              ACTUAL_STATUS                      = L_JOBSTATUS
    *      OK_JOB                             =
    *      NOT_OK_JOB                         =
           EXCEPTIONS
             CHECKING_OF_JOB_HAS_FAILED         = 1
             CORRECTING_JOB_STATUS_FAILED       = 2
             INVALID_DIALOG_TYPE                = 3
             JOB_DOES_NOT_EXIST                 = 4
             NO_CHECK_PRIVILEGE_GIVEN           = 5
             READY_SWITCH_TOO_DANGEROUS         = 6
             OTHERS                             = 7.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            CASE L_JOBSTATUS.
              WHEN 'F'.
                MOVE 'F' TO BJOB_FINISHED.
                MESSAGE I903. " WITH TEXT-R07.
              WHEN 'R'.
                CLEAR BJOB_FINISHED.
              WHEN 'C'.
                MOVE 'C' TO BJOB_FINISHED.
                MESSAGE I904. " WITH TEXT-R08.
              WHEN 'A'.
                MOVE 'A' TO BJOB_FINISHED.
                MESSAGE I904. " WITH TEXT-R08.
              WHEN OTHERS.
                CLEAR BJOB_FINISHED.
            ENDCASE.
          ENDIF.
        ENDWHILE.

  • How to use LSMW in CL20N

    Hello! I'm a begginer in SAP and I really need help.
    I saw a lot of threads about this subject and, apparently, the solution is to use one of the following BAPIs (I'm not sure which one):
    BAPI_OBJCL_CREATE
    BAPI_OBJCL_CREATE_KEY
    BAPI_OBJCL_CHANGE
    BAPI_OBJCL_CHANGE_KEY
    OK, but how do I use it? I don't even know where to start.
    I'm sorry for my lack of knowledge.
    Can anyone help me?

    The below document on SCN by Ravi Sankar Venna
    LSMW for Functional Consultants in simple step-by-step way
    is the best help on LSMM. I have been using this in so many of my projects including roll outs, Support and implementation.
    Regards
    Sanil Bhandari

  • How to handle lsmw table control

    i have to update line items for tcode : v-45. through LSMW.
    please let me know how to handle multiple line items.

    Hi Bala Krishna,
    1. TCode : LSMW.
    2. Enter Project name, sub project name and object name.
    Execute.
    3. Maintain object attributes.
    Execute
    select Batch Input recording
    goto->Recording overview
    create
    recording name.
    enter transaction code.
    start recording
    do recording as per ur choice.
    save + back.
    enter recording name in lsmw screen.
    save + back
    Now there will be 14 steps.
    2. MAINTAIN SOURCE STRUCTURES.
    Here you have to enter the name of internal table.
    display change
    create
    save + back
    3. MAINTAIN SOURCE FIELDS.
    display change
    select structure
    source_fields->copy fields.
    a dialogue window will come .
    select -> from data file
    apply source fields
    enter No. of fields
    length of fields
    attach file
    save + back
    4. MAINTAIN STRUCTURE RELATIONS
    display change
    save + back
    5. MAINTAN FIELD MAPPING & CONVERSION RULE
    display change
    click on source field, select exact field from structue and enter
    repeat these steps for all fields.
    save+back
    6. MAINTAIN FIXED VALUES, TRANSACTION, USER DEFINED
    execute
    save + back
    7. SPECIFY FILES.
    display change
    click on legacy data
    attah flat file
    give description
    select tabulatore
    enter
    save + back
    8. ASSIGN FILE
    execute
    display change
    save + back
    9. IMPORT DATA.
    execute
    display change
    save + back
    10. DISPLAY IMPORTED DATA
    enter ok, it willl show records only.
    back
    11. CONVERT DATA
    execute
    display change
    save + back
    12. DISPLAY CONVERTED DATA
    execute
    display change
    save + back
    13. CREATE BATCH INPUT SESSION
    tick keep batch input folder
    F8
    back
    14. RUN BATCH INPUT SESSION.
    sm35 will come
    Object name will be shown here
    select object & process
    Reward if useful.
    Thanks
    Aneesh
    ~from forum.

  • How to install LSMW in my pc

    hai ,
            i am using EE 4.7v ersion. how to install or use LSMW in my pC. col\uld u plz tell me the exact procedure to add LSMW in my pC.

    Hi,
    You can download the LSMW at no cost from SAPNet under Services, SAP Methodology and Tools, category Tools.
    If you are an existing SAP customer with an OSS ID, you can access the SAP Service Marketplace to download the  LSWM for your Basis teams to install to your SAP system: http://service.sap.com/lsmw
    Cheers,
    SImha.

  • How session in lsmw is processed in background

    Hi abap-experts,
               i have been working on lsmw last 1 week.....and know lsmw steps quite well...... my doubt is in the last two steps where we create session and run it in background.........what actually happens..........the data is uploaded on SAP...if yes.........then how much time does it takes......it will be great if anyone explain me this last two steps in detail. Also is lsmw very vast.........
         Thanks in advance

    Hi Nitin,
    There is no as such step in any of the LSMW steps where you can upload data into SAP. The only way you can do it is through going into SM35 transaction code. To make it more clearer please see the explaination of last two steps which you asked for :
    1) Create Batch Input session : This particular step will result into the creation of session in batch input: session overview screen i.e. in SM35 transaction code. The session will only possess the details of screen numbers, field names, field values etc which are used as a reference while uploading data likewise I explained earlier.
    2) Run Batch Input session : This particular step will prompt you to Batch Input : Session overview screen where your session is created. You have to select your session and select ' PROCESS' button on the top. Once you select that button you will be asked that whether you want to sun the sessioin background or foreground. Here, if your session is having lots of records for eg more than 10-15 records then process your session in background otherwise you can process the session in foreground as well.
    Hope this will help you out.
    Feel free to reply back if you still have some doubt.
    Regards
    VJ

Maybe you are looking for

  • Need help to use 'When' clause in CTL file

    Hi, I have a requirement in ctl file while loading file names in to a table we need to ignore if the filename already exist in the table eg: load infile.txt into a when filename not in (select filename from a) append filename varchar(1000) is it poss

  • Oracle troubleshooting when I have no info in the alert log

    Hello everyone, I'm running Oracle 10g on Solaris 10. I performed a restore yesterday, and my DB instance was running smoothly. This morning I discovered that Oracle died on me "silently", that is, nothing was recorded in the alert log - the last ent

  • Need help setting up a mac to mac network (2 machines)

    First, I apologize for the cross posting, but this got no replies in the networking category. I have a new mac mini and I'm struggling to setup a network with the mini that shows my old G5 dual 1.8. The old computer has two internal hard drives. I've

  • Format/hyperlink certain text in the conversation window using an API plugin

    Hi, I want to format/hyperlink certain text and make it clickable in the conversation window of Lync. The click itself will execute a Desktop application. Is this possible via an API plugin and is there example code on how to manipulate the conversat

  • ICloud Photo uploading

    Hi, I am having problems uploading photos from iPhotos on my MacBook Pro to iCloud Photos on iCloud Drive. Its is telling that the file format is incorrect. Having a look into the detail, it tell me that the format is .jpg and it only can upload .jpe