LSMW TRANSACTION

Dear friends
                Please help me with the step by step process of uploading data for QP01 -inspection plan through LSMW  t-code. Will the same process be used for uploading BOM's also in LSMW.
Thanks & regards
Selva

Hi Selva,
Please find the detailed steps for using LSMW for uploading IP to SAP.I am not sure how much of a help would this be but it should be good enough for a base document.
Note the Recording can vary with what your scope of work is.Recording is however the heart of any LSMW work.
This should help !
Thanks,
RAVI.
Step 1: Maintain Object attributes
In this example, you will be creating the Inspection Plan master records with the help of recording a transaction (QP01). Choose radio button Batch Input Recording and click on the recording overview icon to record the R/3 transaction. Enter the Recording name as QP01_REC, the description as Recording for UpdatingIP, and the transaction code as QP01.
The system calls the transaction code QP01 and prompts you to do sample transaction as is required and saves as Recording of screen sequences.Once the transaction is completed, R/3 records the flow of screens and fields and saves the information.
Note that the fields are populated with default values. The values you entered when you recorded the transaction are set by default.If you have more fields in the recording than needed, you can remove them by clicking u2018Remove Screen fieldu2019 icon.
Observe that the transaction-recording process stores field names in a technical format. By pressing the F1 key on individual screen fields and then pressing the F9 key, the system displays technical names. You then can replace the technical names with descriptive names. Double-click on the field like RF02D-MATNR and enter the name as MATNR and the description as Material and remove the default value.Similarly, double-click on all other fields with default values and make appropriate changes.Save your changes. When you go back to the initial screen, you will see that the initial screen steps have changed.
Step 2. Maintain Source Structures
Give a name and a description to the source structure like QS01S and description as Source Structure for QP01.
Step 3. Maintain Source Fields
In this step, you need to list what fields are present in the source structure. The easiest way is to click on u2018Table Maintenanceu2019 icon to enter Fieldname, Type and Length for each field
Step 4: Maintain Structure Relations
Execute a step to u2018Maintain Structure Relationsu2019. Since, there is only one Source and Target Structure, the relationship is defaulted automatically.
Step 5: Maintain field mapping and conversion rules
If your source file already has the field value, you choose rule u2018Source Fieldu2019.Keep cursor on field u2018MATNRu2019 and click on u2018Assign Source fieldu2019 icon to choose source field MATERIAL from structure QP01S.Similarly, assign u2018Source Fieldu2019 rules to the remaining fields. Map all the fields.
Step 6: Maintain fixed values, translations, user-defined routines
You can also maintain re-usable translations and user-defined routines, which can be used across conversion tasks. In this case, that step is not required.
Step 7: Specify files
In this step, we define how the layout of the input file is. The input file is Tabular with Field Name beginning of the file.ie with Tab delimited with the first row as field names. It is present on my PC (local drive) as C:\QP01.txt.
Create an Excel file with your data and save it as a Tab-delimited text file on your local drive (C:\) and name it QP01.txt.
Step 8: Assign files
Execute step u2018Assign and the system automatically defaults the filename to the source structure.
Step 9: Read data
In this step, LSMW reads the data from the source file (from your PCu2019s local drive). You have the option to read only selected rows and convert data values to Internal format.
Step 10: Display read data
This step is optional. If required, you can review the field contents for the rows of data read.
Step 11: Convert data
This is the step that actually converts the source data (in source format) to a target format. Based on the conversion rules defined, source fields are mapped to target fields.
Step 12: Display Converted data
Again this is an optional step to view how the source data is converted to internal SAP format
Step 13: Create batch input session
Once the source data is converted in an internal format, you can create a batch session to process updates.
Step 14: Run Batch Input Session
You can execute the BDC session by Run Batch input session. Executing a batch input session is a standard SM35 transaction for managing BDC sessions. Once you have successfully executed the batch input session, the customer master records are updated in the system. You can confirm this by viewing the customer master records (QP01).

Similar Messages

  • Interface to LSMW transaction Utility

    Hi,
    Need to develop an Interface to LSMW transaction Utility - This requiremt is for Enhancement of the Infotype
    Take any Infotype Number as an Example.
    Regards,
    Ramana

    Hi Sascha,
    While defining the output parameter of the BLS transaction add the sample output XML structure in the corresponding value field. To get the sample output XML structure create a Xacute query and specify the transaction and test the query with output type text/XML. Copy the output XML and paste it in the value field of the output parameter of the BLS transaction in the BLS editor. Save the transaction and generate the WSDL by running WSDLGen service.
    You can refer the first few pages of this document where I've explained this : <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0e74673-718f-2910-c4a7-bbae959d1e5a">How to Integrate SAP xMII Services with Web Dynpro Java</a>
    Hope this will help.
    Thanks,
    Dipankar

  • LSMW Transaction problem

    Hi i created one program in LSMW and created Tran Code in SE93 by selecting Transaction type: Parameter transaction
    and also i given Object,Project,Subproject details in default Values .
    But if i execute the transaction that default values r not coming to LSMW insted of that recent LSMW project Details r coming . so is there any solution for this pls help me .
    THANKS IN ADVANCe.

    for default values u need maintain the screen fields .
    maintain the screend fields and values like this:
    /SAPDMC/LSSCREEN-PROJECT = project name
    /SAPDMC/LSSCREEN-OBJECT = sub-proj name
    /SAPDMC/LSSCREEN-OBJECT = object name.

  • LSMW Transaction IA06 - Change general task list

    Hi,
    I'm using BDC for transaction IA06.  But now I've encountered a problem in the maintenace package.
    For each GROUP(PLNNR) and COUNTER (PLNAL), there are different number of maintenance package: screen field: RIHSTRAT-MARK01, RIHSTRAT-MARK02, RIHSTRAT-MARK03, etc.
    In my source data, the input value is in number which corresponds to the text in each RIHSTRAT-MARK  For example, the maintenance package for group PRPMP counter 1 has 1, 2, 3, 4, 8, 12, 16, 26, 52.  From my source data, the package is 12, then I will have to check the 6th box. 
    The problem is, there are different number of packages for each group and counter, and the sequence of package text is dfferent too. 
    I'm wondering if there is a table that stores the number of package and it's corresponding text for each group and counter?
    I've searched the forum, but there seems no discussion about this issue.  I'd appreciate any feedbacks from you.  Thanks in advance.
    Lily

    Lily Wu:
    Were you able to find a solution to loading the data maintenance package: screen field: RIHSTRAT-MARK01, RIHSTRAT-MARK02, RIHSTRAT-MARK03, etc.  ??   Transaction IA06 (Change General Task List: Maintenance Package Overview), Program SAPLCPDI, Screen 3600.   I have searched forum too and do not see discussion on this topic also. 
    I have a similar situation needing to load Maintenance Package indicator data via IA05 thru LSMW.  I have an LSMW using the Standard Batch/Direct Input.  It is using Object 490 (Gen. task list) Method 0000 and the program Name is IBIP.  I am able to import 2 files.  1 for the Task List Header to Structure IBIPTLST.  The 2nd file to the Task List Components IBIPTMAT.  This process works, but the requirement is to also load the data to update ("check") the  screen field: RIHSTRAT-MARK01, RIHSTRAT-MARK02, RIHSTRAT-MARK03, etc. with the proper 'X's for each component.
    I have found suggestions to use the IBIPMPAC (Maintenance Packages) structure to load.  But this structue is looking for a 2 character field (i.e. KTEXTZYK01, KTEXTZYK02, etc.  of type KTEXTZYK).  This looks like the data that would be used for Maintenance Strategies Cycle Lengths found in IP11.
    Any assistance in loading the Maintenance Package indicators is helpful.  Thank you in advance.
    Jim

  • LSMW transaction data upload

    Dear All,
          While we are entering data in F-02, we have to Give GL accounts and posting keys 2 times, in lsmw after recording , while field mapping system is giving only one field name for gl account , and only one field name for posting key, where i should i assign another posing key and another gl account.
    Regards,
    Suresh Patipati.

    Hello Suresh,
    This is happening because the name in your recording is repeating. I.e NEWBS and gl account name is repeating on the first screen display object attributes.You probably selected default all on that screen.
    To fix the issue go back to the first screen click on the mountain sun button ( recordings overview) - make sure you are in change mode.
    Go to your field which is repeating eg you have 2 NEWBS.
    double click on one of them and change to eg NEWBS2
    save and go back to your mapping, it will be available now
    Points will be appreciated
    Regards,
    Zaid Azam

  • LSMW for transaction FS00 is very slow

    Hello all, I wrote a batch input program to process GL entries for Chart of Accounts using LSMW, transaction FS00.  We are using ECC 6.0.  I could not use the direct input program becuase my client has FS01 and FS02 turned off.  It is very slow.  I have to process 107,000 transactions and it is exitmated to take about 30 hours.  I know I can break it up into smaller peices but I was hoping someone has ran into this before.
    Any ideas would be appreciated, Thanks

    Would tend to agree, it's unlikely to be the portal.  That transaction has lots of different screen elements, so rendering them as HTML via the internal ITS takes time, if you have a large org structure that would make things worse.
    Not sure if it will make a noticeable difference, but you could try using the display version of the transaction instead (PPOSE).
    Cheers,
    John

  • How to Delete TASK and employee retationship (B049) in HRP1001 Using LSMW .

    Hi,
    Please help me on below requirement.
    In LSMW Transaction:  PP02 is not supporting to delete the records from Table HRP1001 using task .
    Input file we have below details.
    Employee number
    Task ID :
    Relationship ( b049).
    Is there any other way to delete the required records from HRP1001 using LSMW process?
    Thanks & Regards,
    Naresh Chava.

    Hi Naresh,
    I am not sure about the possibility of delete the records.If you are able to do in standard transaction then you can do the same with lsmw.Create a recording method to delete the records and this delete it.
    Regards,
    Madhu.

  • How to call LSMW from a Report program

    Hi,
    I have a requirment of extending vendor master data (Companycode data and Purchasing Organization data ) through Tcode XK02 using LSMW.Also I need to generate an error log file for validating the data from flat file and  must have an export option of the error log file.
    Can you help me how to proceed on this in steps.
    Also pls let me know how to call LSMW transaction through a Report.
    Based on the selection criteria I need to maintain two source structues,one for companycode data and the other for Purchasing Orgnization data for uploading  data thru LSMW.How to do this?
    pls respond ASAP,
    Thanks,
    Nagendra

    Hi,
    create 2 LSMW object (under same project and subproject)..
    one for extended vendor master data for company code data and other for  extended purchase organization data for company code data.
    Now check the radio buttons and based on that populate ur LSMW object.
    Store project
      project = < >.
    Store subproject
      subproj = < >.
    Store object
      object  = '6GSC022_TS3'.
    if r_ccode = 'X'.
    Store object
      object  = < >.
    else.
    Store object
      object  = < >.
    endif.
    Call the function module to display object (LSMW) maintenance screen
      CALL FUNCTION '/SAPDMC/LSM_OBJ_STARTER'
        EXPORTING
          project        = project
          subproj        = subproj
          object         = object
        EXCEPTIONS
          no_such_object = 1
          OTHERS         = 2.
    Generating error log:
    After the checking the field if u think for this u need to generate error message then In the Maintain Field Mapping and Conversion Rules option under the required field write the following code:
    data: v_msgtxt(100) type c.
    message  <msg ID>    <message type>   <message no>
                     with   <var1>  <var2>
                     into v_msgtxt.
    write v_msgtxt.
    Follow the next step in LSMW object till you reach the option  Convert Data.
    After you execute this option you will get the desired message here.
    Regards,
    Joy.

  • Transporting LSMW without creating transport request( from quality to prodn

    Hi All,
    I have created an LSMW in quality, I need to transport it to production with out creating any transport request.
    Kindly let me know the procedure for the same.
    Please help!!!
    Vivek Gupta

    Hi,
    In the transaction LSMW, from the menu:
    From your Quality system give your lsmw name and then do:
    Extras->Export Project
    This will export your lsmw created to an local path.
    Then after logging into Production you can import
    that lsmw from the lsmw transaction only:
    Extras->Import Project
    Hope it helps
    Regards
    Mansi

  • Upload using LSMW

    hi,
    I have custom table(ie ztable). It has only only column material.
    I have a local file containing only material numbers. I want to upload these material into my custom table using Direct Input method.
    While doing this when i am selecting the first radio button of LSMW transaction i.e Maintain object attributes, there is one field with label object and method. when i am using f4 there i am not getting my custom table name??.

    Hi Praveen,
    If you are planning to use LSMW to populate Z-tables, then we need to create a Direct Input program for this. You will have to maintain entries in Data Transfer tables for the F4 to work.
    Also since it is just one table, you could write a simple program which will read the file and insert into the z-table.
    Thanks..
    Preetham S

  • Steps are not displayed in LSMW

    When I open as LSMW in dutch language the STEPs are not displayed.But when the same LSMW is opened in english language the steps are visible.
    Thanks in Advance.

    Hi All,
    Found solution for steps not displayed in LSMW:
    Transaction :SMLT
    check whether your language (DUTCH in mycase) has supplemention with ENGLISH OR GERMAN Language If not then import neccesary package.
    For more details refer SAP note:761911

  • LSMW /RFBIBL00 CO-PA trouble

    Hello All,
    I try to load P&L account into FI-GL using LSMW and RFBIBL00.
    For some accounts, I have to load CO-PA charcteristics values.
    I did it into the mapping and relation structure, but the system doesn't write it. When I do the transaction FB01, I see there is on field to call CO-PAs screen : DKACB-FMORE.
    How can i add it or what i have to do on my lsmw transaction to obtain the same result ?
    Thanks for your answer,
    Best Regards
    Philippe

    I'm trying to do the same thing. My COPABBSEG structure does have all the COPA characteristics, but the COPA fields are not filled.
    When I execute the batch input, there's an indicator field on the screen XERGO, "Detail screen for profitability segment". I cannot find this field in the BSEG table. Could that be the problem ?
    Kind regards,
    Rianne

  • Material master Upload with LSMW

    Hi
    When I make Material master Upload with LSMW, I could not find any entry in planning file.
    Please explain.

    Mayuresh,
    Not all LSMW transactions properly update Planning file.
    You can run transaction MDAB to set up planning file in Background
    You can run transaction MDRE to detect and correct Planning file inconsistancies in Background.
    It is probably a good idea to run these jobs periodically, say, weekly, in most production environments.
    Regards,
    DB49

  • LSMW with CI on System i and an additional Windows Application Server 4.70

    Hi together,
    I have a really tricky problem to realize a parallel processing LSMW Workload.
    In truth it isn't a problem to the parallel processing. It is a problem, how to declare the paths to the input files.
    The LSMW is splittet in four steps:
    1. Read data
    2. Convert Data
    3. Creating Batch Input File (IDOCS)
    4. Start Direct Input Program
    The first three points are using file in the IFS.
    In the 13 points of LSMW there is point " 7 Specify Files" where I can customize paths to the real existing input and output-Files, which are stored at the IFS on System i.
    For example:
    Legacy Data          On the R/3 server (application server)                           
        Materialtexte                  /usr/sap/direct/lsmw/material/matsta_text.txt      
    This works fine.
    Now we have added a Windows Applications Server in front of the 2-Tier enviroment to have more performance to the BTC workprocesses. Now we have two servers shown in sm51. One is the central instance (CI) and the other is the application server (AS), which is working together with the CI.
    <b>Now the big bug:</b> In the LSMW transaction, you can submit the job to batch (BTC) and can't choose the server (Instance) where the batchjob should run. So, sometimes the batchjob runs on the CI (iSeries) and sometimes the batchjob runs on the application server.
    But this is the problem, because the files in the IFS are only stored at IFS on iSeries. And if the Job runs at the application-server, the files is not found, and the job end abnormal.
    Now I tried to find a good solution. So I want to declare a patch in LSMW, that the batchjob is running successful at CI and AS.
    So I tried:
    \iSeriesshareusrsapdirectlsmwmaterialmatsta_text.txt
    But this is not really working, because the SAP WP can't find this file with this path.
    There is a second possibility: Not to submit the batchjobs by pressing F9 in the transaction LSMW but making an extra job in sm36 for each job. Not very smart !
    There is a third possibility: To duplicate the import Files to each Windows Application Server. Then it is possible to submit by pressing F9,  whatever server will be used.
    So my question is:  What is the right way? There must be some poeple in the world who have done a migration with iSeries an Windows Application Server together? Or not?
    best regards,
    Carsten
    Message was edited by: C.Schulz
    path corrected:
    iSeries\share\usr\sap\direct\lsmw\material\matsta_text.t
            Carsten Schulz

    >
    \iSeriesshareusrsap/direct/lsmw/material/matsta_text.txt
    Windows doesn't understand forward slashes, you need to use backslashes all way:
    Try the following on one of the application servers:
    Start - execute
    notepad \iSeriesshareusrsapdirectlsmwmaterialmatsta_text.txt
    If you can open the file, that's the way to go.
    You'd need to check in your program, whether the job is been executed on Windows or non-windows and substitute the slashes accordingly.
    Markus

  • Sales view / Tax classification upload in material master - LSMW

    Hi All,
    While Creating in  LSMW using RMDATIND Batch input method for material mater creation . I am getting an error of "you have not fully maintained tax classification" (M172 error message).
    LSMW details are as follows:
    Project, sub-proj, object : SCIMM,SCIMM,SCI_MM_CREATE
    Please suggest the field value mapping section of LSMW and suggest me how to fix the problem.
    When I create masters manually, in sales view/tax classification 4 tax categories (3 for CA CTX1,CTX2,CTX3 and one for US UTXJ) are getting populated automatically and I need to key-in only 0 or 1 for tax values (ex material :KCC9800MEKIT for sales org 2000, dc 70, dv 70).
    Please sugget me how to fix this issue.
    thanks
    PRadeep

    Hi Murugesh,
    Thanks for your response on this query. I read the link contents.
    LSMW TAX classification for materials
    In the above thread, you have specified
    1. If you have a separate file for tax codes to be applied for different materials then you need to map the records of this file to BMMH2 ( multiple records for a material possible for different countries). Then you need to map BGR00, BMM00 & BMMH1 with another header file with one record for material for the corresponding records on file which correcponds to BMMH2.
    I require your help to implement the above step. As mentioned by you, I have 3 tax codes for CA and one for US (2 diff countries) for each material to be maintained in Tax classification.
    I have created a main source structure  SS which has fields for all views (basic view, sales view, purchasing, plant/sloc and warehouse). I have created a substructure SSTAX for main source structure SS for Tax fields (Aland, taxty,taxm1) and assigned to BMMH2. Will this work or we need to create two  source structure (at same level) for this requirement.
    I am bit confused on how to link these two input files.  I created one record for material xyz in header file and 4 records in tax file (4 tax categories ctx1,ctx2,ctx3 and utxj). How to create one to one relationship working between header and tax file. How the tax file structure will be for 10 material records?
    LSMW Direct Input Method RMDATIND tax classification material
    In the above thread, I find difficulty to follow your steps for same tax data applicable for all materials.
    1.enable the
    Extras->DisplayVariant
    In LSMW transaction, I find diffculty to locate the above option.
    from the menu of the LSMW & check all the check boxes. Now you see the
    __END_OF_RECORD__
    for the structure
    BMMH2which has to be mapped with the input structure in the Maintain structure relations step.
    double click on the __END_OF_RECORD__
    Again I find difficulty to follow the above step. Please explain me step by step to reach below abap editor step.
    which will lead to ABAP editor & then put the following code:
    Canada
    bmmh2-stype = '3'.
    bmmh2-aland = 'CA'.
    bmmh2-taty1 = 'CTX1'.
    bmmh2-taxm1 = '1'.
    transfer_record.
    bmmh2-stype = '3'.
    bmmh2-aland = 'CA'.
    bmmh2-taty1 = 'CTX2'.
    bmmh2-taxm1 = '1'.
    transfer_record.
    Thank you very much for your help and time. I am sure this will be helpful for Pradeep as well.
    Thanks and regrads
    Varadharajan

Maybe you are looking for