Regarding LSMW

Hi
I want to upload the data for FB01 using LSMW.
Can any one give the details how to do it step by step?
Because I want to use two structures one for header data and another for item data
Thanks in advance
venkat

hi,
using Direct Input method u can upload the data for  FB01.
you can find a program RFBELS00 in the setting of the first step of the LSWM.
Actually, this PG will be called by LSMW and input the file content into system.
Now you want to know the structure of the input file.
Check this link:
http://help.sap.com/saphelp_47x200/helpdata/en/e9/cb8a85eb0011d184650000e8a6bfbe/frameset.htm
~~Guduri

Similar Messages

  • Help regarding LSMW

    hi ,
    i am new to SAP. actually i am trying to update vendor master data for the following fields using LSMW.
    LIFNR BUKRS EKORG KTOKK TITLE_MEDI NAME1 NAME2 SORT1
    REMARK KUNNR STCD1 STCD2 BANKS BANKL BANKN BKONT LNRZA
    AKONT ZUAWA QSSKZ QLAND QSREC ALTKN PERNR ZTERM TOGRU
    REPRF ZWELS ZAHLS LNRZB HBKID INCO1 INCO2 KALSK WEBRE
    WAERS BSTAE PARVW GPARN
    in Maintain Object attributes i have declared it as standard batch/direct input using object (0040),method standard,program name(rfbikr00),program type (b)
    while trying to upload it i am getting an error saying that transaction Xk01 is not supported. please help me regarding this and the method to upload the vendor master data into sap sys from a legacy sys in LSMW method.

    HI deephi
    follow the below steps
    4.4.2.2.3     Importing Vendor Master Data
    Use
    The purpose of this activity is to import vendor master data via LSMW using Batch Input.
    Prerequisites
    You have imported the LSMW project BP_AIO into your system.
    Specifying LSMW Project Details
    1.     Access the activity using the following transaction code:
    Transaction Code     LSMW
    2.     Confirm the information message Welcome to the Legacy System Migration Workbench.
    3.     On the Legacy System Migration Workbench screen, enter the following values:
    Field name     Description     User action and values     Notes
    PROJECT     Name of data transfer project      BP_AIO     More than one subproject can be assigned to a project.
    SUBPROJ     Specifies the name of the subproject     MM     A subproject can have an unlimited number of objects
    OBJECT     Object name. An object corresponds to a business object.     VENDORS_FINAL     An object is assigned to a subproject
    4.     Choose   Continue. The LSM Workbench: BP_AIO MM, VENDORS_FINAL screen is displayed.
    You can change the default view from display mode to change mode. To do this, choose Double Click=Display.
    Specifying an External File
    If an external file has already been specified, only change the file name of the existing file. Do not add or create any additional files.
    1.     In the LSM Workbench: BP_AIO, MM, VENDORS_FINAL screen, start the process step Specify Files and go into change mode, if you are in display mode.
    2.     In the LSM Workbench; Specify Files (Change) view, go to the structure item Legacy Data - On the PC (Frontend). Double-click on the object file entry that is located directly under Legacy Data - On the PC (Frontend). The File on Front End: Maintain Properties entry screen is displayed. Enter the following values:
    Field name     Description     User action and values     Notes
    File     LSMW data file name     Specify the path and name of the external data file or browse for the external data file     
    Name     Object type     Specify the name of the object type     
    File Contents          Select the radio button
    Data for One Source Structure     
    Separators          Tabulator     Check file for separators, if necessary
    File Structure          Choose Field Names at start of File     
    File Type          Select the radio button
    Record End Marker (Text File)     
    Code Page          Select ASCII     
    3.     Choose Continue, save your file settings and choose Back.
    Assigning a File
    Omit this activity if an external file has already been specified and assigned.
    1.     To assign an external file, double-click on the process step Assign File.
    2.     In the LSM Workbench: Assign File view, select the first line highlighted in yellow and choose   Assignment. The file you have specified in the previous step is assigned. Repeat this for each entry highlighted in yellow until you have assigned the file assigned to each structure.
    Importing Data from Files
    1.     To import the data from the assigned files, double-click on the process step Import Data.
    2.     Choose   Execute without entering any values. Go back to the Process Step list
    Converting Imported Data
    1.     To convert the imported data, double-click on the process step Convert Data.
    2.     Choose   Execute without entering any data. Go back to the Process Step list.
    Creating Batch Input Session
    1.     Double-click the step Create Batch Input Session.
    2.     In the Batch Input interface for Vendors screen, choose Execute, confirm the messages which are displayed. If a batch input session was created successfully the message Session 1 session name VENDORS_FINA was created is displayed.
    Running Batch Input Session
    1.     Double-click the step Run Batch Input Session.
    2.     On the Batch Input: Session Overview screen, select the session you have created in the step before. If the batch input session was created correctly, New is displayed in the column Status.
    3.     Choose Process.
    4.     In the dialog box Process Session vendors_Fina, choose a processing mode.
    5.     Choose Process.
    6.     In case of foreground processing, select Enter till the data is imported.
    7.     In case of background processing, the system message 1 session transferred to background processing is displayed.
    8.     In case of errors, solve them and run through the process again.
    Possible problems might be:
    •     Configuration does not fulfill the master data requirements (CATT and manual processing of the transaction would also fail)
    •     External master data file is not stored as tab separated file
    •     Other data inconsistencies
    Result
    You have created vendor master data.
    regards
    kishore

  • Regarding LSMW upload for General Tasks

    I am trying to upload a task header & item data i.e.PLKO & PLPO.
    For that I am using the standard LSMW object 0170 which is called <b>Routing</b>. But at the time of creating Batch Input session i am getting error
    No profile with entry tool for task list A 1 in session MPLAN_LOAD.
    So can anybody explain what is this all about.
    Or is there any convinient way apart from BDC to create General task along with multiple operations.

    You can try to load data using the IDOC method
    Message type : ROUTING_CREATE
    IDOC method works well for many complicated loads.
    Regards
    Vivek
    reward points if this helps

  • Regarding lsmw file port creation

    Hi Experts,
    By using lsmw (bapi technic),while executing ,
    the step of start  idoc generation its showing that 'no partner exists with the name type'.and how to create lsmw file port.
    Please resolve this issue ASAP.
    Regards,
    Reddy.

    Hi venugopal ketu ,
    please go thru the below useful links....
    http://www.****************/Tutorials/LSMW/IDocMethod/IDocMethod1.htm
    http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
    http://www.****************/Tutorials/LSMW/LSMWMainPage.htm
    http://www.****************/Tutorials/LSMW/IDocMethod/IDocMethod1.htm
    http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
    http://www.****************/Tutorials/LSMW/LSMWMainPage.htm
    All the very best....
    Regards,
    Sreenivasa sarma K.
    Edited by: sharmashree kashi on Mar 28, 2008 5:04 PM

  • Regarding LSMW help files.

    Hi,
    Could anyone please guide me to extensive LSMW help files where the exact use of each step of LSMW is explained clearly and elaborately.
    Thanks in Advance for your esteemed replies.
    Regards,
    Goutham.

    check out this link
    http://www.sap-img.com/sap-data-migration.htm
    and this online help from help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/ad/2d54a41d7011d2b42e006094b944c8/frameset.htm
    Regards
    Raja

  • Regarding LSMW Transport

    Hi Friends,
                     How LSMW is transported to other environments,whether it will be transported using transport request, then how to create a transport request for LSMW,kindly inform the process ASAP
    Thanks

    Hey,
      Use IMPORT & EXPORT Option, that's easy to transport to the another system. We no need to follow the TP Sequence.
    Steps: Goto Extras -> Export Project - Save in Local.
    Goto the Production or Quality System to import.
    Goto Extras -> Import Projects -> Select the file from local.
    Regards,
    Saravanan M

  • Issue regarding LSMW, not showing all records after Read Data

    Dear Experts,
    Plz help..  I need to configure a LSMW for ROH material.. so I made recording, n then create a structure.. accordingly.
    the problem is.. at the time of reading data from .txt file.at the step of Display Read Data it showing only 50 records, rest are not displaying.. but not showing any error.. so my question to our expert that is their any limitations for reading data... if their.. then how could it be elasticated...
    plz suggest..
    regards,
    sandy

    the read step has a selection screen where you can define from which to which record you want read.
    make sure this selection is empty for a test.
    Further check if your source file has more than 50 records.
    then make sure that you really read this source file and not any other version  (check path and file name in step 7 of LSMW)

  • Regarding : LSMW return code 7 file could not be uploaded

    Hi all i have a problem doing lsmw when i go for the 3 rd option after creating a structure in lsmw the moment i press copy fields  from the menu i enter no. of fileds and length it asks for the txt file i attach it and when after attaching i press enter it says file could not be uploaded return code 7.
    What is this error and as to why it is happening ?? and when i asked my friend to do it in his system who is somewhere else he says it is running on my system i am working currently on ECC 6 version of sap.
      Please tell me as why is this happening on my system..
    <removed_by_moderator>
    regards
    singh
    Edited by: Julius Bussche on Jul 27, 2008 6:08 PM

    where is the file located? please check if the file is being accessed by anyone else or if the file is open while your trying to attach it.
    hope this helps.
    tyken

  • Regarding LSMW validation & Debuging

    Hi,
    Is it possible to perform validations in LSMW?
    If yes, kindly send me detailed description.
    Waht is the procedure to debug LSMW?
    Thanks & Regards,
    sathish dasari.

    Yes, it is possible to perform the validations in LSMW.
    In the 5th step(Maintain field mapping), we have various processing blocks like Global data, begin of processing, begin of transaction, begin of record. You will get an abap screen when double click on the required block. write the what ever the code required for validations(like norma se38 program).
    suppose if you find that the record is an erroneous, skip that record for processing (there is global function available in lsmw skip_transaction), then populate all such error records into one internal table, and you can download the same in end of processing block.
    For every lsmw a conversion program will be generated, you can see the same by selecting the display conversion program in user menu.
    put the break-point where ever required, it will be triggered duting the convert data step.
    Thanks,
    Rajinikanth

  • Regarding LSMW Purchase Order header and item data

    Hi Friends,
    I have one requirement i.e purchase order data need to be upload through LSMW via Direct input method.
    =============
    pls find the belwo flat file structure
    old_PO           material            price            qty
    P123              M111                  10               1
    P123              M222                  10                1
    P123              M333                  20               1
    ===============
    Normally if I upload same data into SAP, it will create three purchase orders with different SAP numbers.
    I want if old_PO number is matches with the previous record all the materials should be in single transaction and single Purchase order should be created.
    Can any body help how to resolve this issue. This is very urgent.
    pls explain in detail. I am using LSMW. I don't have no other option.
    =====
    please don't post any junk amswers.
    =====
    Thanks in advance

    Hi Raghunath,
    Don't think that this reply is junk one.I cannot explain you in detail but try like this.
    In the fifth step of LSMW,You can find Global data definitions & Processing times.
    In any of these you can just fetch the values from database with reference to flat file data like..
    select PO from ...where PO = source-PO.
    if sy-subrc EQ 0.
    skip_transaction. Using this function you can skip this record
    endif.
    Award points if useful.
    Thanks,
    Ravee..

  • Regarding LSMW -- Purchase Order Data

    Hi Friends,
    I have one requirement i.e purchase order data need to be upload through LSMW via Direct input method.
    =============
    pls find the belwo flat file structure
    old_PO           material            price            qty
    P123              M111                  10               1
    P123              M222                  10                1
    P123              M333                  20               1
    ===============
    Normally if I upload same data into SAP, it will create three purchase orders with different SAP numbers.
    I want if old_PO number is matches with the previous record all the materials should be in single transaction and single Purchase order should be created.
    Can any body help how to resolve this issue. This is very urgent.
    pls explain in detail. I am using LSMW. I don't have no other option.
    =====
    please don't post any junk amswers.
    =====
    Thanks in advance

    Hi Raghunath,
    Don't think that this reply is junk one.I cannot explain you in detail but try like this.
    In the fifth step of LSMW,You can find Global data definitions & Processing times.
    In any of these you can just fetch the values from database with reference to flat file data like..
    select PO from ...where PO = source-PO.
    if sy-subrc EQ 0.
    skip_transaction. Using this function you can skip this record
    endif.
    Award points if useful.
    Thanks,
    Ravee..

  • Regarding lsmw and spefic infotype fields

    hi , experts
    i want to upload reimbursement amount in sap through lsmw so for this first we should prepare format in excel right
    so in excel which fields we will maintain and how we will prepare
    suppose this amount upload in 0015 info type so give me advice and once u can test in ides then tell me the process
    as same in implementation stage master data should be upload in sap so for this now i want to give the formats for all info types to users then only they will prepare the master data in excel
    after completion of the configuration we will upload the employee master data into sap
    thanks in advance..

    Hi Nethi,
    For uploading 0015 infotype, generally we give Wagetype, Amount/Number, Date of Origin.
    It purely depends on your requirement again.
    Once your upload is successful in IDES, then export LSMW to local system. And import the same in Production.
    Pradeep.

  • Query regarding LSMW.

    How can we update the purchasing Org.(KOMG-EKORG), Condition group with Vendor(KMOG-EKKOL)and price(KONP-KBETR) form an excel sheet to the condition type table A892 using LSMW?The transaction used is MEK2.

    HI,
    just check it is sufficient.....
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    and Iam giving the 13 steps document bellow
    Using Tcode MM01 -- Maintain the source fields are
    1) mara-amtnr char(18)
    2) mara-mbrsh char(1)
    3) mara-mtart char(4)
    4) makt-maktx char(40)
    5) mara-meins char(3)
    the flate file format is like this as follows
    MAT991,C,COUP,Srinivas material01,Kg
    MAT992,C,COUP,Srinivas material02,Kg
    AMT993,C,COUP,Srinivas material03,Kg
    MAT994,C,COUP,Srinivas material04,Kg
    MAT995,C,COUP,Srinivas material05,Kg
    goto Tcode LSMW
    give Project Name
    Subproject Name
    object Name
    Press Enter -
    Press Execute Button
    It gives 13 radio-Button Options
    do the following 13 steps as follows
    1) select radio-Button 1 and execute
    Maintain Object Attributes
    select Standard Batch/Direct Input
    give Object -- 0020
    Method -- 0000
    save & Come Back
    2) select radio-Button 2 and execute
    Maintain Source Structures
    select the source structure and got to click on create button
    give source structure name & Description
    save & Come Back
    3) select radio-Button 3 and execute
    Maintain Source Fields
    select the source structure and click on create button
    give
    first field
    field name matnr
    Field Label material Number
    Field Length 18
    Field Type C
    Second field
    field name mbrsh
    Field Label Industrial Sector
    Field Length 1
    Field Type C
    Third field
    field name mtart
    Field Label material type
    Field Length 4
    Field Type C
    fourth field
    field name maktx
    Field Label material description
    Field Length 40
    Field Type C
    fifth field
    field name meins
    Field Label base unit of measurement
    Field Length 3
    Field Type C
    save & come back
    4) select radio-Button 4 and execute
    Maintain Structure Relations
    go to blue lines
    select first blue line and click on create relationship button
    select Second blue line and click on create relationship button
    select Third blue line and click on create relationship button
    save & come back
    5) select radio-Button 5 and execute
    Maintain Field Mapping and Conversion Rules
    Select the Tcode and click on Rule button there you will select constant
    and press continue button
    give Transaction Code : MM01 and press Enter
    after that
    1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
    2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
    3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
    4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
    5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
    finally
    save & come back
    6) select radio-Button 6 and execute
    Maintain Fixed Values, Translations, User-Defined Routines
    Create FIXED VALUE Name & Description as MM01
    Create Translations Name & Description as MM01
    Create User-Defined Routines Name & Description as MM01
    after that delete all the above three just created in the 6th step
    FIXED VALUE --MM01
    Translations --MM01
    User-Defined Routines --MM01
    come back
    7) select radio-Button 7 and execute
    Specify Files
    select On the PC (Frontend) -- and click on Create button(f5)
    give the path of the file like "c:\material_data.txt"
    description : -
    separators as select comma radiao- button
    and press enter save & come back
    8) select radio-Button 8 and execute
    Assign Files
    Save & come back
    9) select radio-Button 9 and execute
    Read Files
    Execute
    come back
    come back
    10) select radio-Button 10 and execute
    Display Imported Data
    Execute and press enter
    come back
    Come back
    11) select radio-Button 11 and execute
    Convert Data
    Execute
    come back
    Come back
    12) select radio-Button 12 and execute
    Display Converted Data
    Execute & come back
    13) select radio-Button 13 and execute
    Start Direct Input Program
    select the Program
    select continue button
    go with via physical file
    give the lock mode as 'E'
    and execute
    KIshore...

  • Regarding LSMW Recording for Custom TCodes

    Hi Experts,
    Can we do the recording in LSMW for Custom TCodes.Actually I have created a table(fields with data elements,provided technical settings) through LSMW Batch Input Method Recording.When I specify the file in 7th step it goes to dump.Could you please help me how to do this problem?

    Yes LSMW recording can be used for Custom TCodes, that is actually the main purpose for the recording option.
    Why you get a dump can only be determined by reading the dump. Usually this info is among the first 7 pages .

  • Abap query regarding lsmw

    hi ,friend  ,i am taking matnr vaue from user and check the value of matnr coming from flat file ,if both are same then i want to skip the row ,but whern i use skip_record it is just replacing the vaue of matnr by'/'in allthe recoreds ,not escaping that par row.
    i want some sugg .
    thanks

    hi Andreas,
    the code let i  am wr.
    p_in ;value in flat flie.
    w_matnr the value i have given.
    if p_in = w_matnr.
    skip_record.
    endif.
    matnr   mbrsh      mtart
    /       s            03
    /        p             04
    it is doing in this way but i want if matnr is 20 in flat file and the value i have given  match , it should take that row ,but it is taking olny by replacing the value of matnr by '/'

Maybe you are looking for