Lsmw doubt in Bapi method

hi experts,
     I am new for LSMW, i know the first 2 method, How to use BAPI in lsmw,( For example creation of BOM).
    Point will be sure.
thanks,
Regards,
Gowri

A standard test report is attached to BAPI CREATEFROMDAT2, as shown in transaction SXDA/Goto/DX-Program library/Sales order/CreateFromDat2 (Its name is SD_CREATE_TEST_DATA). You can use it as follows:
Run SXDA/Goto/DX- tools/
object type = BUS2032
Program type = bapi
program = CREATEFROMDAT2
file type = physical
file name = <give a name here, say order.txt>
Select From test program pushbutton and the test report is ran and downloads already existing orders to your file name. You can display it or even change it.

Similar Messages

  • Netprice Picked up from last document-Open PO load using LSMW BAPI method.

    Hi Experts,
    I m doing Open PO load using LSMW BAPI method...(BAPI_PO_CREAT1).
    Inside the LSMW BAPI picks up the NETPR value from the last document and doesnt consider the value from load file...
    Please advice me how to handle this issue...
    I tried giving values to field CALCTYPE at item level or POCOND table with with carry out new pricing options....but nothig works for me...
    PLease give your valuable inputs to achieve the requirement....
    Bharathi.J

    read OSS Note 580225 - Purchasing BAPIs: Conditions and pricing

  • Error while creating the ASSET using LSMW BAPI method ( BUS1022 )

    Hello,
    Im creating assets using the below LSMW BAPI method
    Business Object      BUS1022     
    Method                     CREATEINCLVALUES
    Message Type         FIXEDASSET_CREATEINCLVALU
    Basic Type              FIXEDASSET_CREATEINCLVALU
    the following errors were triggered while populating the values to ACQ_VALUE and ORD_DEP value.
    Correction to ordinary dep. greater than acc. dep. in area 01
    Correction to ordinary dep. greater than acc. dep. in area 30
    Correction to ordinary dep. greater than acc. dep. in area 31
    Correction to ordinary dep. greater than acc. dep. in area 32
    if i pass only ACQ_VALUE, I am able to create the asset with out any issues.
    Can you guys plz guide me to fix this issue to create the asset with both ACQ_VALUE and ORD_DEP values??
    Cheers,
    Sriram.

    Hello,
    Review AO21.
    Regards
    Waza

  • In LSMW how to include customer fields in BAPI method ?

    Hi all,
    We have a requirement to use BAPI method in LSMW. We have some custom fields defined needs to be handled in BAPI structures.Please tell me how to handle BAPI extension structures(EXTENSIONIN/OUT) in LSMW.

    Hi Venugopal,
    You can use the sold to party field fiield for your requirement.
    Press f4, you will get a pop up to select customer depending on various selection criteria including customer name.
    If can enter the customer name, which will sort out the sold to party number whihc you can use.
    If this is not wat is required you have to copy the transaction and create a new Zreport.
    Hope this helps you.
    Thanks
    Arun

  • Unable to create PO with multiple line items through LSMW-BAPI method

    Hi All,
    I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDOC and uses BAPI_PO_CREATE1 to ultimately post the PO in the system. I am trying to create PO from a single file which contains both Header and Item data.
    Now my problem is that everytime PO is being created with Single line item only. Everytime I am giving multiple item data in the source file LSMW is preparing multiple IDOCs for multiple line items. As per my understanding this is happenng since header and item is in the same hierarchy level of IDOC type PORDCR102 and the control record is inserted for every line item in the source file.
    It seems that through LSMW-BAPI  it is not possible to create PO with multiple line items. Can anybody provide some input regarding this? Thanks in advance.
    BR,
    Atanu Mukherjee

    Solved by myself.
    Earlier the problem was that LSMW was not being able to recognize items under same header. It was creating new IDOCs every time it gets a new item. To enable this we need to create two structure HEADERDATA and ITEMDATA.  Two additional identifier fields with identifier value 'H' and 'I' should be added in these two structures respectively. Then we need one sequential file with the identifiers field followed by the header and Item data. Example:
    H~header data
    I~item data
    I~item data 
    This would help the standard program to understand what are the items under same header and ultimately create PO with multiple line items.
    BR,
    Atanu Mukherjee

  • Multiple files in LSMW-BAPI method

    Hi,
    I am facing the following problem with the LSMW-BAPI method...
    I got around 20,000 record to be posted....and my LSMW-BAPI method is taking 4 hours to load them..so how can i reduce my time...??? is there any change of loading multiple same structure file...??? or can we run our LSMW background...
    Thanks !!

    hi
    just refer to the links,. hope they may help u some or the other way.
    BAPI
    http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sapgenie.com/abap/bapi/example.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g      <b>(SAP link- ultimate material )</b>
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Passing Multiple Tax classification in LSMW BAPI method

    Dear All,
    Iam using LSMW BAPI method to create and change material master. I need to pass multiple tax classification values for a single material. How can I do this. The structure used in the BAPI for passing the tax classification data is MLAN. How can I create multiple numbers of this structure. Can anybody help me please.
    Thanks in advance
    Prathib

    do you have this multiple records already in the source? Or not at all in the source?
    background for tax classification
    There is customizing to assign plants to sales organization.
    Each plant has an adress with a country.
    SAP collects all the plant countries and saves them in the tax classification table MLAN.
    Eg. if this material A has a sales org EAST that can sell from plants in JP, AU, and SG
    then you will see these 3 countries in the sales org view segment tax classification
    In case you dont have any tax classification data in the source, then it you can do it like this:
    goto the __END_OF_RECORD__  statement of  E1BP_MLAN segment in your LSMW and enter it directly as code:
    do the transfer_record as often as you need .
    DEPCOUNTRY = 'JP'
    TAX_TYPE_1 = 'MWST'
    TAXCLASS_1 = '1'
    transfer_record.
    DEPCOUNTRY = 'AU'
    TAX_TYPE_1 = 'MWST'
    TAXCLASS_1 = '1'
    transfer_record.
    DEPCOUNTRY = 'SG'
    TAX_TYPE_1 = 'MWST'
    TAXCLASS_1 = '1'
    transfer_record.

  • LSMW -BAPI method

    hi frndz..
    I am trying LSMW - BAPI method for PO creation.
    in have done 7 steps upto "assign file"
    But system is not reading line item data.
    it is reading header data only...
    I want to knw, what should i have in my file, that system will read both data's.
    or provide the file contents.
    njoy SAP..
    njoy Lyf..
    Regards,
    Amit P Hiran

    Check these LSMW links, you might get what you are looking for
    http://www.sap123.com/showthread.php?t=98
    http://help.sap.com/saphelp_erp2004/helpdata/en/7f/b6f45805b111d2b41c006094b944c8/content.htm
    http://www.mydatabus.com/visitor.php?pt=downloadFile&tc=6289701541332&cl=53&cn=000003&uid=6659
    http://www.erpgenie.com/sap/saptech/lsmw.htm
    /people/hema.rao/blog/2006/09/14/lsmw--step-by-step
    http://www.sap-img.com/sap-data-migration.htm
    http://www.erpgenie.com/sap/saptech/lsmw.htm
    http://www.allsaplinks.com/lsmw.html
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc

  • How to add Text fields while doing SO through LSMW-BAPI method

    Hi Friends,
    I am doing Sales Order data migration using LSMW-BAPI method. The BAPI that i'm using is SALESORDER_CREATEFROMDAT2
    I am able to handle all the fields except for the text fields such "Material sales text"  in the Item info and "Layoout Set Header Text" in the Header.
    Please do help me in solving my problem in whatever possible way you can.
    I am waiting for your reply.
    Thanks in advance,
    ur friend

    Dear Gaurav Anand,
    Thanks a lot.
    Can you please be a more descriptive.
    I am unable to handle the E1BPSDTEXT structure.
    When I am giving the Text field, and the corresponding TEXT_ID , It is showing an error that the address is not handled properly.
    Please explain me how to handle this error.
    Once again Thanks in advance.
    Warm regards,
    Your friend

  • LSMW/ BAPI method for Document upload (CV01N)

    Hi All,
    Could you please let me know if it is possible to use LSMW (BAPI method) for creation of document ?(using CV01N) and linking files.
    If yes, what is the business object for doing the same?
    I did came across a BAPI "BAPI_DOCUMENT_CREATE2", but in order to use it for mass upload , we will have to develop a program. SO I was trying to see of the LSMW method could be used.
    Thanks and Regards,
    Narendra

    Hi Narendra,
    LSMW is not supporting for attachements. Please check and confirm. If you have to upload bulk files then use BDC(Batch data collection) it's very useful for uploading thousands documents at a time. Ask abap'r to write a bdc program.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • 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

  • 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 by BAPI method.

    Hello all,
    I am working on a LSMW in which i call a Z func module using the BAPi method.
    For that initially i have created a RFC , relased it , created a method for it and i have called in LSMW the object of the method.
    But i am unable to see my method.
    Is there any thine else to be done for seeing the method in my LSMW ?
    Please suggest.

    HI
    i think it may helpfull for you
    BAPI method
    http://****************/Tutorials/LSMW/BAPIinLSMW/BL2.htm

  • LSMW help with DIRs by using BAPi method

    Hi experts,
    I am learning LSMW and I have been given exercise which I have to finish. The question is:
    Create a LSMW object for creation of DIRs by using BAPI method (UPLOAD_DOCUMENT)???
    Can anyone tell me how should I go forward and what DIRs stands for... ??
    I really appreciate your help..
    Regards,
       -Ashok Hansraj

    Hello Ashok,
    If you need a step - by - step approach for loading data using LSMW with various import techniques (like batch input, BAPI, IDOCS etc) you have to go thru this LSMW manual.
    And the files with DIR information, you should receive those fields from your business. Because you should know the structure of the data in those files in order to maintain source and target structures.
    Ask your business people over the format of the file you will be provided. In mean you can go thru this manual on this link.
    http://www.sapgenie.com/saptech/lsmw.htm
    Thanks,
    Naren

  • LSMW using BAPI method for ME21N

    Hi to all,
    I am using LSMW BAPI method for the transaction ME21N Iam able to post a PO document successfully, But in my flat file I have a header and followed by item in the same line, while I was posting with same header for different line items its posting different PO's for different  line items but suppose it has to post one document with multiple items.
    My flat file fields are like this : (where as ABCD my header and rest are line items) I am using only one structure 'podata' in LSMW and I am not using any identifier.
    header--Line items
    A B C D S P Q W E X
    A B C D 1 D 3  F K L
    Business Object -     BUS2012     
    Method                -    CREATEFROMDATA1
    Message Type    -    PORDCR1
    Basic Type         -     PORDCR101
    As per my requirement if I have multiple line items for the same header then only one PO should be posted.
    Could you suggest me, How can I achieve this.
    Thanks,
    Lahari

    Hi Jurgen,
    Thanks for your reply.
    As poer your suggestion, I passed my flat file data into a single file and in the begin of transaction, I divided the data into 2 structures as Header & Item.
    Still I am unable to achieve the desired results, can you please elaborate more on how SAP internally joins the structures again.
    To be more clear my flat file data look like this :
    217836     NB     1826162667     0127     00   1     LEAN SIX SIGMA PRIMER     MRO     Z     4.00     EA     60.00     1     EA     
    217836     NB     1826162667     0127     00     2     LEAN SIX SIGMA PRIMER     MRO     Z     4.00     EA     860.00     1     EA     
    217836     NB     1826162668     0127     00     1     LEAN SIX SIGMA PRIMER     MRO     Z     4.00     EA     160.00     1     EA
    217836     NB     1826162668     0127     00     2     LEAN SIX SIGMA PRIMER     MRO     Z     4.00     EA     560.00     1     EA     
    The bold ones being header and the remaining Items, the underlined field is PO number.
    In normal process this file is considered to have 4 records, and tries to create 4 PO's.But my requirement is to create only 2 PO's with 2 items each.
    Thanks.
    Lahari

Maybe you are looking for