Regarding tablecontrol in lsmw

hi
   please can any one tell me how to do table control in lsmw?
Regards
srujana

Hi,
LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.
check that single charecter field, it that is X that means the header record is processed, and do the items.
and, this is another way, try this out also
YOu can do this in "Define Source Structures" step,
the HEADER is defined first,
then the DETAIL below the HEADER.
add the fields to the structures.
Both should have some common key field
Please take care that the name of the common field is the same.
Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.
Check the threads -
Re: Table control in LSMW
Re: how can we handle table control in LSMW
Re: Table control in LSMW
how can we handle table control in LSMW
Re: UGRENT !!! Filling a table control through LSMW
Regards,
Padmam.

Similar Messages

  • Regarding coding in lsmw..

    Hi ALL,
                 Where we can write code in lsmw .
    thanks ,
    adithya.

    HI,
    you can write code in Field mapping and conversion rules step.
    Go to change mode and double click on the Field that u have mapped. screen editor will be opened and u can code there.
    and if u want to code seperately, then u can create sub routines and code in that.
    u can create sub routines in the Maintain Fixed Values, Translations, User-Defined Routines step.
    Regards,
    Asif Ali Khan

  • Regarding  VK11 for lsmw........Batch input standard program

    Hi friends,
       I am wokring on LSMW for VK11 transaction. I have to use batch input standard  program....
    can any body help me  in this regard.
    Regards,
    Jayan

    Hi
    a) For Standard Batch/Direct Input i believe we can assign 2 files (structures) , but it is possible for batch input recording ?
    b) If this is possible, how can i assign the second file (detail structure) to C201 recording ?
    In [this post|Re: LSMW load Customer data with Table like file with Header and Item records ?] you can read a good discussion about a problem like yours (header, item):
    I believe you can use both solutions: single or double files.
    c) How can i mapping the detail file fields to recording fields (PLPOD-ARBPL(01), PLPOD-ARBPL(02),..) ?
    Just as Breakpoint said you can check if there's a chance in order to place the record to the top line, else it could be a problem
    Max

  • Regarding tablecontrol

    hi,
    how to insert multiple records at atime to database table from tablecontrol.

    Hi Narsimha,
    in order to pass data from table control to program do this :
    Declare an internal table with the same structuire as table control with header line.
    also in thew attributes of table control mark <b>w/selcolumn</b> and give some name say-mark.
    Now in the top include declare this field
    data  mark type c.
    Make sure you give the same name to fields of table control as that of internal table fields so that data transfer is automatic.
    suppose u have a field NAME age profession in table control.
    do this.
    top include.
    types : begin of struct,
    name(20) type c,
    age type i,
    profession(30) type c,
    end of struct.
    data itab_tabcon type standard table of struct with header line.
    data mark type c.
    now name your table control fields as
    itab_tabcon-name
    itab_tabcon-age
    itab_tabcon-profession.
    in flow logic of screen make your pai dependent on mark
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9001.
    LOOP AT  ITAB_TABCON  WITH  CONTROL  TABCON.
    ENDLOOP.
    PROCESS AFTER INPUT.
    LOOP AT ITAB_TABCON.
    <b>FIELD MARK</b>
    MODULE USER_COMMAND_9001 <b>ON REQUEST</b>.
    ENDLOOP.
    in pai module (USER_COMMAND_9001 ).
    append itab_tabcon."append rows to internal table
    clear itab_tabcon. "work area.
    with this whenever u select the rows of table control in screen(while execution)then this module is invoked.
    so the rows which are selected will be appended to itab_tabcon.
    hope this helps you.
    please reward points if useful.

  • LSMW to upload Business Partner through IDOC

    Hello,
    I have requirement to upload Business partner  through IDOC. I am using below message type and IDOC type.
    1:- Message Type :- CRMXIF_PARTNER_SAVE_M
    2:- Basic Type :- CRMXIF_PARTNER_SAVE_M02
    Could you please tell me what configuration I need to do for this? Like creating partner profile, port etc
    Also I need to extend this IDOC segment to take care of my Z fields.
    After extending the IDOC segment do I need to write code in order to update this Z filed or it will be take care and also how to extend existing IDOC.
    If any one have has done this before then please share the logic.
    Kindly help.
    Regards
    Sachin

    Hi,
    Try LSMW with the IDOC method.
    Message type: BUPAFS_FS_CREATE_FRM_DATA2
    Basic type: BUPAFS_FS_CREATE_FRM_DATA201
    You will need to setting for IDOC: port, partner type, etc.
    Manish

  • LSMW - Logical Path for PIR

    I am working on creating LSMW - sample conversion for PIR. I struck up in the u201CSpecify filesu201D step by creating Logical Path.
    Step  1 : I have done it thru T.Code : FILE  in  that first by creating Logical File path.
    Step 2 : Assignment of Physical Paths to Logical Path
    I have maintained Syntax Group as WINDOWS NT and given the Physical path as C:\TEMP\<FILENAME>
    Step 3 : Logical File Name Definition , Cross Client
    I have maintained Logical File, Name, Physical File , Data Format ,App Area , Logical Path.
    After maintaining I am getting the error message u201C LOGICAL PATH PUR_INFO_RECORD DOES NOT EXISTu201D.
    Please help me out to solve this issue.
    Thanks & Regards,
    Mani

    specific to LSMW there is OSS note 753511 that describes what to do.
    If you have authority for x-client customizing then you can directly type a name for logical path and file name
    e.g. LSMWLOGPATH and LSMWLOGFILE, hit enter and LSMW will create the logical path and file name for you.and you dont need to do it with transaction FILE.
    Go into the step "Specify files".
    place cursor onto line "converted data"
    click change button.
    you get a pop-up with the logical path.
    Just hit enter and LSMW will create the path itself.

  • Requesting all to help me how to create lsmw using idoc method

    hi
    thanx for ur answer
    requesting every body in the forum to help me how to create lsmw using idoc method.
    regards,
    balaji

    Hi Balaji,
    LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
    Hope this is what you are looking for. If helpful then don’t forget to reward me for that
    Darshan

  • Regarding Migrating data from Legacy to SAP

    Hi All,
    We are in Migration Project. We have to upload data from legacy to SAP, either using BDC or Cross-Applications in the following SD scenario's.
    1. Customer Master
    2. Inquiries
    3. Quotations
    4. Proposals
    5. Sales Order
    6. Goods Issue
    I would like to know, which concept is better for each of the above scenario. Each option have advantages and disadvantages. So, I need suggestion regarding this.
    Regards,
    Sathya.

    hi
    LSMW and BDC are vastly different.
    BDC (Batch Data Communication) is a technology used for data transfer. it is meant for transferring data thru SAP transactions itself. when u use BDC for data transfer, the sequence of steps is the same as when u use standard sap transaction screens for data upload. the only difference is that u can use different options for foreground/backgrou nd processing.
    LSMW on the other hand is a tool that helps migrate data from a legacy system (non-sap system ) to SAP system. it offers u various options to use either batch input, direct input, BAPIs or idocs. it involves a series of some 17-18 steps to migrate data.
    BDC:
    Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
    Features :
    BDC is an automatic procedure.
    This method is used to transfer large amount of data that is available in electronic medium.
    BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
    BDC uses normal transaction codes to transfer data.
    Types of BDC :
    CLASSICAL BATCH INPUT (Session Method)
    CALL TRANSACTION
    BATCH INPUT METHOD:
    This method is also called as ‘CLASSICAL METHOD’.
    Features:
    Asynchronous processing.
    Synchronous Processing in database update.
    Transfer data for more than one transaction.
    Batch input processing log will be generated.
    During processing, no transaction is started until the previous transaction has been written to the database.
    CALL TRANSACTION METHOD :
    This is another method to transfer data from the legacy system.
    Features:
    Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
    Updating the database can be either synchronous or asynchronous. The program specifies the update type.
    Transfer data for a single transaction.
    Transfers data for a sequence of dialog screens.
    No batch input processing log is generated.
    LSMW:
    The LSM Workbench is an R/3-based tool that supports You when transferring data from non-SAP systems ("Legacy Systems") to R/3 once or periodically.
    The tool supports conversion of data of the legacy system in a convenient way. The data can then be imported into the R/3 system via batch input, direct input, BAPIs or IDocs.
    Furthermore, the LSM Workbench provides a recording function that allows to generate a "data migration object" in an entry or change transaction.
    The main advantages of the LSM Workbench:
    • Part of R/3 and thus independent of individual platforms
    • A variety of technical possibilities of data conversion:
    • Data consistency due to standard import techniques:
    Batch input
    Direct input
    BAPIs (Business Application Programming Interfaces)
    IDocs (Intermediate Documents)
    The import technique to be used in an individual case depends on the business object.
    • Generation of the conversion program on the basis of defined rules
    • Clear interactive process guide
    • Interface for data in spreadsheet format
    • Creation of data migration objects on the basis of recorded transactions
    • Charge-free for SAP customers and SAP partners
    also check this link:
    Diff. between LSMW & BDC
    Re: bdc and lsmw
    plz reward points if it helps
    rgds.

  • LSMW/ BAPI method for Document upload (CV01N)

    Hi All,
    Could you please let me know if it is possible to use LSMW (BAPI method) for creation of document ?(using CV01N) and linking files.
    If yes, what is the business object for doing the same?
    I did came across a BAPI "BAPI_DOCUMENT_CREATE2", but in order to use it for mass upload , we will have to develop a program. SO I was trying to see of the LSMW method could be used.
    Thanks and Regards,
    Narendra

    Hi Narendra,
    LSMW is not supporting for attachements. Please check and confirm. If you have to upload bulk files then use BDC(Batch data collection) it's very useful for uploading thousands documents at a time. Ask abap'r to write a bdc program.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • Handling table control in lsmw

    hi,
    i need a help to handel table control in lsmw.
    i have created two source structure zheader and zitem.
    then at the time of maintain structure relations its taking only one structure . means i am able to assign only zheader structure. how can i assign both the strucure zheader and zitem here ?
    Thanks.
    Regards,
    Pooja Joshi.

    LSMW in table controls
    How to use table control in LSMW
    LSMW
    Handling Table controls in LSMW

  • LSMW direct input method - Equipment BOM

    Hi Experts,
    We have already written program for equipment BOM master in LSMW direct input method. I do not know about this direct input method.
    Here they have maintained 2 source structures and relavant source fields. one for BOM header and other for BOM items. The first field they maintained is LINK in both the source fields. I really do not know what that field is all about. I checked in step specify files and found that they have previously mentioned two files, one for BOM header and other for BOM items. but when I tried to save in this step it gives me error that " No logical path specified". Can anybody tell me what is this error is all about.Please heip me to get out of this problem.
    Thanks and best regards,
    Praveen

    Hi praveen,
    LSMW does not accept two files.
    In the step create source strcture
    crte one structure with BOM header like with ZBOM_H.
    Under that create another structure for item ZBOM_I.
    ZBOM_H
      ZBOM_I like this structure will will be.
    In the step source fields.
    crate onne variable with indicatoe header.While creating the variable we have field 'identify field content ' field in pop up screen 'H'.
    assign all header files under identifier 'H'.
    then under ZBOM_I create identifier with 'I'.
    Assign all the item fields to this.
    then map the fields.
    In the file should be H header fields.
                                  I item fields.
                                  I
                                  I.
    Then Header .It should be like this.
    in saptechnical u will get the examples go though them once.
    Thanks

  • SNP-- LSMW-- Transportation Lane

    Hi,
    When we are doing LSMW for Transporation Lane creation in APO SNP, system unable to recongize the Pop-Up screen, due to that its not updating record.
    It showing all values after converted data, but, when system unable to feed the value to populate the sub screen.
    Kindly guide to overcome this problem.
    Regards,
    Venkat

    Hi Venkat,
    LSMW does not recognize pop up, to avoid the pop-up you need to check the flags fix trsp duration and fix trsp distance and enter a value for both (dummy value in case you dont require any of these fields), the pop-up generate proposal will not appear.
    But I think creating transportation lane using BAPI is a better and faster option in case you have got large number of lanes.
    Thanks,
    Sanjog

  • Is LSMW tool only used to update master data??

    Hi experts,
    Is LSMW tool only used to update master data??i.e for updating material master,customer master etc.,
    or it can be used to updated configuration tables also.i.e when we do configuration a CTS is to be created.then how the CTS generation is handled.
    Can anyone plesae explain me in detail?
    Thanks in advance,
    Regards,
    N.Sreelatha

    Hi
    LSMW is used to transfer Legacy data from one system to another system.
    Obvioulsy Configuration objects should be transported through CTS only and not with LSMW .
    Cheers,
    Hakim

  • Two questions about the query and lsmw .

    Hi Experts ,
    Could you tell me how to download the query to local driver ? is it possible to do that ?
    I hear somebody introduce lsmw this t-code . it can transfer the data from non-sap/r3 system ? has somebody can fully expain this t-code ?
    Many thanks !!!
    Best Regards,
    Carlos Z

    Hi,
          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.
    Regards

  • ECATT vs LSMW

    Dear Gurus
    could pls tell me the difference between eCATT Vs LSMW, because both are uploading the master file is it any difference in that.
    regards
    mohammed renu

    hi,
    LSMW-
    The LSM Workbench is an R/3-based tool that supports you when transferring data from non-SAP systems ("Legacy Systems") to R/3 once or periodically.
    The tool supports conversion of data of the legacy system in a convenient way. The data can then be imported into the R/3 system via
    1. Batch input.
    2. Direct input.
    3. BAPIs or IDocs.
    The LSM Workbench was developed on the basis of the following principles:
    1. Most of the functions should reside in R/3. No collection of individual programs on different platforms.
    2. The quality and consistence of the data imported into R/3 should be more important than speed and performance of data migration.
    3. Existing knowledge and coding should be used.
    4. The developed "mapping" and rules should be reusable and thus be used repeatedly in projects.
    The main functions of the LSM Workbench are:
    1. Import data (legacy data in spreadsheet tables and/or sequential files)
    2. Convert data (from source format to target format)
    3. Import data (into the database of the R/3 application)
    The following items should be considered:
    1. Make sure that R/3 customizing is finished.
    2. Determine the data contained in your legacy system and which of the data will be required in the future (with respect to business operation).
    3. Decide whether it makes sense to use this tool with respect to the data volume to be transferred.
    Preconditions
    1. Identify the transaction(s) in R/3 via which you want to import the data into your SAP system.
    2. Map the fields in advance in written form: Assign the source fields to the target fields.
    3. Determine the form in which non-SAP data will be transferred into the SAP system (e.g. via "Move" or according to a rule).
    4. In which way will the data be extracted from the non-SAP system? Note: The LSMW does not extract data.
    5. In which form is the legacy data available? Determine accordingly which of the LSMW functions will be applied.
    CATT-
    1. What CATT does is record you performing the actual transaction once.
    2. You then identify the fields that you wish to change in that view.
    3. Then export this data to a spreadsheet to populate with the data required.
    4. This is uploaded and executed saving you keying in the data manually.
    5. To perform CATT, it has to be enabled in your production environment (your systems administrator should be able to do this - SCC4).
    6. You will also need access to your development system to create the CATT script.
    The use of CATT is for bulk uploading of data.  Although CATT is primarily a testing tool, it can be used for the mass upload of data.  The way CATT works is like a real user actually inputting on the SAP screen.  You prepare a set of data that are required to be input into the system and execute what you called a Test Case and CATT will do the boring task of keying for you.
    regards
    bhaskar

Maybe you are looking for

  • Lumia 520 Cannot dial from Phone Book

    I have just swapped my old Nokia 5230 for a Lumia 520, when I use it in my car the phone book downloads and is searchable, however when I try to dial from the Phone Book it just drops back to the first screen showing my phone is connected by Bluetoot

  • Should apple support the itouch 1g

    I've been told that Apple no longer supports iso 3.1.3, for starters is this true?   I've also been told that only Apps that are compatible with ios 3 can be offered on itunes, again is this true? Further, I been told that Apple are progressively pus

  • Deleting a jpg file

    Hi, I downloaded a jpg file from Amazon because I sell books at my website. The image file seems to be damaged - or something. Anyway, I have spent the last half hour trying to delete it. It says I do not have permission to delete the file. I tried t

  • Won't add certain movie's into dvd

    I have movies in a folder to add into Idvd and it wont let me add any that have a titlename. MPG the MPG part is ruining it!

  • Smoothcam with AVCHD from a Canon Legria HF200

    Hi all, I've been working with FCP 7 and the source footage from my HF200, trying to get the shakiness out, but I can't get the desired result. I'm using Toast 10 to convert AVCHD to Apple ProRes 422. The camera records on 1920x1080i 50i PAL. I have