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

Similar Messages

  • Problem with BAPI BAPI_REQUISITION_CREATE

    Hello,
    I have problems with BAPI BAPI_REQUISITION_CREATE. I need to create Purchase requisition for services. If I use BAPI BAPI_REQUISITION_CREATE, Purchasing requisition is created, but field NETWR in table EBNK is 0. If I create purchasing requisition manualy using transaction ME51N, field NETWR in table EBNK is filled with correct price.
    Can you pls. help me, what do I wrong in calling BAPI_REQUISITION_CREATE?
    Thanks&regards,
    Jirka

    Not sure if you got your answer or went to OSS for a resolution. But, as I was searching OSS for my issue, I came across the following note:
    Note 1498435 - BAPI_REQUISITION_CREATE: EBKN-NETWR is not updated

  • 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

  • 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

  • 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

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

  • LSMW with BAPI for Person's Qualification Profile - BAPI_QUALIPROF_CHANGE

    All,
    I tried to use BAPI 'BAPI_QUALIPROF_CHANGE' to upload the qualification profile for an employee. The corresponding object type for the function module is BUS7017 (& the method is CHANGE). But in standard SAP, in the initial LSMW attributes screen, it supports only those objects with an ALE interface. But, BUS7017 does not have an ALE interface.
    It is possible to create an ALE interface for a BAPI in the transaction 'BDBG'. After creating an interface, I get the business object in the F4 help for the Business object (LSMW attributes screen). But, I get an error in the step 'Maintain structure relations'. It is saying 'target structure could not be found'.
    Can you please tell me what I am missing here. Also let me know how to generate a function module for the inbound/outbound processing of an ALE with BAPI?
    Thanks in advance.
    Regards,
    Parvath.

    Hi,
      Did u get any solution to this . I am trying to upload cost centers and facing the same problem. If you have found any solution , please pass it.
    Sutapa

  • Lsmw with Bapi Step by Step

    Hi,
    Please tell me step by step lsmw recording method with bapi.
    it's argent.

    Hi,
    Check this
    https://www.sdn.sap.com/irj/sdn/directforumsearch?threadid=&q=lsmw+tutorial&objid=f50&daterange=last90days&numresults=15
    aRs

  • 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

    how to give inbound idoc config in bapi method of lsmw..thank u..

    Hello  Rajesh
    Did you check in [SDN |Using BAPI Method in LSMW].
    so that you will get an idea before posting.
    Regards!

  • LSMW with BAPI too slow

    Hi,
    I have created a LSMW project which reads an excel file of materials and creates WM views for them. It does this by using the SAVEDATA method of the business object BUS1001006.
    It works, but is too slow: about 35 sec for each material. After some debugging I found that most of this time was spent executing a COMMIT WORK in the function module TRANSACTION_END.
    Does anyone if it possible to speed this up?
    Slath

    Hello Sir,
    I am a student who is pursuing a project that deals with JCo 3.
    I read your question on the forum and think that you have done the JCo stuff and can answer my questions.
    Kindly, try to shed some light on following question:
    Q1: I simply want to start with connecting my SAP system. I have a user ID and password for the same.
    I saw some examples where they use "JCo.createClient(....)" and "JCo.client.connect()" to simply connect the client but
    when I type in the code it shows me an error, because they are using package "com.sap.mw.jco" but since I am using JCo3,
    I don't have that package instead I have "com.sap.conn.jco" which do not have createClient function.
    Q2: By setting the classpath for "sapjco.jar" I was able to compile one of the sample programs but could not run it. Do you
    know how to run the SAP JCo program.
    Your guidance will be highly appreciated
    -Thanks
    -Dmukhi

  • 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

Maybe you are looking for