LSMW using Recording

Hi,
I am trying to upload Regional structure using LSMW. I have recorded transaction SR10 (Create City) but I am not sure how to proceed further. What changes I need to do in the recording and what should be the target structure for that.
If anybody can tell how to use the recording it'll be a great help.
Thanks.
Jashan

While recording you should place the cursor on all the fields you need to fill (filling them) and using the transaction SR10 as normal for creating a city. Once you save it the record will be done and you'll have all the fields of the target structure that you will need to map from the source file.
However I'll suggest you to use within the LSMW the standard Regional Structure upload program instead of your own recording. The standard one works perfectly.
Cheers,
Aubin

Similar Messages

  • How to update more than one Bank data in LSMW using recording

    Hi friends,
    please let me know how can we upload more than one bank data for vendore master in LSMW, and i am Using Recording and i have to use that.
    thanks a lot.
    Regards,
    veeru.

    Hi
    I have used the direct input but, there are address fields missing in the direct input like, SORT2, MOB_NUMBER, SMTP_ADDR. these fields.
    when i see the documentation for direct input, it says for additional address you need to use another BAPI. but here the problem is we are using internal numbering for vendor, so how to link the created vendor and the address uploaded to correct vendor.
    thanks a lot,.

  • List recipe (tx. c201) in lsmw using recording method

    Hi.
    I'm trying to upload master data for recipe list (tx c201), and I'm not so sure which method I should use, i tried with an standard object but it works with idocs and i supposed to configure a lot of stuffs (ibounds, ports, etc), and using recording... how can i handle controls tables when the number of items it's variable?.
    Reading through the sdn i realized that it's good to work with two files, one with master data and the second one with detail or item data. Actually i used that method to upload data in lsmw but using a standard direct input program and works pretty good..., but using a recording I don't know how to handle this.
    Thanks in advance,
    Regards.
    Albio.-
    Message was edited by: Albio Vivas
    Message was edited by: Albio Vivas

    Get your test data from functional folks then do the recording based on that. After done with the recording you may delete the existing values(which are used for recording). This is because, for example say you are having the data in an EXCEL sheet and for a particular customer one of the fields is empty. In this case, the DB will be updated with the value provided in the recording.

  • Lsmw using recording/Direct input for customer using xd01-urgent please

    how will you upload the record for a customer if you have more than one record for bank master data for that customer. becoz a customer have have many bank details associated with his customer no.
    .that is how would you handle table control in screens in lsmw..

    HI,
    Use the Standard Batch Input Program to upload the Customer Bank data.
    <b>Object               0050   Customer master
    Method               0000
    Program Name         RFBIDE00
    Program Type         B   Batch Input</b>
    Create the two structures
    1) Customer data
       Customer Data Structure contains the general Customer details
    2) Customer Bank data ( this structure must be child to th above structure)
        this structure contains the Bnak Details
    while defining the source fields take one field as indicator(Char 1) in both the structures,
    for the Indicator field
    in Customer data structure place the <b>Identifying Field Content      H</b>
    in Customer Bank data structure place the  <b>Identifying Field Content      I</b> 
    i.e. to differentiate the Header and Item
    In Maintain Structure Relations step
       assign the Customer data Structure where required
       assign the Customer bank data structure to the Traget Structure <b>BKNBK</b> 
    In Field Mapping step map the fields accordingly..
    in specify file step
    create a file and select the radio button Data for Multiple Source Structures
    assign the Source file to both the Source Structures.
    then Read data
    Convert data......
    <b>Note</b>:The Source file should contain the Header Item Differentiation
    as Header record should contain the 'H' as the indicator value (First filed value should be H for an Header Record )
    same as for item record (i.e. for bank data , the first field(Indicator) value must be 'I'.).

  • Lsmw  using recording method

    hi all,
                  i occured some problem while working with lsmw, when enter into step run batch input session in that processing session some error is occured i.e ur session is not processed. what can i do for procrssing any session that i created. i think u  will help me.         thanks .

    can u tell exactly where u cant process the session. already have u processed the session or are u trying to create a new session and then processing it????
    Regards,
    Anil N.

  • Create new LSMW using Idoc for HR master Data

    Hi Guys,
    I was wondering id someone could help me. I have started developing an LSMW, of which I have already
    created the Object. I have also created the Maintain attributes and I have supplied the Message Type, Basic Type and activated the IDOC inbound processing after providing the appropriate information.
    The question I have is in the "Maintain source structure" do I need to create a structure for data records
    and a structure for header?
    Can I do a recording for transaction     -
    "PA30" --->  update infotype 6
                                                           |
    IDOC   -
    > infotype 0,1,2,6
    I have previously created HR LSMW using recording, but I have not used the IDOC facility and I'm not
    sure of the differences.
    Does anyone have any documentation.
    Regards,
    Frank

    Dear Frank,
    For Idoc method need to do setting first.
    Creating  pratner profile,.....................etc.
    then rest of the thing are same.
    Best Regards,
    Flavya

  • How  to transfer data using Lsmw with Recording...

    hi,
    Please let me know .How to use Lsmw to transfer data using recording.
    Thanks,
    Lawrence.

    Hi Lawrence,
    please go thru this link for LSMW data transfer techniques in PM, MM and SD modules.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90d90895-68dd-2a10-f096-bf8cf2e2f65b
    If u want to know in detail go thru this link
    http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/frameset.htm
    Hope this will be useful to u..
    Thanks
    Vijayasree

  • How to use LSMW using the IDOC to upload and maintain cost center group

    Hi Everyone,
    Is there anyone who knows how to use LSMW using the IDOC functions instead of the recording. I wanted to upload the alternative cost center group I created in the system. 
    reply would be greatly appreciated
    Warm Regards

    Hi Praveen,
    There is a risk trying to migrate data directly into standard tables because this can generate database inconsistences or wrong inserted data according to what is customized in the target system. I do not recommend migrate like this. 
    With LSMW you use objects like direct input programs, idocs, bapis and recorded batch input. Try to create a project and use an standard object for your data. Also, check in SXDA transaction (Goto-->DX programs) if there is a standard program for your data.
    Anyway, if you want to upload data directly to tables, read below thread:
    ["UPLOAD  CSV  FILE";
    [how to upload .csv file into a custom table;
    Regards,
    Roger

  • LSMW ME41 Recording

    Hi experts,
    Is it possible to use LSMW thorugh recording For ME41(Purchase Quotation)tcode for multiple items?
    if so how to do it? please explain  how lsmw work for multiple header and multiple items in one legacy text file.
    Thanks & Regrads,
    Rao

    Hi,
    correct me if i am wrong here, are you telling me you are not able to fill items more than what the screen is able to display in the table control.
    if that is the case why dont you use NEW button the application toolbar, so no matter how many items have already present in the RFQ, the table control will position the new item in the second line. So to add a new item click the new button and add the item at the second line, this should solve your problems no matter how many items need to be created.
    In recording when u record it for adding one item, you need to loop at your table containing the indicator of item type and call the code repeatedly to add all items.
    Hope that throws some light, let  me know if you need some  more details.

  • LSMW Batch recording

    Dear All,
    I am uploading stock using LSMW batch recording .I want to create only one material document for all the material stock upload.What is the procedure I have to follow.
    Please advice
    Thanks

    I doupt that this is possible, because of a technical limit in the accounting document.
    Accounting document can only have 999 items,
    Each material document item can create several accounting document items, because of this a physical inventory docuemnt is limited to 300 items.
    So you should at least create a new material document after 300 items to avoid a posting failure.
    Further recording is the worst method, which should only be used if no SAP given import method is present. for material movements you have standard/direct input and IDOC and BAPI methods  ready for use .
    In a static recording  you probably get already issues to enter more items than your first screen allows . In SAP given import methods you can just transfer records and count them and do a transfer_transactio when 300 items are reached.

  • LSMW using Direct Input

    Hi,
    can anyone tell me in details how to create lsmw using direct input and using BAPI?
    please let me know.

    Hi,
    Refer this link..
    LSMW using Direct Input
    http://learningabap.wordpress.com/2007/03/28/step-by-step-guide-for-using-lsmw-to-update-customer-master-records/
    Using BAPI..
    http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
    Regards
    Sowmya

  • Urgent : LSMW using Idocs

    Hi Friends...kindly send me step by step procedure on how to do LSMW using Idocs only. I know how to do LSMW using all other methods other than Idocs. So
    Kindly send me procedure or any good document on LSMW using Idocs. Thanks in advance.

    Hi Satyesh T
    Go through the following Steps for LSMW Using IDoc
    Inbound Processing of LSMW Via IDOC's
    Step1) Create the Partner Profiles & Port for Inbound Process and Ctivate the Inbound Process for LSMW.
         a) Goto Tcode SALE
                    1) Create Logical System for Receiver Save & Come Back
                    2) assign Logical to Client for LSMW inbound Process
         b) Goto Tcode SM59
                    1) Create  RFC Destinations for ALE
         c) Goto Tcode WE21
                    1) Create a file port which can read the data from the specified path.
                    Here select "FILE" Node --> Click on Create Button(F5)
                    Give the following Information
                    Port : FILE
                    Desc : File Port for Inbound Processing of LSMW Via IDOC's
              Goto Outbound File Tab.
              Select Logical Directory Radio Button.
              Give LOCAL_TEMPORARY_FILES as Logical Path.
              If it is Physical Pthat : C:\TEMP\Filename.
    Goto Tcode LSMW
    ===============
    Give      Project          : ZPROJECT
         SubProject        : ZPROJECT
         Object            : ZPROJECT
    Click on Create  Button
    then goto Settings Mwnu
              Click on  IDoc Inbound Process.
    Here you need to Pass File Port : File
                       Partner Type : LS
                       Partner No.  : Port Name (Just Created from WE21 Tcode)
    Save And Click on ACTIVATE IDOC INBOUND PROCESS
    Save and Come Back.
    1) Click on Execute(F8)    1 Maintain Object Attributes    
    Select IDoc(Intermediate Document)
    Message Type : MATMAS
    Basic Type   : MATMAS05
    Save & Come Back
    Then Your Getting the following Steps need to Do
      2 Maintain Source Structures                   
      3 Maintain Source Fields                       
      4 Maintain Structure Relations                 
      5 Maintain Field Mapping and Conversion Rules  
      6 Maintain Fixed Values, Translations, User-Defi
      7 Specify Files                                
      8 Assign Files                                 
      9 Read Data                                    
    10 Display Read Data                            
    11 Convert Data                                 
    12 Display Converted Data                       
    13 Start IDoc Generation                        
    14 Start IDoc Processing                        
    15 Create IDoc Overview                         
    16 Start IDoc Follow-Up                         
    2) Select the 2nd Radio Button & Execute.
    Click on Create Button.
         Source Structure : ZE1MARAM
            Description      : XXXXXXXXXX
    Click on Continu Button
    Select Just Created "Source Structure : ZE1MARAM"
    Again Click on Create Button this is your Second Source Structure.
         Source Structure : ZE1MAKTM
            Description      : XXXXXXXXXX
    It Asks the Same Level or Lowerlavel of Source Structure : ZE1MARAM
    select Lower Level Radio Button.
    Click on Continue Button 
    Save & Come Back.
    3) Select the 3rd Radio Button and click on Execute Button
    Select the first Source Structure
       Click on Copy Button
    Select the Third Radio Button
       Click on Copy Button
         Give the Tab Name is E1MARAM
    Click on Continue Button.
    Save this
    Go bottom
    Select the 2nd Source Structure " ZE1MAKTM"
       Click on Copy Button
    Select the Third Radio Button
       Click on Copy Button
         Give the Tab Name is E1MAKTM
    Click on Continue Button.
    Save & Come Back.
    4) Select the 4TH Radio Button and click on Execute Button
    Select E1MARAM -->Click on Relationship Button
         Here A Small window comes  then Select ZE1MARAM
         Click on Continue Button.
    Select E1MAKTM -->Click on Relationship Button
         Here A Small window comes  then Select ZE1MAKTM
         Click on Continue Button.
    The Above two Structure are appears in Blue Color
    Save & Come Back.
    5) Select the 5TH Radio Button and click on Execute Button
    First Structure : EDI_DC40 this is Control Record of your IDoc.
    after this you will find a Structure "E1MARAM" this is in Orange Color Remember
    Select MSGFN Field and Click on Source Field
             a New window will comes here select the ZE1MARAM-->MSGFN field and double Click on it.
    Select MATNR Field and Click on Source Field
             a New window will comes here select the ZE1MARAM-->MATNR field and double Click on it.
    Select MTART Field and Click on Source Field
             a New window will comes here select the ZE1MARAM-->MTART field and double Click on it.
    Select MBRSH Field and Click on Source Field
             a New window will comes here select the ZE1MARAM-->MBRSH field and double Click on it.
    Select MATKL Field and Click on Source Field
             a New window will comes here select the ZE1MARAM-->MATKL field and double Click on it.
    Select MEINS Field and Click on Source Field
             a New window will comes here select the ZE1MARAM-->MEINS field and double Click on it.
    Select GEWEI Field and Click on Source Field
             a New window will comes here select the ZE1MARAM-->GEWEI field and double Click on it.
    Save This.
    Go Bottom.
    you will find a Structure "E1MAKTM" this is in Orange Color Remember
    Select MSGFN Field and Click on Source Field
             a New window will comes here select the ZE1MAKTM-->MSGFN field and double Click on it.
    Select SPRAS Field and Click on Source Field
             a New window will comes here select the ZE1MAKTM-->SPARS field and double Click on it.
    Select MAKTX Field and Click on Source Field
             a New window will comes here select the ZE1MAKTM-->MAKTX field and double Click on it.
    Save and Comeback.
    Create Your Flat Files Like he following Format. and save it in C:\TEMP folder Only
    1st File : MARA.TXT
    001     MAT001                                   COUP     C     15          KG                                                                                          01
    2nd File : MAKT.TXT
    001     EN     New Material For Inbound Processing of LSMW Via IDOC's
    6) Select the 6TH Radio Button and click on Execute Button
         We don't do any process here  Just Come Back.
    7) Select the 7TH Radio Button and click on Execute Button
         Click on Legacy data : Click on F5 Button.
                  Add Two Files 1) C:\TEMP\MARA.TXT     
                       2) C:\TEMP\MAKT.TXT
         Select Tablator Radio Button as Delimiter
         Save & Come Back.
    8) Select the 8TH Radio Button and click on Execute Button
         Select ZE1MARAM Structure and Click on Assignment Button
         Save this
         Select ZE1maktm Structure and Click on Assignment Button
         Save and Come Back.
    9) Select the 9TH Radio Button and click on Execute Button
         Click F8 Button.
         Check the Read Dada
    10) Select the 10TH Radio Button and click on Execute Button
         Click F8 Button.
         Check the Display Read Data.
    11) Select the 11TH Radio Button and click on Execute Button
         Click F8 Button.
         Check the Convert Data.
    12) Select the 12TH Radio Button and click on Execute Button
         Click F8 Button.
         Check the Display Convert Data.
    13) Select the 13TH Radio Button and click on Execute Button
         Click F8 Button.
    14) Select the 14TH Radio Button and click on Execute Button
         This is WE05 Tcode Screen Start IDoc Process.
    15) Select the 15TH Radio Button and click on Execute Button
         This is WE05 Tcode Screen Creating IDoc Here
    16) Select the 16TH Radio Button and click on Execute Button
         Select Posting Radio Button(that is 5th Button)
         then Click on F8 or Execute Button.
    After this your will check your Material exist in receving Side or Not.
    Thanks & Regards
    Sreeni

  • LSMW using IDocs/BAPIS

    Hi All,
    I am new to LSMW and want a simple tutorial for using LSMW using Idocs and BAPIs. I have found many useful tutorials for Direct Input and Batch Recording. If anyone can give me link or a tutorial for using lsmw with idocs and bapis it will be of great help.
    Thanks in advance.
    archish

    Hi,
       is step by step process .
    Step-by-Step Guide for using BAPI in LSMW
    Note! The screen prints in this article are from ECC 5.0. They may differ slightly in other versions.
    Introduction:
    This document details the usage of BAPI in LSMW. We have used the example of migration of the purchase order data into SAP.
    Pre-requisites:
    It is assumed that the reader of this article has the minimum knowledge required on the Business Object, BAPI, Message Types and IDoc Types.
    Step-by-Step Procedure:
    Details of the BAPI used in this scenario:
    Business Object: BUS2012
    Method: CreateFromData
    Details of Message Type and Basic IDoc Type:
    Message Type: PORDCR
    Basic IDoc Type: PORDCR02
    Let’s have a look at the BAPI first, before proceeding to the LSMW:
    1. Go to Transaction BAPI
    2. Click on Search Button
    3. Enter the value “BUS2012” and select “Obj.type(Technical Object Name”
    4. Press ENTER
    5. Following screen appears:
    6. On the left side of the screen, Expand the “PurchaseOrder”.
    7. Select “PurchaseOrder” and double-click on the same for details.
    Building LSMW using BAPI:
    1. Go to Transaction LSMW.
    2. Enter the Project, Subproject and Object information and click on CREATE.
    3. Enter the descriptions for Project, Subproject and Object as prompted.
    4. Now select Settings à IDoc Inbound Processing
    5. “IDoc Inbound Processing” screen appears. Enter the required details as shown below:
    6. Click on “Activate IDoc Inbound Processing”.
    7. Click on “Yes” when prompted for “Activate IDoc Inbound?”
    8. Hit on “Back” to return to the main screen.
    9. Click on Continue (F8). Following Screen appears:
    10. Select the Step 1 “Maintain Object Attributes” and select “Execute”.
    11. Select the radio button “Business Object Method” and enter the following details:
    Business Object: BUS2012
    Method: CreateFromData
    Hit ENTER
    12. Save and click on BACK button. Following information message is displayed.
    13. Now select step 2 “Maintain Source Structures” and click “Execute”.
    14. In this step, we need to maintain the source structure. In our example, lets consider the example of a file with 2 structures Head and Item data as shown below:
    Click on Create and name the source structure as HEADERDATA. Now select HEADERDATA and click on “Create” again to create the child structure. Following popup appears:
    Select “Lower Level” and click on Continue. Enter the Item data structure name.
    Click Save and hit BACK button to go to the main screen.
    15. Select step 3 “Maintain Source Fields” and hit execute.
    16. Enter the fields as shown below:
    17. Click SAVE and return to main screen.
    18. Select step 4 “Maintain Structure Relations” and click Execute.
    Select E1PORDCR and click on CREATE RelationShip. Following screen appears:
    Select HEADERDATA and hit ENTER
    Similarly do the same for the structure E1BPEKKOA, E1BPEKPOC and E1BPPEKET.
    Click Save and return to main screen.
    19. Select the step “Maintain Field Mapping and Conversion Rules” and click on execute. Maintain the Field Mapping as seen below:
    20. Select step 7 “Maintain Source Files” and provide the link for the test file created. (Create a test file with the same structure as defined earlier).
    Save and return to main screen.
    21. Select the step “Assign Files” and click on Execute.
    Assign the file provided to the source structure. Here the same file is provided for both the structures.
    Save and return to the main screen.
    22. Select the step “Read Data” and click on Execute.
    Click on Execute.
    Return to the main screen.
    23. Select the step “Display read data” and click on execute.
    Click on the structure name to get the field level values.
    24. Return to main screen and now select “Convert Data”.
    25. Return to the main screen and select “Display Converted data”.
    26. Return to main screen and select “Start IDoc generation”.
    27. Now select the step “Start IDoc Processing” on the main screen.
    28. Return to main screen and click on “Create IDoc overview”. Here the data record and status records of the IDoc could be viewed:
    Please Go through these 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
    http://myweb.dal.ca/hchinni/sap/lsmw_home.htm
    http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
    lsmw-idoc method:
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    Regards

  • Can LSMW use customer specific mapping program?

    Can LSMW use customer specific mapping program?
    I have created a LSMW project to migrate various objects (Material, pricing conditions, conditions) for our new division. I want to add another object – Purchasing Info records. We already have a customer specific mapping program that prepares the data for SXDB to complete the migration. After creating the new object in LSMW, I looked in step 1 (Maintain object attributes) but couldn’t see anywhere convenient to put the program name.
    I know that LSMW provides a mapping facility of it’s own, but can I avoid reinventing the wheel and instead own specific program?
    Slath

    Hi,
    I am afraid, that is not possible. It is possible to create your own BDC recording but not the way you want to do. LSMW needs to know your source and target structures and then you do the mapping from source to target within LSMW. It stores this mapping information in several tables and unless LSMW has those entries, it will not be able to generate the mapping(conversion) program. Also, LSMW creates a 'read' file and later a 'converted' file. Your mapping program may not be doing that, which means LSMW cannot execute it in later steps to actually create the Purchase Info Records.
    You will have to create your own BI or DI program or a business object and a BAPI, or an IDOC type and message type and then publish it to standard SAP, then may be it will be possible. But that will be lot of work, instead use the standard one availble to you.
    If you want to use your existing code then, when you get to the mapping part of it, just cut and paste the logic specific to each field in the appropriate place, or don't do any individual field mapping, but just paste all the mapping logic in the ENDOF_RECORD_ section.
    Regards,
    Srinivas

  • Working on LSMW using IDoc method for processing Open Sales Orders

    We are currently in middle of creation of a new instance of production for a different Business SBU. We are looking to utilise the LSMW tool using IDocs for uploading / transferring the open orders to the new box. If some one has worked on LSMW using IDocs, please get in touch and if you could share any documents on the process of utilising the LSMW tool using Idocs for any kind of conversions, it would be great. The following is a sample case.
    1. Each order will have multiple segments with different qualifiers under various segments.
    2. Multiple line items would be available under each order.
    Issues we are currently looking to solve :
    1. How do you manage to loop through the qualifiers during processing for the same segment.
    2. How do you prepare the tool to recognise the multiple line items of the same order.
    3. What kind of strategy needs to be used to create the input data file(s). Like, splitting the header and detail level information ?
    Note  : The volume of data we are looking at is somewhere around 40-60 thousand orders worldwide.
    Thanks in Advance.

    hI vikram check this link
    and reward points if helpful
    http://www.****************/Tutorials/LSMW/IDocMethod/IDocMethod1.htm
    http://www.jt77.com/system-dynamics/model-01395.html

Maybe you are looking for