Lsmw sales order

hi folks,
Can any one send me with screenshots how to upload sales order records using LSMW bapi method ,will be rewarded with points.

Hi,
Refer this:
http://www.****************/Tutorials/LSMW/LSMWMainPage.htm
1.Similar to the PO u can do sales order.
Regards,
Shiva.

Similar Messages

  • LSMW : Sales Order DI : Extend the stucture?

    Hello Friends,
    We are currently using Direct Input approach for LSMW Sales Order. It all working fine and SO is uploaded
    But there are some 20 odd fields which our clients wants to be uploaded from legacy system [eg MUEBS (Char Display), AUDAT [Which currently is sy-datum internally]....
    Now these fields are not present in BVBAKKOM, BVBAPKOM etc structures..
    Over this I have following doubts...
    1 If we want to extend the structure how should we go about it ?
    2. If we extend the structure then do we need to regenerate the LSMW program? How to do it ?
    Please consider my case as very urgent...
    Thanks in advance.

    hi
    60000001
    This direct input program creates purchase orders using function modules. In a second step, program RM06EEI1 supplements these newly created POs with the purchase order history and the necessary accounting documents.
    Please note the following restrictions:
    The net price is based on one condition only (standard: PBXX): additional conditions (discounts, surcharges) are not supported
    Change documents cannot be compiled for the POs
    PO items with multiple account assignment cannot be transferred
    "Goods-receipt based" invoice verification is not supported
    The PO items may not relate to materials subject to split valuation
    Down payments and subsequent debits involving PO items are not possible
    Inbound deliveries are not transferred
    Subcontract orders, third-party orders, stock transport orders, service orders and release orders are not transferred
    The program reads a sequential file containing records of the structures MBEPOH (PO header) and MBEPOI (PO item), and generates purchase orders from them.
    The data is expected in the sequential file in the following order:
    For each PO header, a record of the structure MBEPOH,
    For each PO item, a record of the structure MBEPOI.
    All PO items up to the next PO header are assigned to the last-read PO header. Accordingly, the first record of the sequential file must be a PO header, whereas the last record of the file must be a PO item.
    For further information on the structure of the sequential file and on the expected field formats and contents, please refer to the Implementation Guide.
    For test purposes, you can use program RM06EEEX to generate a sequential file on the basis of POs that already exist in the system.
    Program parameters:
    You can maintain the following parameters on the initial screen:
    File name: please specify the logical file name under which the sequential file can be accessed.
    Update or test run: with these parameters you specify whether or not the program is to be run in test mode only. If you specify the test mode, all the data transfer checks are carried out without the database being updated. If you decide on the update run, the purchase orders will be added to the database after successful checking.
    Scope of log: via this parameter, you specify whether or not you wish to have detailed output of the error messages per PO item with error identification and short error text.
    60000002
    Before you begin with the actual transfer of your purchase orders using this program, certain activities must be carried out. Among other things, the data extract for this program must be created and Customizing settings checked or altered. For further information, please refer to the Implementation Guide.
    60000003
    The program log contains:
    Program statistics (start, end, number of records read etc.)
    A listing of PO numbers added
    A listing of PO numbers not added (i.e. faulty POs)
    The detailed error log per PO item supplements this, provided you have activated the output of this log via the relevant program parameter.
    This latter log contains:
    PO number
    PO item
    Message class
    Error category
    Error number
    Error short text
    60000004
    The same checks are made as in the case of the manual creation of purchase orders.
    In addition, the system checks whether the order types and item categories are allowed for automatic PO transfer (see restrictions).
    If the PO history is to be compiled using program RM06EEI1, (as per the specification in field MBEPOI-WEREF), additional checks relating to the amount and quantity fields of the invoice and goods receipts are made.
    A purchase order is only created if all PO items have passed the checking process without errors.
    60000005
    Prior to transferring purchase orders with database updating, you should carry out a database back up. Reset programs for automatically created purchase orders are currently not available.
    Restarting at the existing sequential file is possible. The program recognizes that the PO in question is not to be added again by reference to the external PO number assigned by you.
    A database commit is initiated after each newly created purchase order.
    By means of the appropriate organizational measures, please ensure that the POs created via program RM06EEI0 are not changed manually before program RM06EEI1 has been run successfully. Inconsistencies cannot otherwise be ruled out.
    The program run-time depends largely on your installation, your organization structure, and the quantity structure of your master and transaction data.
    As a rough estimate, however, it can be assumed that approx. 4000 PO items per hour can be handled.
    The complete documentation on data transfer with regard to purchase orders is available in the SAP Library:
    CA Cross-Application Components -> CA Data Transfer Workbench -> Data Transfer Objects by Application -> MM Materials Management -> MM Purchase Orders: Data Transfer Workbench.
    You may have to use one file for this. Your structure would include all of the fields for both the header and detail.
    regs
    Arun

  • LSMW - Sales Order Migration using RVINVB10

    Dear Experts,
    I have decided to use LSMW to migrate the open Sales Orders using direct input report RVINVB10.
    My question is:
    How do I enter the WBS Element PS_POSID in the item line of Account Assignment tab? There does not seem to be a field in the direct input program structure to fill this in.
    Please suggest me is it possible to create the sales orders using this report or shall I try some other methods.
    Waiting for your valuable reply.
    Thanks !!!
    Vasanth

    you can use LSMW BAPI method
    Business Object      BUS2032      Sales Order
    Method               CREATEFROMDAT2              Sales order: Create Sales
    Message Type         SALESORDER_CREATEFROMDAT2   Sales order: Create Sales
    Basic Type           SALESORDER_CREATEFROMDAT2   Sales order: Create Sales

  • LSMW Sales Order creation using Bapi method

    Hi folks ,
    iam doing Lsmw bapimethod ,sales order creation .In the step start idoc processing iam getting error "Has Not been Accepted for Processing ",why iam not getting plz let me know points will be awarded for all answers .

    Hi,
              You need to set the IDOC settings in the initial LSMW screen. It will be there in menu path.
           Award points if helpful
    Regards,
    RamaKrishna C

  • LSMW - Sales Order creation using IDoc

    Hello,
    I'm receiving a file containing different category of products and need to create a sales order (using IDoc or BAPI) per category. The input file contains UPC code, I use a SELECT statement to check the category and append the UPC code to the specific internal table .(one internal table per category). The issue I have is to do loop in all internal table and then to create a sales order. I have some difficulties to update item segment. Only one UPC is populated to the required segment. Please let me know if this could be done using LSMW.
    Thanks ! Thanks ! Thanks ! Thanks !
    Mehdi

    You can use program RVINVB10 ( Direct Input ) to create Sales Order , Before you run this program you will have to create a file with data in specific format.
    Read the documenatation of the program.
    LSMw can help in formatting the data but beetr write your own progarm to format data and then run above program as LSMW has limitations and I am not sure what type of file you are getting. In you custom program you will have more control.
    Cheers.

  • LSMW Sales Order BAPI : Header & Item Text

    Hi frenz,
           I'm migrating Sales Order data using LSMW with BAPI method. We got four files...
    one for header, one for item, one for header text, one for item text.
    Now my problem is how do i update both header and item text.
    B'cos while assigning structural relations we got only one text structure(E1BPSDTEXT) common for both header and item. So which source structure(whether header_text or item_text) should be assigned to this segment(E1BPSDTEXT)?
    Else is there any other way to update both header and item texts?
    With regards,
    praveen.

    Unfortunately, you cannot assign more than one source structure to a target structure. But you can still manipulate the code. Here is how.
    Let us say your source structure defined for item texts is ITEM_TEXTS. In your field mapping section for E1BPSDTEXT, double click the '__BEGIN_OF_RECORD__' in change mode. It will pop-up a warning message, say 'yes' and proceed. Remove all the coding that is there in this section, but copy the lines to somewhere(say x buffer) before you do that. You will need those lines below. Just add the following lines there.
    if v_transferred_texts = 'X'.
    *-- all the texts are transferred, don't need to process again.
      skip_record.
    endif.
    You need to define 'v_transferred_texts' in the
    '__GLOBAL_DATA__' section as follows.
    data: v_transferred_texts type c.
    Now double click on '_END_OF_RECORD_' in change mode. It will pop-up a warning, but you can say 'yes' and proceed. This will open up the coding window with one line of code in it 'transfer_record.'. Here you need to add your coding as follows.
    *-- move the header texts
    LOOP AT HEADER_TEXTS.
    *-- This should <b>ALWAYS</b> be there
      g_edidd_segnam = 'E2BPSDTEXT000'.
      g_edidd_segnum = '0021'.         
      g_edidd_psgnum = '000001'.       
      g_edidd_hlevel = '02'.           
      clear E1BPSDTEXT.                
    *-- fill each field of the following fields
      E1BPSDTEXT-DOC_NUMBER = SALESHEADER-ORDERNUMBER.
      E1BPSDTEXT-ITM_NUMBER = '000000'.
      E1BPSDTEXT-TEXT_ID    = HEADER_TEXTS-TEXTID.
      E1BPSDTEXT-LANGU      = SY-LANGU.
      E1BPSDTEXT-LANGU_ISO 
      E1BPSDTEXT-FORMAT_COL
      E1BPSDTEXT-TEXT_LINE  = HEADER_TEXTS-TEXT.
      E1BPSDTEXT-FUNCTION   = '005'.
      transfer_record.
    ENDLOOP.
    *-- Now move the item texts
    LOOP AT ITEM_TEXTS.
    *-- This should <b>ALWAYS</b> be there
      g_edidd_segnam = 'E2BPSDTEXT000'.
      g_edidd_segnum = '0021'.         
      g_edidd_psgnum = '000001'.       
      g_edidd_hlevel = '02'.           
      clear E1BPSDTEXT.                
    *-- fill each field of the following fields
      E1BPSDTEXT-DOC_NUMBER = SALESHEADER-ORDERNUMBER.
      E1BPSDTEXT-ITM_NUMBER = ITEM_TEXTS-ITM_NUMBER.
      E1BPSDTEXT-TEXT_ID    = ITEM_TEXTS-TEXTID.
      E1BPSDTEXT-LANGU      = SY-LANGU.
    *  E1BPSDTEXT-LANGU_ISO  =
    *  E1BPSDTEXT-FORMAT_COL
      E1BPSDTEXT-TEXT_LINE  = ITEM_TEXTS-TEXT.
      E1BPSDTEXT-FUNCTION   = '005'.
      transfer_record.
    ENDLOOP.
    *-- set the flag that the texts have been transferred
    v_transferred_texts = 'X'.
    Please let me know how it goes.
    Srinivas

  • LSMW  - Open Sales Orders

    Hello  Friends
    I want to find if anybody can guide me on how to get all open sales order tables , i want to create a format and create a flat file for uplodading the file , for this what do i need and how do i do it.
    Also for creating LSWM can i use the existing one which i can just Assign the New file to the existing one .
    Regards.

    Dear Mehmood,
    I want to find if anybody can guide me on how to get all open sales order tables
    You want to extract all the open sales orders- which you can get from Table:VBUP key in overall document status in selection screen ( You can use VBUK also- but if there are certain sales orders in which some of the items are completed or few of them open, using VBUK - you will not get exact records)
    Secondly, you can get the data by using Query also- in SQVI
    design a query with VBAK / VBAP & VBUP
    so that from VBAK you can give time period & sales area details
    from VBAP - you can enter plant relevant details to filter certain records & item category as well
    where as VBUP- filter wth the status.
    once downloaded store in flat file.
    Now Create LSMW object by using batch input recording method. after mapping the relevant fields,
    prepare the flat file in such a - it suits to the upload file / recording file. then you can upload the already downloaded n stored open sales orders in flat file.
    Hope this is what you are looking for.
    Regards,
    ReazuddinMD

  • Open sales order migration using lsmw

    Hello guys iam migrating open sales order and iam having header  fields
    AUART
    VKORG
    VTWEG
    SPART
    KUNNR
    KUNNR
    BSTKD
    BSTDK
    VBEGDAT
    VENDDAT
    item fields  are
    MATNR
    ZMENG
    SPART
    ISMACTIVATION
    what is the standard object available for this migration in lsmw.?i thought of using
    0090 salesdocument standrd object using direct input method but field ismactivation is not available in that object.
    if i go for bapi method salesorder_createfromdat2 i couldnt find the above fields for mapping in that object.but some of the guys in this forum used this bapi method  for this type of migration i dnt how they did it can u please suggest solution for this .
    Regards
    Janapathi

    Hi!
    In the given BAPI, the field names are different. You have to match them using their description or data type.
    If you check this BAPI in transaction SE37, on hte Import tab, click on the BAPISDHD1ref type.
    Here you can find the field DOC_TYPE (type AUART). With this way, you can find the matching fields.
    Regards
    Tamá

  • LSMW to create Sales Order refer to Quotation with multiple line items.

    Hi Gurus,
    I am new to LSMW, and my requirement is that, I have a file downloaded from another system, it is like this:
    Quotation No.  Sold to party  data        item no.       material no.     quatity
    556                         10000012                 10              19077                1
    556                         10000012                 20              19078                1
    557                         10000011                 10              19076                1
    And it is required I need to create orders in VA01 refering to quotations, and then delete all the items from quotation, and add the items in the file. I am now doing it through transaction recording in VA01, but I came to a difficult part, that is how I can process line items. Because the items number will only be decided at runtime, so I can not record a BDC for that. And I have read some guides on LSMW, one of it said that transaction recording in LSMW can not deal with deep structures. So could any1 help on this?
    Best regards,
    Vincent

    Dear SD Gurus n Experts,
    I have solved the above problem. But there is another problem appearing regarding the date format. Now system generating a message: Date . . is not valid.
    While I am using Date: YYYYMMDD format in flat file, which is SAP's Standard Format.
    In SDN Link: LSMW upload Sales Order using VA01/VA02     I have found that there are some date fields which are mandatory to filled. Here I have mapped
    VDATU - Requested delivery date,  BSTDK - Customer purchase order date,  PRSDT - Date for pricing and exchange rate,  BSTDK_E - Ship-to party's PO date, FKDAT - Billing Date, KORDT - Delivery Date,
    and PRGRS - Date type is Constant = D
    Can any one tell me, where is the priblem.
    With thanks,
    DSC

  • SALE ORDER CREATION WITH LSMW

    Hi
    Can we upload open sales orders through ..LSMW ...if it is posible ..pls tell me procedure
    In LSMW   Steps  recording step .. can we tcode VA01...?
    REGARDS
    SESIDHAR

    Hi
    Check this link
    [Sales order uploading through LSMW;
    And there is nothing like that you can upload only Master Data through LSMW.  Once you are able to handle LSMW you can upload any data in SAP. Yes, there may be some constraints, but an expert can manage.
    So go ahead.
    Regards
    Amitesh Anand

  • Sale order Upload thorugh LSMW

    Dear All,
    I am trying to Upload Sale order with 100 Line items through LSMW.
    system is creating 100 S.O against each line item.
    In Lsmw there is a Procedure of Using BAPI ? What is the procedure of Uploading the same.
    I don't want to use BDC's .
    Can any one guide me how to Upload 100 Line items through LSMW?
    Thanks for the Help.
    Satish

    hi
    In lsmw select the BAPI(Business object method)
    In Business Object enter BUS2032 and
    method as CREATEFROMDAT2
    If it is thriugh IDOC
    OR alternatively you can use  Standard batch/ Direct input method
    object as 0090
      And try
    regards

  • Open Sales Order Migration - LSMW (Guide)

    Hello
    I search for some guide how to migrate with LSMW open orders. I have earlier migrated with LSMW other data, but not open sales orders.
    Should I use Batch or BAPI? If BAPI, which Methode and Bisness-Object use?  Can someone  send me instruction step-by step?
    Thanks in advance.
    /Margaret

    Hi,
    If you want to use LSMW then you need to create two recordings,
    Header Data(T.Code: VA01)
    Item Data(T.Code: VA02)
    Header Recording Data:(VA01)
    1.Sales OrderType
    2.Sales Org
    3.Distr Chl
    4.Div
    5.Sold-To
    6.PO No.
    7.Data
    8.Plant(If required)
    9.Material (First line material)
    10.Qty & mandatory field as per ur system requirement.
    Item Recording Data:(VA02)
    1.Sales Document No.
    2.Item No.(20,30 etc)
    3.Material Code
    4.Qty & mandatory field as per ur system requirement
    I uploaded the same way...[LSMW|http://www.sap-img.com/general/lsmw-steps-for-data-migration.htm]
    Barathi

  • LSMW BAPI Open Sales Order Load - How to update conditions?

    Hello gurus,
    I was using the BAPI SALESORDER_CREATEFROMDAT2 to upload open sales orders. Wanted to overwrite the default PR00 pricing condition that gets pulled from the customer-material info record, with the price that was existing in the original legacy system when the order was created there. Used the E1BPCOND structure in the Idoc, but since there is no such thing as a E1BPCONDX structure(corresponding to the structure BAPICONDX in the origial BAPI) where you could specify whether the condition should be updated, added or deleted, it adds a second PR00 condition with the legacy system price. The original PR00 condition with the customer-material record price still stays there. Eventhough the order seems to be taking into consideration only the second one I added, to determine the total pricing, I am worried the original sitting there, might cause problems down the document flow. Is there a way to update the existing PR00 condition(rather than adding a new one) on the order, through some flag in the Idoc structure that I am not aware of?
    Would greatly appreciate an answer ASAP.
    Thanks a lot in advance,
    Wayfarer

    Thanks and appreciate your taking your time to reply, Gerard, I guess my problem is, we are still on 46C, and the only message type available for this BAPI is SALESORDER_CREATEFROMDAT201. Just called a friend who is on ECC 60 who confirmed that the later version of this message type, SALESORDER_CREATEFROMDAT202 has the E1BPCONDX structure. I don't have that option since on LSMW it automatically defaults to the only message type(and method CREATEFROMDAT2) that is available, when you choose business object BUS2032. Guess I am out of luck, unless you have any other options to suggest.
    Thanks,
    Wayfarer

  • Transfer of Intercompany sales orders using LSMW

    Hi
    I have to Transfer the open intercompany sales orders using LSMW. Consider a scenario where customer places an order on sales org A with plant A. sales org A raises purchase order on Sales org B with plant B. The material moves from Plant B ie supplying plant to delivering plant A. THen it is delivered to custome from plant A. Can u please tell me whether i have to pass the suppying plant or it will be determined automatically. Similarly what about the purchase requisition no. Is it created automatically.
    Thanks
    regards
    Tushar

    Hi,
    The purchase requisition is going to automatically created incase of a intercompany order  (ie nothing but the third party order).  In this case of orders the line item category in the sales order would be TAS. The intercompany sales order nothing different from a normal order during the creation of the order, after that the operations will be different from the normal standard order.  You can use the same LSMW which you have used for transfering normal standard orders.
    The configs are going to be different in the system for intercompany sales orders compared to the standard sales orders. That is the problem of the functional consultant to take care.
    Thanks,
    Mahesh.

  • LSMW - Upload Sales Orders

    Hi All,
    I've worked with LSMW to record transactions in the past, but I'm unsure of what the best approach is for sales orders. Our requirement is to upload a simple tab-delimited text file that contains the PO#, PO type, Material, Grid (we are using AFS), Name/Phone/Address of the ship-to party, and shipping notes text.
    My main question is concerned with handling the multiple line items on the orders. I have seen some posts here that suggest using one LSMW to do the header data (VA01), and then a second to do line item data (VA02). However, I need this to be one step. I see there is a BAPI with Business Object BUS2032, but I have not worked with that method.
    Any idea on the easiest way to complete this?  I'd like to have a simple step for a user to run to automate entering 15-20 orders a day.  Any help is appreciated, thanks!
    J

    Hi,
    Firstly you can create the sales orders using the BPAI with header data and for line item details you can go for anothere BAPI
    BAPI_SALESORDER_CHANGE. hope it will work.
    ~linganna

Maybe you are looking for

  • Help: How to call a plsql Package on click of a button in ADF

    Hi Guru's Please provide your suggestions, how to go ahead in ADF to call a plsql package when a button i clicked. I do have a knowledge of oracle callable statment to call the plsql package but not having any idea how to relate button click event in

  • Wireless Printing - Grrrrr !

    I'm trying to connect to my HP wireless printer - all goes well on the HP Set-Up Assitant, I get to print one page as a "test" but it does not save the settings, and fails to see it on my wireless network. !  I also try to set it through "System Pref

  • Unexpected Quit with video

    OK I know this has been discussed alot but i have tried a few different things and nothing has helped. I just got a powerbook g4 with tiger and all my sisters got the little mac mini's with ichat av and tiger and my mom got a imac with panther and i

  • Anybody here successfully connect PlayStation 3 to iMac wirelessly?

    I have internet sharing turned on. I have my wireless network set up using the iMac's built-in Airport Extreme Card. My PS3 can find my wireless network and it can obtain the IP address but it can not communicate with the server due to a DNS error. S

  • Where can I get a driver for my HP OfficePro 8600 printer

    I can't find my HP Printer disc and the online HP site comes up with an error (404) "page missing" on the online site.  How can I get a driver for my 8600?