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á

Similar Messages

  • Sales order creation using LSMW

    Hi All,
    I am creating open sales order (VA01) using LSMW where I am using BAPI: BUS2032 and Method CREATEFROMDAT2.
    I need to pass multiple line items for the same Header data, but the LSMW is creating multiple sales orders with a single line item every time.
    I tried giving "on_change_transfer_record" after Header record but that doesn't work.
    Can anyone suggest any suitable solution for this using BAPI only other than BDC, report program etc.
    Thanks in Advance
    Asif Ali Khan

    Hi Asif Khan,
    Please check this link
    BAPI_SALESORDER_CREATEFROMDAT2 - Sales Order Create
    http://sap-img.com/abap/bapi-salesorder-createfromdat2.htm
    Best regards,
    raam

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

  • Open Sales Order Migration

    Hi all,
    We want to migrate every open sales order, but only with non delivered items.
    In which way (LSMW, BAPI, etc) we can assure that only opened items from SO are migrated and all data (original document date, etc) is exactly the same?
    Thanks in advance.
    FT

    Thanks for your answer Lakshmipathi.
    Let me put the question in other way:
    If I'll have opened quantities, which is better way to migrate old SO? I've found a bapi that copies exactly old SO to new ones (bapi_salesdocument_copy) but it takes every item, opened or not.
    By the way Is there any BAPI that lists all opened quantities?
    Thanks
    FT

  • SQL Open Sales Orders Value using today's currency rates

    Hi experts,
    I am creating a report for displaying the open sales order values (and other fields) using current currency rate (where applicable). I developed the below query. The only problem with this query is that it ignores the order rows in which the currency field is blank (Don't understand why this happens in SAP). Do you have other ideas?
    Thanks & Regards,
    IC
    SELECT 
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date",  T0.CardCode as "Cust Code",  T0.CardName as "Customer Name",  T1.ItemCode, 
    T1.Dscription,  T3.ItmsGrpNam,  T1.U_SU,  T1.U_SULEN,  T1.U_SUQTY,  T2.InvntryUom as 'Stock UOM',  T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)", T1.Price*T1.OpenQty/T4.Rate  AS "Open Qty Val (GBP)", T1.Price/T4.Rate  AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date",  T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod, ORTT T4 WHERE T0.DocCur <> 'GBP' AND T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T1.OpenQty > 0
    UNION ALL
    SELECT
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date", T0.CardCode as "Cust Code", T0.CardName as "Customer Name", T1.ItemCode, T1.Dscription, T3.ItmsGrpNam, T1.U_SU, T1.U_SULEN, T1.U_SUQTY, T2.InvntryUom as 'Stock UOM', T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.LineTotal AS "Ord Value (GBP)", T1.LineTotal/T1.Quantity*T1.OpenQty AS "Open Qty Val (GBP)", T1.LineTotal/T1.Quantity AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)",T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T1.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date", T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod WHERE T0.DocCur = 'GBP'  AND T1.OpenQty > 0 ORDER BY 2,1

    Hi,
    Try:
    SELECT 
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date",  T0.CardCode as "Cust Code",  T0.CardName as "Customer Name", 
    T1.ItemCode,  T1.Dscription,  T3.ItmsGrpNam,  T1.U_SU,  T1.U_SULEN,  T1.U_SUQTY,  T2.InvntryUom as 'Stock UOM', 
    T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered",
    T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)",
    T1.Price*T1.OpenQty/T4.Rate  AS "Open Qty Val (GBP)", T1.Price/T4.Rate  AS "Price (GBP)",
    T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)',
    T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date",  T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
    INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
    LEFT JOIN ORTT T4 ON T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T4.Rate != 0
    WHERE T0.DocCur != 'GBP' AND AND T1.OpenQty > 0
    Thanks,
    Gordon

  • Open PR & PO migration using LSMW

    Hi All,
    is it possible to migrate open PO & PR using LSMW method. I have already migrated material master by using LSMW( Recording) .
    but it's not possible to migrate open PR or PO using LSMW recording method.
       can i use direct input method to upload open PO & PR ? Please advice which method is best for open PO & PR.
    Thanks
    pabi

    Hi
    Yes I think it can
    You can use all methods available in LSMW, but I would avoid a BI recording.
    Max

  • Sales Order Creation using LSMW IDOC method.. ( Custome Interface)

    Hi ABAP'rs,
                     Please provide me LSMW steps for creating Sales Order using IDOC method.
                            Thanks and Regards,
                                                  Param.

    LSMW-IDOC in General
    LSMW – Step by Step Guide: Legacy System Migration Workbench is an R/3 Based tool for data transfer from legacy to R/3 for one time or periodic transfer.
    Basic technique is Import data from Spreadsheet / Sequential file, convert from source format to target format and import into R/3 database. LSMW not part of standard R/3, if we need this product email [email protected]
    Advantages of LSMW:
    • Most of the functions are within R/3, hence platform independence.
    • Quality and data consistency due to standard import techniques.
    • Data mapping and conversion rules are reusable across projects.
    • A variety of technical possibilities of data conversion.
    • Generation of the conversion program on the basis of defined rules
    • Interface for data in spreadsheet format.
    • Creation of data migration objects on the basis of recorded transactions.
    • Charge-free for SAP customers and partners.
    Working With LSMW:
    Use TCODE LSMW
    Objects of LSMW:
    •Project – ID with max of 10 char to Name the data transfer project.
    • Subproject – Used as further structuring attribute.
    • Object – ID with max of 10 Characters, to name the Business object .
    • Project can have multiple sub projects and subprojects can have multiple objects.
    • Project documentation displays any documentation maintained for individual pop ups and processing steps
    User Guide: Clicking on Enter leads to interactive user guide which displays the Project name, sub project name and object to be created.
    Object type and import techniques:
    • Standard Batch / Direct input.
    • Batch Input Recording
       o If no standard programs available
       o To reduce number of target fields.
       o Only for fixed screen sequence.
    • BAPI
    • IDOC
    o Settings and preparations needed for each project 
    Preparations for IDOC inbound processing:
    • Choose settings -> IDOC inbound processing in LSMW
    • Set up File port for file transfer, create port using WE21.
    • Additionally set up RFC port for submitting data packages directly to function module IDoc_Inbound_Asynchronous, without creating a file during data conversion.
    • Setup partner type (SAP recommended ‘US’) using WE44.
    • Maintain partner number using WE20.
    • Activate IDOC inbound processing.
    • Verify workflow customizing.
    Steps in creating LSMW Project:
    • Maintain attributes – choose the import method.
    • Maintain source structure/s with or without hierarchical relations. (Header, Detail)
    • Maintain source fields for the source structures. Possible field types – C,N,X, date, amount and packed filed with decimal places.
    • Fields can be maintained individually or in table form or copy from other sources using upload from a text file
    • Maintain relationship between source and target structures.
    • Maintain Field mapping and conversion rules
    • For each Target field the following information is displayed:
    o Field description
    o Assigned source fields (if any)
    o Rule type (fixed value, translation etc.)
    o Coding.
    o Some fields are preset by the system & are marked with Default setting.
    • Maintain Fixed values, translations, user defined routines – Here reusable rules can be processed like assigning fixed values, translation definition etc.
    • Specify Files
    o Legacy data location on PC / application server
    o File for read data ( extension .lsm.read)
    o File for converted data (extension .lsm.conv)
    • Assign Files – to defined source structures
    • Read data – Can process all the data or part of data by specifying from / to transaction numbers.
    • Display read data – To verify the input data being read 
    Convert Data – Data conversion happens here, if data conversion program is not up to date, it gets regenerated automatically.
    • Display converted data – To verify the converted data
    Import Data – Based on the object type selected
    • Standard Batch input or Recording
    o Generate Batch input session
    o Run Batch input session
    • Standard Direct input session
    o Direct input program or direct input transaction is called
    BAPI / IDOC Technique:
    • IDOC creation
    o Information packages from the converted data are stored on R/3 Database.
    o system assigns a number to every IDOC.
    o The file of converted data is deleted.
    • IDOC processing
    o IDOCS created are posted to the corresponding application program.
    o Application program checks data and posts in the application database.
    Finally Transport LSMW Projects:
    • R/3 Transport system
    o Extras ->Create change request
    o Change request can be exported/imported using CTS
    • Export Project
    o Select / Deselect part / entire project & export to another R/3 system
    • Import Project
    o Exported mapping / rules can be imported through PC file
    o Existing Project data gets overwritten
    o Prevent overwriting by using
    ‘Import under different name
    • Presetting for Inbound IDOC processing not transportable.
    Reward if useful.
    regards
    santhosh reddy

  • Sales Order Creation using LSMW-BAPI.

    Hai,
         While executing a 14th step in LSMW-BAPI,the IDOC is generated.While Testing the IDoc the values for the Header segment alone is displayed.The Segment sfor Item is not Displayed.Should there be any link between Header & the ITem.
    Regards,
    Padmam.

    Hi,
    Can u tell me the steps to create a sales order using idoc, i've created a bapi but thats a temprory use. I wanted to created a sales order automatically when a purchase order is saved.
    Please let me know if u can help me, i wanted to do it using idoc
    Regards
    Sanju

  • Rg: Open Sales Order Uplaod Using BAPI (BAPI_SALESORDER_CREATEFROMDAT2)

    Hi Frinds..
    I am Creating Program Sales Order Uplaod Progrm using BAPI BAPI_SALESORDER_CREATEFROMDAT2.
    All header and Po data uploaded Properly . But Item Leal data not updated.. Please let me know any Conditions need to pass to update item data.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
            EXPORTING
              salesdocumentin      = v_extr
              order_header_in      = l_vbak
              order_header_inx     = l_vbakx
              behave_when_error    = 'P'
            IMPORTING
              salesdocument        = v_vbeln
            TABLES
              return               = return
              order_items_in       = l_vbap
              order_items_inx      = l_vbapx
              order_partners       = l_vbpa
              order_schedules_in   = l_shline
              order_schedules_inx  = l_shlinex .
    I can pass like that.

    hi Prabu,
    It is not uploading for company code 1100 ..

  • Creation Sales Order by using LSMW...................

    Hi All,
    We have designed one LSMW program by which we are able to create Sales Orders.
    Import method for this LSMW is *BAPI Method*.So finally by processing IDOC steps, sales orders getting created.
    My req is
    1) We have to schedule a background job for this LSMW
    2) Finally I need to provide all the Sales Orders those are created into one Text Document.
    Can you please tell me do we have any solution for the requirements I have mentioned.
    Thank You very much inadvance............................

    HI,
    1) /SAPDMC/SAP_LSMW_INTERFACE
    This is program to to schedule LSMW (periodic transfer)in background,  create a variant when you reach frame program in periodic transfer step, then go to SM36 create a job and schdule it and with above program and your variant and release job usng SM37.
    2) Get the log of your job in SM37 transaction once it is finished, you will get all list of sales orders created , just download tem into text file.
    Thanks
    RK

  • Sales order bapi using lsmw

    Hi,
       in LSMW i am using BAPI:SALESORDER_CREATEFROMDAT2
    and in the mapping, i have assigned : E1BPPARNR-PARTN_ROLE = 'SP'.
                                                           E1BPPARNR-PARTN_NUMB = '1000005'.
                                                           E1BPPARNR-ITM_NUMBER = '000000'
    I am getting an error:
    <b>Please enter sold-to party or ship-to party.</b>
    Any ideas?

    Hi,
    Please use FM CONVERSION_EXIT_ALPHA_INPUT to do the customer number conversion.
    The customer number is stored '0001005000'  in the database.
    DATA: WA_KUNAG LIKE KNA1-KUNNR.
    WA_KUNAG = '1005000'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT =  WA_KUNAG
      IMPORTING
        OUTPUT = WA_KUNAG.
    E1BPPARNR-PARTN_NUMB = WA_KUNAG.
    E1BPPARNR-PARTN_ROLE = 'AG'.
    E1BPPARNR-ITM_NUMBER = '000000'.
    Regards,
    Ferry Lianto

  • 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

  • Migrate all Open Sales Orders From Legacy System (SAP) To SAP System using

    Hi Experts,
                 I've to Migrate all Open Sales Orders From Legacy System (SAP) To SAP System using Business Objects with a new SALES ORDER DOCUMENT NUMBER referencing the older one.
               I'll get all the required data with field in an excel file.
                 Does any standard transaction exist for it ? Or how to go ahead with it ?
    Thanks and regards,
    Jyoti Shankar

    Hi
    If you are checking for CREATE option then Sales Doc Type
    For more Info goto SWO1 transaction -> BUS2032 --> DIsplay --> Execute --> There SELECT the method which you want to perform... There you can fine the MANDATORY parameters also....
    Or in DISPLAY mode PLACE Cursor on the Required Method and CLick the PARAMETERS button on toolbar...
    That will show the MANDATORY parameters...
    Reward if helpful....
    Message was edited by:
            Enter the Dragon

  • Migrating Open Sales Order From Legacy System (SAP) To SAP System

    Hi Experts,
                 I've to Migrate all Open Sales Orders From Legacy System (SAP) To SAP System using Business Objects with a new SALES ORDER DOCUMENT NUMBER referencing the older one.
               I'll get all the required data with field in an excel file.
                 Does any standard transaction exist for it ? Or how to go ahead with it ?
    Thanks and regards,
    Jyoti Shankar

    hi jyothi ,
       there are lot of ways of doing it depending on data upload volume it will be decided .
    1) thru abap bdc program which directly uses XL sheet data and creates SO using bapi/FMs.
    2) using scat.functional consultant should be good enough to use this.
    3)lsmw-laborious procedure but achievable.
      reward if helps !!!!!

Maybe you are looking for

  • Including Second Local currency in Report Painter

    Hi there, My client is using parallel currency and their LC2 is USD.  I am trying to create a Cost centre report using report painter and want to add LC2 amounts in this report.  Is it possible to add LC2 using report painter? The following is some a

  • Read contents of Word docs?

    Hello all: I have a directory of word documents that I need to loop through and read the contents and save various parts of the textual content into a database. I've used cfdirectory to loop through the directory and then cffile action="read" to read

  • Installer for Weblogic Portal Sever

    Hi, am trying to install the Weblogic Portal server 10.3.2 from the following link. From => http://www.oracle.com/technology/software/products/wlp/index.html I downloaded the file that is for "Windows x86" as i am on Windows XP/SP3. 1)What do i need

  • Strange Oracle Behaviour - only month end or high load periods

    Hi SAP Gurus In one of our systems I am expreriencing a strange behaviour from Oracle, in that it seems to be in reconnect, but yet it is not, it resets and carries on but do produce Dump and SM21 log messages, the dump is not really helpfull as it i

  • Can I address to the "Smith" family if I have a first name in the field

    Hi I am trying to make some labels for christmas cards. If I have a file: first name: Peter last name: Smith Can I address the label to say: The Smith Family? with address book? Thanks, Anne Z