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>

Similar Messages

  • 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

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

  • 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

  • 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

  • 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

  • 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

  • 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

  • Uploading subcontracting PO using LSMW-BAPI method

    I am trying to upload the subcontracting Purchase order using LSMW-BAPI .
    Bapi name -Create from Data1
    Business Object  -    BUS2012                             Purchase Order
    Method               -    CREATEFROMDATA1          Create Enjoy Purchase Ord
    Message Type     -    PORDCR1                           Create Purchase Order
    Basic Type          -    PORDCR102                        Create Purchase Order
    In this BAPI - for subcontracting material (component), required quantity & plant values are provided in a input file .
    When I trying to upload this PO, PO gets created but component data not getting uploaded.
    In documentation of BAPI -under restriction section -there is a restriction for subcontracting.
    So can we create Subcontracting PO using this PO.
    any solution on same.
    Because most of the conversion part is done. Only for subcontracting PO this bapi is not working.
    Please anybody know about the solution guide me ASAP.
    Thanks

    Hi Vikram,
    I am also having same scenario , I m using BAPI - BAPI_GOODSMVT_CREATE To create GR  for Subcontracting PO
    Can u please tell me how can solve this problem.
    Normal GR its working but for Subcontracting PO its not working.
    Regards,
    Sanket

  • LSMW-BAPI Method sales contract creation

    Hi,
    I have a requirement to create sales contract through batch input or bapi method or idoc .
    Please let me know if there are any existing applicable methods for it.
    with regards,
    Bharath

    Business object BUS2034, method CreateFromData.
    There is no ALE interface delivered for this BAPI in our system but you might generate with transaction BDBG.
    Regards Jack

  • LSMW-BAPI Method sales order creation

    Hi,
    Please any one guide me to create sales order using bapi method.
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Jul 1, 2011 9:23 AM

    Hi
    USE AG German key word fro sold to part and check if there is any issue with leading zeros.Post if need more help . You can pass two record for one sales order in partner function. Please check that also.

  • Upload multiple files using lsmw

    I have to upload 2 different files using lsmw..
    Please explain me the procedure..
    I made the option as sequential file in specified files..
    but i am getting error.. Using different sequential files is not allowed...

    is der some problem or just u need clarification?
    When I import the data everything seems fine... 52 entries from file 1, and 682 entries from file 2.
    In my "Fieldmapping and conversion rules" i have a statement like this:
    read table FILE2 with key oldsls = FILE1-lgart.
    My problem is that FILE2 is empty, even that I saw in my import screen that 682 entries was imported.
    in one statement, you are saying ki it seems fine then u r saying that ur file 2 is empty. HOW CAN U UPLOAD DATA FROM AN EMPTY FILE ?
    and we don't don anything in field mappng until unless v don't use complex stuctures while uploading data. LSMW takes care of everything by itself.
    Most important thing is
    reward point
    hope this will help
    bye tc
    sandy
    waiting for reward point

  • LSMW - BAPI method query

    Hi All,
    I am working on data migration activity for transactional data (<b>CONTRACTS</b>).
    I am using the LSMW tool for data migration from legacy to SAPCRM system.
    The scenario is as thus:
    Migration of transactional data(contract data) from legacy system to SAPCRM system.
    The structure of the data is as Header Data, Parent Item Level, Sub Item Level Data.
    I tried migrating data using Batch Input Recording method, but this method was not capturing the item level data.
    I require inputs and suggestions if anyone have successfully migrated TRANSACTIONAL DATA involving header, main item and sub item level data using the methods of LSMW.
    Can anyone please give me the <u><b>step by step approach</b></u> to migrate transactional data using <b>BAPI</b> method?
    Early response would be appreciated. U can also mail me at <b>[email protected]</b>
    Thanks and Regards,
    Praveen

    if it's mandatory in Dialog mode, it's mandatory for the BAPI. no exceptions that I can think of.

  • How to attach multiple files in UTL_MAIL.SEND_ATTACH_VARCHAR2 method

    Hi all ,
    I had written a pl/sql where it will write multiple csvs i.e. a.csv,b.csv,c.csv,d.csv to a location using UTL_FILE to reports folder .
    How do i attach a.csv,b.csv,c.csv,d.csv into a single mail ??
    UTL_MAIL.send_attach_raw (sender => '[email protected]',
    recipients => 'recepient.com.sg',
    subject => 'Reports',
    MESSAGE => 'Reports are attached above',
    mime_type => 'text/html; charset=UTF8',
    attachment => a.csv,
    att_inline => FALSE,
    att_filename => file1
    Edited by: 907812 on 12-Jan-2012 23:03
    Edited by: 907812 on 12-Jan-2012 23:03
    Edited by: 907812 on 12-Jan-2012 23:04
    Edited by: 907812 on 12-Jan-2012 23:04

    UTL_MAIL does not work like that - you pointing to an external file and telling it to grab it and attached it to your e-mail.
    If you refer to the manual, the attachment parameter specifies it must contain the contents of the file.
    So your code needs to open the file. Your code needs to read the contents of the file. Your code needs to close the file. Your code needs to supply the contents text to UTL_MAIL via the attachment parameter.
    And as there is only a single attachment parameter, only a single file's contents can be supplied as attachment.
    Multiple attachments? Then you need to do what UTL_MAIL does. You need to write code that creates a valid e-mail Mime body. The Mime body must allow for multiple attachment. The Mime body needs to be delivered as an e-mail via the UTL_SMTP package.

  • 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

  • SELECT_ALL in ALV GRID

    Hi, I have a requirement to add additional button on tool bar as SELECT_ALL and once we click on that it should mark to all check box. I have written like this but am geting sytac errors DESCRIBE TABLE <table> .       DO  sy-tfill TIMES.         ls_r

  • How do I recover photos off the iTunes backup from my iPhone so I can put them on my new computer?

    My computer hard drive recently crashed and is unrecoverable.  Like a dummies we didn't have it backed up.  But do I have my photos and files still on my iPhone.  So, bought a new computer with Windows 8 operating system.  Went to the iTunes store an

  • For sending file in  B2B  scenario

    Hello Friends, I need to pass a file to my client's business partner... I think its a B2B scenario... So how to transfer a file my client to  his business parntner. Please suggest which adpter to use at receiver side and how to handle the configurati

  • Warning message on MRP view

    Hi consultants, I have a material that is specified as "External Procurement" Material.   It is because it's a Subcon material.  In line with this, a production version is maintained due to some business process requirement, which the system allows. 

  • What are all those .pkg files in the Receipts folder?

    If I see files for several versions of the same, updated, program, can I delete the all but the latest file?