Lsmw with help of bapi

Hi All
i am doing LSMW with help of BAPI for transaction mm01. Initially i used the bapi name "bapi_standardmaterial_create" but it do not allow me for any method like create, edit etc. then i used the bapi name "bapi_material_savedata" but i do not get the "Business object name " and method name for this bapi.can anyone guide me how to do that.
And if anyone has the documet regarding steps follow in the lsmw with bapi with configuratin then please tell me.

Hi
Please check these threads
Re: LSMW with BAPI and IDOC
https://forums.sdn.sap.com/click.jspa?searchID=292418&messageID=2532904
https://forums.sdn.sap.com/click.jspa?searchID=292418&messageID=2796820
https://forums.sdn.sap.com/click.jspa?searchID=292418&messageID=2549249
https://forums.sdn.sap.com/click.jspa?searchID=292418&messageID=2545661

Similar Messages

  • While LSMW   with BAPI method doing is  any prerequisite required.

    Hi,
    When i entered  the business object in lsmw   with bapi method.
    i am getting the error messge is  enter the valid value. when i  press f4 its showing the object.but when   enter the method its giving the error messge is enter the value. when i checked through BAPI tcode its avaliable.
    Object name is  BUSISM007.
    method is  CREATEFROMDATA.
    if anybody knows it would  be helpful.
    regards
    Diva

    check it BUSISM007---->not found
    Maintain the default values for IDoc inbound processing..
      in initial screen of lsmw(project, subproject)..
        setting--->idoc inbound processing

  • LSMW with BAPI for BAPI_CONTRACT_CREATE

    Hi,
    I am using LSMW with BAPI for creating purchasing contract.
    I got status of the Idoc as " 64 " means Idoc is ready to transferred to application but when i go to next step ...
    I am getting dump when I executing the step  "Start Idoc Processing"
    The errors shows like this: - "Object cannot be assigned to null"
    Any help on this:-

    yes ..
    I can see the data into the idoc.
    But when processing this idoc into application...then going into dump.
    Any ideas...Please let me know.

  • By using lsmw with bapi

    hi experts,
         by using bapi_po_create, i have to upload the data by using lsmw.please help me.what are the step to upload the data?
                                                         thank you
    with regards,
    rohit

    Refer these links:
    1. BAPI And LSMW and
    2. Getting BAPIs into LSMW?
    Regards,
    Ravi

  • LSMW with bapi BAPI_REQUISITION_CREATE

    Hi
    I'm creating an LSMW for create purchase requisition with Bapi (BAPI_REQUISITION_CREATE)
    I'm trying to upload 2 items for a PR but the LSMW is creating 2 PR with each item.
    How can I tell to the LSMW that I have to item for the same PR?
    Remember this bapi doesn't has header.

    Hi,
    you need to define hierarchy in your in put file to merge required lines into one BAPI call. You can find some examples how to create order with multiple items (for example [this one|http://www.scribd.com/doc/6646673/Lsmw-With-Bapi]). So you can easily adapt it to your BAPI.
    Cheers

  • About bapi with help of example

    about bapi with help of example plz dont give links.

    With the correct customizing (order types, etc...) the following BAPI will create a PM order for you.
    Naturally the master data is also required to be created in SAP (Technical objects, Work places, etc...)
    *& Report  Z_BAPI_ALM_ORDER_MAINTAIN_TEST                              *
    REPORT  z_bapi_alm_order_maintain_test.
    TABLES: mara,
            resb.                               "anyagfoglalások táblája
    DATA: it_methods LIKE STANDARD TABLE OF bapi_alm_order_method,
          wa_methods LIKE LINE OF it_methods.
    DATA: it_header LIKE STANDARD TABLE OF bapi_alm_order_headers_i,
          wa_header LIKE LINE OF it_header.
    DATA: it_operation LIKE STANDARD TABLE OF bapi_alm_order_operation,
          wa_operation LIKE LINE OF it_operation.
    DATA: it_component LIKE STANDARD TABLE OF bapi_alm_order_component,
          wa_component LIKE LINE OF it_component.
    DATA: it_component_up LIKE
                          STANDARD TABLE OF bapi_alm_order_component_up,
          wa_component_up LIKE LINE OF it_component_up.
    DATA: et_numbers LIKE STANDARD TABLE OF bapi_alm_numbers,
          wa_numbers LIKE LINE OF et_numbers.
    DATA: et_extension_in LIKE STANDARD TABLE OF bapiparex,
          wa_extension_in LIKE LINE OF et_extension_in.
    DATA: et_return LIKE STANDARD TABLE OF bapiret2,
          wa_return LIKE LINE OF et_return.
    DATA: it_resb LIKE STANDARD TABLE OF resb,
          wa_resb LIKE LINE OF it_resb.
    DATA: lv_commit TYPE i.
    PARAMETERS: p_test AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: p_create RADIOBUTTON GROUP rg1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 4(30) text-rcr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: p_change RADIOBUTTON GROUP rg1.
    SELECTION-SCREEN COMMENT 4(30) text-rch.
    PARAMETERS: p_aufnr LIKE aufk-aufnr MEMORY ID anr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_compon AS CHECKBOX DEFAULT 'X'.
    PARAMETERS: p_partn AS CHECKBOX DEFAULT 'X'.
    START-OF-SELECTION.
      IF p_aufnr IS INITIAL.
        MOVE '007321002921' TO p_aufnr.
      ENDIF.
      PERFORM it_methods_fill.
      PERFORM it_header_fill.
      PERFORM it_operation_fill.
      IF p_compon = 'X'.
        PERFORM it_component_fill.
      ENDIF.
      REFRESH et_numbers.
      break zaladev.
      CALL FUNCTION 'Z_BAPI_ALM_ORDER_MAINTAIN'
        TABLES
          it_methods             = it_methods
          it_header              = it_header
    *   IT_HEADER_UP           =
    *   IT_HEADER_SRV          =
    *   IT_HEADER_SRV_UP       =
    *   IT_USERSTATUS          =
    *   IT_PARTNER             =
    *   IT_PARTNER_UP          =
          it_operation           = it_operation
    *   IT_OPERATION_UP        =
    *   IT_RELATION            =
    *   IT_RELATION_UP         =
          it_component           = it_component
          it_component_up        = it_component_up
    *   IT_TEXT                = it_text
    *   IT_TEXT_LINES          =
          extension_in           = et_extension_in
          et_return              = et_return
          et_numbers             = et_numbers.
      CLEAR lv_commit.
      LOOP AT et_return INTO wa_return.
        IF wa_return-type = 'S' AND NOT wa_return-message_v2 IS INITIAL.
          IF p_test IS INITIAL.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
            lv_commit = 1.
          ENDIF.
          EXIT.
        ENDIF.
      ENDLOOP.
      IF lv_commit IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      ENDIF.
      break zaladev.
    *&      Form  it_methods_fill
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM it_methods_fill.
      IF p_create = 'X'.                               "LÉTREHOZÁS
        MOVE '1' TO wa_methods-refnumber.
        MOVE 'HEADER' TO wa_methods-objecttype.
        MOVE 'CREATE' TO wa_methods-method.
        MOVE '%00000000001' TO wa_methods-objectkey.
        APPEND wa_methods TO it_methods.
        MOVE '1' TO wa_methods-refnumber.
        MOVE 'OPERATION' TO wa_methods-objecttype.
        MOVE 'CREATE' TO wa_methods-method.
        MOVE '%000000000010010' TO wa_methods-objectkey.
        APPEND wa_methods TO it_methods.
        MOVE '2' TO wa_methods-refnumber.
        MOVE 'OPERATION' TO wa_methods-objecttype.
        MOVE 'CREATE' TO wa_methods-method.
        MOVE '%000000000010020' TO wa_methods-objectkey.
        APPEND wa_methods TO it_methods.
        MOVE '3' TO wa_methods-refnumber.
        MOVE 'OPERATION' TO wa_methods-objecttype.
        MOVE 'CREATE' TO wa_methods-method.
        MOVE '%0000000000100200010' TO wa_methods-objectkey.
        APPEND wa_methods TO it_methods.
        MOVE '4' TO wa_methods-refnumber.
        MOVE 'OPERATION' TO wa_methods-objecttype.
        MOVE 'CREATE' TO wa_methods-method.
        MOVE '%0000000000100200020' TO wa_methods-objectkey.
        APPEND wa_methods TO it_methods.
        IF p_compon = 'X'.
          MOVE 1 TO wa_methods-refnumber.
          MOVE 'COMPONENT' TO wa_methods-objecttype.
          MOVE 'CREATE' TO wa_methods-method.
          MOVE '%00000000001' TO wa_methods-objectkey.
          APPEND wa_methods TO it_methods.
          MOVE 2 TO wa_methods-refnumber.
          MOVE 'COMPONENT' TO wa_methods-objecttype.
          MOVE 'CREATE' TO wa_methods-method.
          MOVE '%00000000001' TO wa_methods-objectkey.
          APPEND wa_methods TO it_methods.
        ENDIF.
        MOVE '1' TO wa_methods-refnumber.
        MOVE '' TO wa_methods-objecttype.
        MOVE 'SAVE' TO wa_methods-method.
        MOVE '%00000000001' TO wa_methods-objectkey.
        APPEND wa_methods TO it_methods.
      ELSE.                                            "MÓDOSÍTÁS
        MOVE '1' TO wa_methods-refnumber.
        MOVE 'HEADER' TO wa_methods-objecttype.
        MOVE 'CHANGE' TO wa_methods-method.
        MOVE p_aufnr TO wa_methods-objectkey.
        APPEND wa_methods TO it_methods.
        IF p_compon = 'X'.
          MOVE 1 TO wa_methods-refnumber.
          MOVE 'COMPONENT' TO wa_methods-objecttype.
          MOVE 'CHANGE' TO wa_methods-method.
          MOVE p_aufnr TO wa_methods-objectkey.
          APPEND wa_methods TO it_methods.
          MOVE 2 TO wa_methods-refnumber.
          MOVE 'COMPONENT' TO wa_methods-objecttype.
          MOVE 'CHANGE' TO wa_methods-method.
          MOVE p_aufnr TO wa_methods-objectkey.
          APPEND wa_methods TO it_methods.
          MOVE 3 TO wa_methods-refnumber.
          MOVE 'COMPONENT' TO wa_methods-objecttype.
          MOVE 'DELETE' TO wa_methods-method.
          MOVE p_aufnr TO wa_methods-objectkey.
          APPEND wa_methods TO it_methods.
        ENDIF.
        MOVE '1' TO wa_methods-refnumber.
        MOVE '' TO wa_methods-objecttype.
        MOVE 'SAVE' TO wa_methods-method.
        MOVE p_aufnr TO wa_methods-objectkey.
        APPEND wa_methods TO it_methods.
      ENDIF.
    ENDFORM.                    " it_methods_fill
    *&      Form  it_header_fill
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM it_header_fill .
      IF p_create = 'X'.                               "LÉTREHOZÁS
        MOVE '%00000000001' TO wa_header-orderid.
        MOVE 'D210' TO wa_header-order_type.           "rendelésfajta
        MOVE '2000' TO wa_header-planplant.            "tervez&#337; gyár
        MOVE '19' TO wa_header-mn_wk_ctr.              "fel.munkahely
        MOVE '2000' TO wa_header-plant.                "fel.munkahely gyára
        MOVE 'CUV-SZV-CSUR-ATEM-I...' TO wa_header-funct_loc. "m&#369;sz.hely
        MOVE '' TO wa_header-equipment.                "berendezés
        MOVE '' TO wa_header-material.                 "anyagszám
    *    MOVE '' TO wa_header-LOC_WK_CTR.               "fel.munkahely
    *    MOVE '' TO wa_header-LOC_COMP_CODE.            "vállalat
    *    MOVE sy-datum TO wa_header-START_DATE.         "kezdés dátuma
    *    MOVE sy-datum TO wa_header-FINISH_DATE.        "befejezés dátuma
    *    MOVE '' TO wa_header-BASICSTART.               "kezdés id&#337;pontja
    *   MOVE '' TO wa_header-BASIC_FIN.                "befejezés id&#337;pontja
        MOVE 'Teszt szöveg 1' TO wa_header-short_text.  "szöveg
        APPEND wa_header TO it_header.
      ELSE.                                            "MÓDOSÍTÁS
        MOVE p_aufnr TO wa_header-orderid.
        MOVE 'CUV-SZV-CSUR-ATEM-II..' TO wa_header-funct_loc. "m&#369;sz.hely
        MOVE 'Teszt szöveg módosítva 2' TO wa_header-short_text.  "szöveg
        APPEND wa_header TO it_header.
      ENDIF.
    ENDFORM.                    " it_header_fill
    *&      Form  it_operation_fill
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM it_operation_fill .
      IF p_create = 'X'.                                "LÉTREHOZÁS
        MOVE 10 TO wa_operation-activity.             "m&#369;velet
        MOVE ''     TO wa_operation-sub_activity.         "al-m&#369;velet
        MOVE 'PM01'     TO wa_operation-control_key.         "vezérl&#337; kulcs
    *    MOVE '19'   TO wa_operation-WORK_CNTR.            "munkahely
    *    MOVE '2000' TO wa_operation-PLANT.                "gyár
        MOVE ''     TO wa_operation-standard_text_key.    "mintakulcs
        MOVE 'M&#369;velet leírása 1.sor' TO wa_operation-description."leírás
        MOVE ''     TO wa_operation-vendor_no.            "szállító
    *    MOVE 3      TO wa_operation-quantity.             "mennyiség
    *    MOVE 'KG'   TO wa_operation-base_uom.             "menny.egys.
    *    MOVE 500    TO wa_operation-PRICE.                "ár
    *    MOVE 1      TO wa_operation-PRICE_UNIT.           "áregység
    *    MOVE 'HUF'  TO wa_operation-CURRENCY.             "pénznem
    *    MOVE ''     TO wa_operation-PERS_NO.              "törzsszám
        MOVE 10      TO wa_operation-work_activity.        "m&#369;velet munkája
    *    MOVE 'KG'   TO wa_operation-UN_WORK.              "m&#369;velet munkája
        MOVE 2      TO wa_operation-number_of_capacities.  "szüks. kapacitás
        APPEND wa_operation TO it_operation.
        MOVE 20 TO wa_operation-activity.             "m&#369;velet
        MOVE ''     TO wa_operation-sub_activity.         "al-m&#369;velet
        MOVE 'PM01'     TO wa_operation-control_key.         "vezérl&#337; kulcs
    *    MOVE '19'   TO wa_operation-WORK_CNTR.            "munkahely
    *    MOVE '2000' TO wa_operation-PLANT.                "gyár
        MOVE ''     TO wa_operation-standard_text_key.    "mintakulcs
        MOVE 'M&#369;velet leírása 2.sor' TO wa_operation-description."leírás
        MOVE ''     TO wa_operation-vendor_no.            "szállító
    *    MOVE 5      TO wa_operation-quantity.             "mennyiség
    *    MOVE 'KG'   TO wa_operation-base_uom.             "menny.egys.
    *    MOVE 500    TO wa_operation-PRICE.                "ár
    *    MOVE 1      TO wa_operation-PRICE_UNIT.           "áregység
    *    MOVE 'HUF'  TO wa_operation-CURRENCY.             "pénznem
    *    MOVE ''     TO wa_operation-PERS_NO.              "törzsszám
        MOVE 5      TO wa_operation-work_activity.        "m&#369;velet munkája
    *    MOVE 'KG'   TO wa_operation-UN_WORK.              "m&#369;velet munkája
        MOVE 1      TO wa_operation-number_of_capacities.  "szüks. kapacitás
        APPEND wa_operation TO it_operation.
        MOVE 20 TO wa_operation-activity.             "m&#369;velet
        MOVE 10     TO wa_operation-sub_activity.         "al-m&#369;velet
        MOVE 'PM01'     TO wa_operation-control_key.         "vezérl&#337; kulcs
    *    MOVE '19'   TO wa_operation-WORK_CNTR.            "munkahely
    *    MOVE '2000' TO wa_operation-PLANT.                "gyár
        MOVE ''     TO wa_operation-standard_text_key.    "mintakulcs
        MOVE 'Alm&#369;velet leírása 2/1.sor' TO wa_operation-description."leírás
        MOVE ''     TO wa_operation-vendor_no.            "szállító
    *    MOVE 5      TO wa_operation-quantity.             "mennyiség
        MOVE 'KG'   TO wa_operation-base_uom.             "menny.egys.
    *    MOVE 500    TO wa_operation-PRICE.                "ár
    *    MOVE 1      TO wa_operation-PRICE_UNIT.           "áregység
    *    MOVE 'HUF'  TO wa_operation-CURRENCY.             "pénznem
    *    MOVE ''     TO wa_operation-PERS_NO.              "törzsszám
        MOVE 2      TO wa_operation-work_activity.        "m&#369;velet munkája
    *    MOVE 'KG'   TO wa_operation-UN_WORK.              "m&#369;velet munkája
        MOVE 1      TO wa_operation-number_of_capacities.  "szüks. kapacitás
        APPEND wa_operation TO it_operation.
        MOVE 20 TO wa_operation-activity.             "m&#369;velet
        MOVE 20     TO wa_operation-sub_activity.         "al-m&#369;velet
        MOVE 'PM01'     TO wa_operation-control_key.         "vezérl&#337; kulcs
    *    MOVE '19'   TO wa_operation-WORK_CNTR.            "munkahely
    *    MOVE '2000' TO wa_operation-PLANT.                "gyár
        MOVE '11'     TO wa_operation-standard_text_key.    "mintakulcs
        MOVE 'Alm&#369;velet leírása 2/2.sor' TO wa_operation-description."leírás
        MOVE ''     TO wa_operation-vendor_no.            "szállító
        MOVE 5      TO wa_operation-quantity.             "mennyiség
        MOVE 'KG'   TO wa_operation-base_uom.             "menny.egys.
    *    MOVE 500    TO wa_operation-PRICE.                "ár
    *    MOVE 1      TO wa_operation-PRICE_UNIT.           "áregység
    *    MOVE 'HUF'  TO wa_operation-CURRENCY.             "pénznem
    *    MOVE ''     TO wa_operation-PERS_NO.              "törzsszám
        MOVE 3      TO wa_operation-work_activity.        "m&#369;velet munkája
    *    MOVE 'KG'   TO wa_operation-UN_WORK.              "m&#369;velet munkája
        MOVE 1      TO wa_operation-number_of_capacities.  "szüks. kapacitás
        APPEND wa_operation TO it_operation.
      ELSE.                                            "MÓDOSÍTÁS
      ENDIF.
    ENDFORM.                    " it_operation_fill
    *&      Form  it_component_fill
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM it_component_fill.
      IF p_create = 'X'.                                   "LÉTREHOZÁS
        MOVE '0010'            TO wa_component-item_number.
        MOVE '000000023336110300' TO wa_component-material.   "cikkszám
        MOVE '2000'        TO wa_component-plant.      "gyár
        MOVE '0001'        TO wa_component-stge_loc.   "raktár
        MOVE 1             TO wa_component-requirement_quantity. "felh.m.
        MOVE '0020'        TO wa_component-activity.   "m&#369;velet
        APPEND wa_component TO it_component.
        MOVE '0020'         TO wa_component-item_number.
        MOVE '000000095000001900' TO wa_component-material.   "cikkszám
        MOVE '2000'         TO wa_component-plant.      "gyár
        MOVE ''             TO wa_component-stge_loc.   "raktár
        MOVE 2              TO wa_component-requirement_quantity. "felh.m.
        MOVE '0020'         TO wa_component-activity.   "m&#369;velet
        MOVE 'N'            TO wa_component-item_cat.   "tételtípus
        MOVE '0000000014'   TO wa_component-vendor_no.   "szállító
        APPEND wa_component TO it_component.
      ELSE.                                                "MÓDOSÍTÁS
        SELECT * FROM resb
          INTO TABLE it_resb
          WHERE aufnr EQ p_aufnr.
        IF sy-subrc = 0.
          READ TABLE it_resb INTO wa_resb
            WITH KEY aufnr = p_aufnr.
          MOVE wa_resb-rsnum TO wa_component-reserv_no.
        ELSE.
          CLEAR wa_component-reserv_no.
        ENDIF.
        MOVE '0010'            TO wa_component-item_number.
        MOVE '0001'        TO wa_component-res_item.
    *    MOVE '000000023336110400' TO wa_component-material.   "cikkszám
    *    MOVE '2000'        TO wa_component-plant.      "gyár
    *    MOVE '0001'        TO wa_component-stge_loc.   "raktár
        MOVE 6             TO wa_component-requirement_quantity. "felh.m.
        MOVE '0020'        TO wa_component-activity.   "m&#369;velet
        APPEND wa_component TO it_component.
        MOVE 'X' TO wa_component_up-requirement_quantity.
        MOVE 'X' TO wa_component_up-activity.
        APPEND wa_component_up TO it_component_up.
        MOVE '0020'            TO wa_component-item_number.
        MOVE '0002'        TO wa_component-res_item.
    *    MOVE '000000095000001800' TO wa_component-material.   "cikkszám
    *    MOVE '2000'        TO wa_component-plant.      "gyár
    *    MOVE '0001'        TO wa_component-stge_loc.   "raktár
        MOVE 6             TO wa_component-requirement_quantity. "felh.m.
        MOVE '0010'        TO wa_component-activity.   "m&#369;velet
        APPEND wa_component TO it_component.
    *    MOVE 'X' TO wa_component_up-material.
        MOVE 'X' TO wa_component_up-requirement_quantity.
        MOVE 'X' TO wa_component_up-activity.
        APPEND wa_component_up TO it_component_up.
        MOVE '0030'            TO wa_component-item_number.
        MOVE '000000023336110400' TO wa_component-material.   "cikkszám
        MOVE '2000'        TO wa_component-plant.      "gyár
        MOVE '0001'        TO wa_component-stge_loc.   "raktár
        MOVE 7             TO wa_component-requirement_quantity. "felh.m.
        MOVE '0020'        TO wa_component-activity.   "m&#369;velet
        APPEND wa_component TO it_component.
      ENDIF.
    ENDFORM.                    " it_component_fill

  • I want to upload material master (MM01) using LSMW with BAPI method

    I want to upload material master (MM01) using LSMW with BAPI method and also later on I may need to change the updated data.
    Which business object and Method I should use so that i can do both.
    Thanks
    kumar n

    Hi,
    The business object is BUS1001.
    Thanks,
    Murali

  • EDI_SEGMENTS_ADD_BLOCK is empty - LSMW with BAPI

    Hi everybody!
    I'm trying configure a LSMW with BAPI, but when I try to do the step "Start IDoc Generation" I receive the message "EDI_SEGMENTS_ADD_BLOCK is empty".
    I already configured the Ports, Partner Type and Partner Number, but I am still receiving the message.
    My Example Scenario is:
    - A test LSMW to change flight table using the BAPI "BAPI_FLIGHT_SAVEREPLICA".
    - The Port is FILE type and the file is local (PC).
    -The Partner Type is LS.
    - The Partner Number is using FLIGHT_SAVEREPLICA message type in Inbound parameters.
    Anybody knows the possible cause of this?
    Tks

    After search I tried many things to solve it, in the end I just rebuild the LSMW step by step again and the problem does not appeared again...

  • How to do the lsmw with bapi?

    hi
    while upload the vendor master data using (xk01) from nonsap to sap
    how to do the lsmw with bapi? pls could u give the steps with scren shot to me.
    regards
    eswar.

    Hi
    BAPI - BAPIs (Business Application Programming Interfaces) are the standard SAP interfaces. They play an important role in the technical integration and in the exchange of business data between SAP components, and between SAP and non-SAP components. BAPIs enable you to integrate these components and are therefore an important part of developing integration scenarios where multiple components are connected to each other, either on a local network or on the Internet.
    BAPIs allow integration at the business level, not the technical level. This provides for greater stability of the linkage and independence from the underlying communication technology.
    LSMW- No ABAP effort are required for the SAP data migration. However, effort are required to map the data into the structure according to the pre-determined format as specified by the pre-written ABAP upload program of the LSMW.
    The Legacy System Migration Workbench (LSMW) is a tool recommended by SAP that you can use to transfer data once only or periodically from legacy systems into an R/3 System.
    More and more medium-sized firms are implementing SAP solutions, and many of them have their legacy data in desktop programs. In this case, the data is exported in a format that can be read by PC spreadsheet systems. As a result, the data transfer is mere child's play: Simply enter the field names in the first line of the table, and the LSM Workbench's import routine automatically generates the input file for your conversion program.
    The LSM Workbench lets you check the data for migration against the current settings of your customizing. The check is performed after the data migration, but before the update in your database.
    So although it was designed for uploading of legacy data it is not restricted to this use.
    We use it for mass changes, i.e. uploading new/replacement data and it is great, but there are limits on its functionality, depending on the complexity of the transaction you are trying to replicate.
    The SAP transaction code is 'LSMW' for SAP version 4.6x.
    Check your procedure using this Links.
    BAPI with LSMW
    http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI
    For document on using BAPI with LSMW, I suggest you to visit:
    http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Hi All, lsmw with bapi

    I am trying to do  LSMW with BAPI for transaction mm01. can anybody tell me how to do that, with steps.
    Thanks
    Ganesh vidyarthi

    Hi Ganesh
    Please check the following Links
    https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=2796820
    https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=2532904
    https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=2124208
    https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=282539
    https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=2549249

  • Send me the step step process of LSMW with BAPI

    hI
              Plz send me realetd document that expalins step step process of LSMW with BAPI
    Thanks

    http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf

  • .can anybody explain the bdc with help of an example

    i am new to bdc .can anybody explain the bdc with help of an example

    Hi,
    BDC is method to transfer legacy data into R3 system.
    Data transfer can be done in any one method below:
    BDC
    LSMW
    Direct Input method
    BAPI
    Of these BDC is subdivided into 2 types,
    Call Transaction and Session method (TCode: SM35)
    Let me give the sample prg for Call Transaction method.
    tables ZMATMASTER.
    DATA : itab like TABLE OF  ZMATMASTER WITH KEY DESCRIPTION with header line.
    DATA : IT_BDC LIKE TABLE OF BDCDATA WITH HEADER LINE.
    DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL WITH HEADER LINE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\Material.txt'
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = '#'
      TABLES
        DATA_TAB                      = itab.
    LOOP AT ITAB.
        PERFORM BDC_HEADER USING 'ZFILE_DOWNLOAD' 9001.
        PERFORM BDC_DATA   USING 'BDC_OKCODE' 'SAVE'.
        PERFORM BDC_DATA   USING 'ZMATMASTER-MNO' ITAB-MNO.
        PERFORM BDC_DATA   USING 'ZMATMASTER-DESCRIPTION' ITAB-DESCRIPTION.
        PERFORM BDC_DATA   USING 'ZMATMASTER-PLANT' ITAB-PLANT.
        PERFORM BDC_DATA   USING 'ZMATMASTER-SLOC' ITAB-SLOC.
        PERFORM BDC_DATA   USING 'ZMATMASTER-ROL' ITAB-ROL.
        PERFORM BDC_DATA   USING 'ZMATMASTER-UOM' ITAB-UOM.
        PERFORM BDC_DATA   USING 'ZMATMASTER-PRICE' ITAB-PRICE.
        PERFORM BDC_DATA   USING 'ZMATMASTER-DDAYS' ITAB-DDAYS.
        PERFORM BDC_DATA   USING 'ZMATMASTER-FLOT' ITAB-FLOT.
    ENDLOOP.
    CALL TRANSACTION 'ZTRANSCODES'
                     USING IT_BDC
                     MODE 'A'
                     UPDATE 'S'
                     MESSAGES INTO IT_MSG.
    FORM BDC_HEADER USING PROGRAMNAME SCREENNO.
         IT_BDC-PROGRAM = PROGRAMNAME.
         IT_BDC-DYNPRO = SCREENNO.
         IT_BDC-DYNBEGIN = 'X'.
         APPEND IT_BDC.
    ENDFORM.
    FORM BDC_DATA USING FNAME FVALUE.
         CLEAR IT_BDC.
         IT_BDC-FNAM = FNAME.
         IT_BDC-FVAL = FVALUE.
         APPEND IT_BDC.
    ENDFORM.
    In session method, log file can be viewed.
    Foll. is the example for session method.
    REPORT ZBDC_BATCH1                                                 .
    TABLES: ZEMPREC.
    DATA : BEGIN OF STR1,
           EMPNO(3),
           EMPNAME(15),
           SALARY(9),
           DOJ(10),
           END OF STR1.
    DATA: FNAME(100) TYPE C VALUE 'C:\EMPLOYEE.TXT.,
    DATA : BDCITAB LIKE TABLE OF BDCDATA WITH  HEADER LINE,
           MSGITAB LIKE TABLE OF BDCMSGCOLL WITH HEADER LINE.
    OPEN DATASET: FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    perform open_group.
    DO .
      READ DATASET FNAME INTO  STR1.
      IF SY-SUBRC <> 0 .
        EXIT.
      ENDIF.
      perform bdc_dynpro      using 'ZBDC_BATCH' '9000'.
      perform bdc_field       using 'ZEMPREC-EMPNO'
                                    STR1-EMPNO.
      perform bdc_field       using 'ZEMPREC-EMPNAME'
                                    STR1-EMPNAME.
      perform bdc_field       using 'ZEMPREC-SALARY'
                                    STR1-SALARY.
      perform bdc_field       using 'ZEMPREC-DOJ'
                                    STR1-DOJ.
    ENDDO.
    CLOSE DATASET FNAME.
    perform bdc_transaction using 'ZTCODE'.
    perform close_group.
    CLOSE DATASET FNAME1.
    CALL TRANSACTION 'SM35'.
      FORM open_group
    FORM open_group .
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          CLIENT   = SY-MANDT
          GROUP    = 'sample'
          HOLDDATE = SY-DATUM
          KEEP     = 'X'
          USER     = SY-UNAME.
    ENDFORM.                    "open_group
      FORM bdc_transaction
      -->  TCODE
    form bdc_transaction USING TCODE.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE     = 'ZTCODE'
        TABLES
          DYNPROTAB = BDCITAB.
    ENDFORM.                    "bdc_transaction
      FORM close_group
    FORM close_group.
      CALL FUNCTION 'BDC_CLOSE_GROUP'.
    ENDFORM.                    "close_group
      FORM BDC_DYNPRO
      -->  PROGRAM
      -->  SCREEN
    FORM BDC_DYNPRO USING PROGRAM SCREEN.
      CLEAR BDCITAB.
      BDCITAB-PROGRAM = PROGRAM.
      BDCITAB-DYNPRO = SCREEN.
      BDCITAB-DYNBEGIN = 'X'.
      APPEND BDCITAB.
    ENDFORM.                    "BDC_DYNPRO
      FORM BDC_FIELD
      -->  FNAM
      -->  FVAL
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR BDCITAB.
      BDCITAB-FNAM = FNAM.
      BDCITAB-FVAL = FVAL.
      APPEND BDCITAB.
    ENDFORM.                    "BDC_FIELD
    Hope now u get an idea abt BDC.
    Regards,
    Router

  • LSMW  with recording

    Hi,
    I have to do lsmw 'Recording' for uploading data to SAP to create listing/Exclusion (VB01).data with excel file format is given.Can anyone send me the detail steps required.I have not done it before.
    useful answers will be appriciated.
    Thankx in adv.
    regards,
    Tanmay

    Hi..
    refer to the following links..
    http://www.sap-img.com/sap-data-migration.htm
    http://www.sapgenie.com/saptech/lsmw.htm
    http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
    http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Word-17643ed1d6d658821_glossary
    LSMW Documents
    http://esnips.com/doc/8e732760-5548-44cc-a0bb-5982c9424f17/lsmw_sp.ppt
    http://esnips.com/doc/f55fef40-fb82-4e89-9000-88316699c323/Data-Transfer-Using-LSMW.zip
    http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt
    http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt
    http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf
    refer the following link
    http://sapbrain.com/TUTORIALS/TECHNICAL/LSMW_tutorial.html
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/7a/5e3d38faba11d1b40f006094b944c8/frameset.htm
    http://allsaplinks.com/lsmw.html
    -kothai.

  • How do I use LSMW with a bespoke dataload program?

    Hello data migration gurus, I need your help.
    I need to migrate data from a legacy system into a suite of bespoke functionality we've written within SAP CRM. We are planning to write a program to perform the load. However we would like such a program to be reusable, so it makes sense to keep the data load separate from the data formatting, which may vary between customers.
    The obvious answer is to use LSMW for the data formatting, calling our load program as the last step. However in LSMW you can only choose from a list of standard dataload programs. Does anyone know how to use LSMW with a bespoke program? It looks like transaction SXDA might be involved, but it isn't too clear. If anyone has done this kind of thing elsewhere, advice would be much appreciated!
    Obviously as an alternative we could just write a separate program to format the data - it would just be a lot better if we could use LSMW.

    No longer required.

  • LSMW with RSADRLSM02

    HI FOLKS,
    i want to do datamigration using lsmw with directinput method
    i want to upload the data for business address services/regionla structure the correspoind sap std program is RSADRLSM02.
    can anyone let me know how to proceed from step 2 to  5 i mean how to create the structure and assing the source fields and mappind logic
    flatfile is containing with cityno, cityname, streetno, streetname and i am getting struck at the point where at the end it is asking the logicalfile how to solve
    please someone can help me it is very urgent
    can anyone let me know how to create the logical file in file transaction and how to assign it to the standard application
    hello common guys
    lot of experts r here someone help to solve my proble plz it is very urgent
    thanks in advanse
    naveen
    Message was edited by: NAVEENKUMAR GUDURI
    Message was edited by: NAVEENKUMAR GUDURI

    Hi Naveenkumar,
    Please check this link which you can download LSMW documentation. It is very helpful and show you step by step on how to setup. Go to ABAP Tools -> ABAP utilities area and click on LSMW Described link.
    http://www.sapgenie.com/abap/
    Hope this will help.
    Regards,
    Ferry Lianto

Maybe you are looking for

  • I cannot open app store

    I have a new replacement iphone 4S and it cannot open itunes or app store on my local wifi but  will work on 3G with wifi off. However, Safari works fine on the wifi. My wife's iphone does not have this problem on same wifi. Is a faulty iphone? I hav

  • How to change backup location in suspend mode?

    Hello I am trying to change the backup location in an image that is in suspend mode to different location into different deployment share. I have tried modifying varialbles.dat in Minint so it will reflect the new location in new deployment share, bu

  • Iphone 3gs causes Itunes to lock up

    I purchased an Iphone 3Gs a few days ago. Since bringing it home, it locks up my Itunes when trying to sync the Iphone. My Ipod touch also does this. I have version 4.2.1 on my Iphone, and as far as I know have upgraded my Itunes to the current updat

  • Muvo2 FM USB Cable Charg

    The doco and promo material I have with my Muvo2 FM tells me that I can charge the unit via the USB cable, however when connected to the USB cable I receive no charging indicator (fashing battery level icon) like when it is plugged into the AC Power.

  • Connecting k330b to internet, after one botton reboot

    Hay People , i got a problem, anyway didnt make a copy of system when first purchase, so i had a problem with the registry, that showed up on one of the cleaning scans, so i told it to fix it after several times it said fixed, but then would not go t