LSMW field mapping

Hello,
    I am doing Material master load using LSMW in 3loads.
First load is for basic data with matnr , mtart,mbrsh,maktx,meins,bismt,mtart.
wht should be the format of my input file, it should be like in the step " maintain field mapping and conversions" , because when in see the data in "display read data " and " display converted data ", its loading the records but its deleting some parts of it and after executing the last step its giving errors.
If LSMW is success, where can i see the output?
I would appreciate if some can help me , i am doing LSMW for the first time.
the problem is with field mapping and file format?
thanks.
Raghu

the file format is same as the field mapping and conversions, still its picking the values from the file in different order . I am saving the excel sheet in tab delimited form and mentioned it in the LSMW.if anyone done Material master load , if would appreciate if u can give the steps and file format..
points are rewarded..
thanks.

Similar Messages

  • LSMW field mapping Rule-ABAP code

    Dear Guru!
    I'm new to ABAP, but I have to write a little in ABAP.
    I create a LSMW project using BAPI for changing standart price of material.
    Input data: material, price, posting date.
    The point is: system should found in table MBEW all valuation areas and valuation types fo which the material record is exist and cang price for all these records.
    I wrote a code for these fields in Field Mapping menu. But it puts in only one record whereas I need it to execute BAPI for all records.
    I wrote the folliwing:
    VALUATIONAREA                Valuation Area
                       Code:    tables MBEW.
                                select * from MBEW
                                 where MATNR = ZHEADER-MATNR.
                                E1MATERIALVALUATION_PRICECH-VALUATIONAREA = MBEW-BWKEY.
                                endselect.
    VALUATIONTYPE                Valuation Type
                       Code:    select * from MBEW
                                 where MATNR = ZHEADER-MATNR.
                                E1MATERIALVALUATION_PRICECH-VALUATIONTYPE = MBEW-BWTAR.
                                endselect.
    May be it's simple, may be not. But I don't know how do do it.
    Will be grateful for any hints.
    Thanks.
    Edited by: assoli on Aug 3, 2011 3:51 PM

    select endselect goes like a Loop, so if you don't store the value in some table (internal table), only the last row will be available to you as it will be overwritten everytime in the loop.
    There is no need of using 2 selects, one select itself will give you all the data for that material in MBEW table. I don't understand what you are doing with
    E1MATERIALVALUATION_PRICECH-VALUATIONAREA = MBEW-BWKEY
    Is E1MATERIALVALUATION_PRICECH a structure ? You need somethng like
    select * from MBEW
    where MATNR = ZHEADER-MATNR.
    E1MATERIALVALUATION_PRICECH-MATERIAL             = ZHEADER-MATNR
    E1MATERIALVALUATION_PRICECH-VALUATIONAREA = MBEW-BWKEY.
    E1MATERIALVALUATION_PRICECH-VALUATIONTYPE = MBEW-BWTAR.
    Append E1MATERIALVALUATION_PRICECH to itab.             "(itab is internal table)
    endselect.
    Then use that itab for your purpose.

  • LSMW  Field Mapping: can't map Batch Input Structure for Session Data

    In step 5 Maintain Field Mapping and Conversion Rules, I can not see Batch Input Structure for Session Data Fields.
    Can somebody tell what's wrong?
    Here's what I see:
    Field Mapping and Rule
            BGR00                          Batch Input Structure for Session Data
                Fields
                BMM00                          Material Master: Transaction Data for Batch Input

    Hi Baojing,
    To see structure BGR00  you have to map this structure first with input file structure in step 4 (maintain structure relationship).
    Regards
    Dhirendra

  • Re: Error in LSMW Field Mapping and Conversion Rules

    Hi Friends,
    In Step Field Mapping and Conversion Rules:
    Am not able find the fields.
    1. I checked the source structure relationship it is ok.
    2. I have assigned the fields in recording too.
    Please help me out.
    Thanks in advance
    vivek

    hi ram,
    I think u have gone wrong in the first step itself............
    Do like this,
    1) Goto Maintain Object Attributes
    2) Select Batch Input Recording and Enter Ur recording Name
    3) Then Select Recording Overview...
    4) Thne Press DEFAULT ALL on ur Application Toolbar or Select EDIT-> DEFAULT ALL
    5) All ur Source Fields will be mapped for Recording Fields......
    6) Now u can see ur Fields in Field Mapping and Conversion Step......
    I hope this will work u r doing with BATCH INPUT METHOD...
    Reward me if useful.......
    Harimanjesh AN

  • ABAP code which will use function module during field mapping in LSMW

    Hi,
    During field mapping in LSMW, for one of the field called field, I want to use a function module 'QF05_RANDOM_INTEGER', which will generate random numbers and map that random number to that field.
    How do I write ABAP code which uses function module, during filed mapping for a particluar field in LSMW ?
    Please help...
    Regards,
    Tushar.

    Hi Tushar,
    You can write in FORM ROUTINE and LSMW.
    I hope you know how to write ABAP code at field level.
    If not ...
    Come to change mode->select the field->Rule->ABAP Code
    write a perform statement in ABAP code at field level.
    <b>PERFORM test</b> using val
                 changing valu.
    Go to Utilities(at menu)->switch layout-> extras ->select Layout->check Form routine-> it will display a FORM Routine... at bottom
    this is the place where you can write some code for
    <b> FORM test</b> using value
              changing value1
      FM call....
    .ENDFORM  
    Get the value1 returned and use for the Field population.
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • Problem in lsmw. step: display field mapping and conversion rule

    hi,
    The IDOC structure to be mapped is missing in step 5[lsmw using IDOC]. Hence target structures are missing in auto gnerated conversion program.
    As a result the the step Convert Data step is failing.[Converted data cant be generated]
    I am using standard BAPI charcteristics as my Basic Type.
    Anyone having idea why the target structure is missing??..

    The problem is solved....The field mapping was missing coz i didnt assign the target structure properly....

  • Maintain Field Mapping and Conversion Rules//LSMW

    Hello Friends,
    I want to add new fields in the step.no.5(Maintain Field Mapping and Conversion Rules).
    Indetail i'm going to upload the GL balances, for DR and CR line item fields are same so system is not accepting the same field value, so i have added 1 for the CR line item fields like in the below example.
    BSEG-WRBTR(Dr line item)
    BSEG-WRBTR1(Cr line item)
    but BSEG-WRBTR1(Cr line item) field not displaying in the step.no.5 to mapping to source field.
    please let me know the solution for this.
    thanks
    swapna.

    Hi,
    I would like to ask few questions.
    1. Are you using batch input recording or using any program for uploading. (through LSMW)
    2. Whether all your debit or credit line items are same every transactions. I believe they should be same, because you are uploading the balances.
    You should not have two similar fields for example, if it is WMBTR, then again WMBTR should not be there, it should WMBTR1 and WMBTR2. Make sure you have done the field mapping properly. When you have done the field mapping all the fileds must have been mapped. If any one of the fields are not mapped, then it will not be uploaded.
    Please see the following LSMW sample guide:
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    Maintain Object Attributes Do the recording - Make sure that you do not have two fields with the similar name. If you have two fields with the same name double click on the field name and add1 or 2 to differentiate between field names. Just Copy those fields and descriptions in excel sheet, delete the blank lines, then in excel data => text to columns, your field names and descriptions will be now in two columns. Copy them, then put your cursor on the next sheet, then edit => Paste Special => Transpose, all the columns will become your rows. Now your file structure is ready. Maintain Source Structures Give some unique structure name and description Maintain Source Fields Here you add the fields that are being used in EXCEL first sheet, just copy them and make all the fields as C (Constant) and then give length of 60 for all fields. Maintain Structure Relations Though structure relations are already created just go to this step, click on edit, then click on create structure relation, just accept the message stating that the structure relation has already been created. Maintain Field Mapping and Conversion Rules Do the field mapping for all the fields, all the fields willl be stretched and you will see five rows against each row. In case if there is any row that has NOT stretched means, there is something wrong in the mapping. Maintain Fixed Values, Translations, User-Defined Routines There is nothing to be done at this step. You can simply ignore this. Specify Files Make you must have saved your excel file as .txt (before saving make sure you have copied data from sheet2 to sheet 3 and then sheet 3 is saved at tab delimited file. Text (Tab delimited) Select your file, make SURE that you have select "TABULATOR" radio button and say OK. Assign Files Go to this step and click on Create assignment button and accept the message and say ok. Read Data Remove two check boxes and just click on execute button. See the log. Make sure you have number of entries (lines) in your excel file are matching with this. Display Read Data Display data give 1 to 999 lines and double click on one of the line and see whether fields are mapped correctly are not. Convert Data Execute and see the log match the number of entries. Display Converted Data Display converted data, give 1 to 999 and double click on one of the line and see whether fields are mapped correctly or not. Create Batch Input Session Check on Keep Batch Input sessions check box, then execute. If you select that check box, even after execution it will be there and you can analyze what happened. Run Batch Input Session (Takes you to SM35) Go to SM35 select the batch and click on process button (execute), make sure you have checked right hand side first three check boxes and FOREGROUND (because you want to save what it is creating) Say OK Keep on press ENTER on your key board in order to move the session further. If you follow these steps along with the guide, surely you should be successful. There may be small difference between the file and what I have explained but ultimately the purpose is same. Hope this is useful and let me know in case if you have any issues.
    Regards, Ravi

  • LSMW Source and Field Mapping

    Hi,
      I'm trying to use the LSMW.  What is the fastest way to maintain the source field and relationship?? Is it possible to define the source field and length in a text file and load it in the LSMW??
    Regards,
    Kit

    Hi Kit,
            u can create source fields in faster way.
    menupath
    In the 3rd step i.e., Maintain source fields
    source fields -> table maintenance
    here u can fill all the fields at a time.
    u can also maintain the fields in a file and copy and paste them in the Table maintenance .
    In 5th step i.e.,  Maintain Field Mapping and Conversion Rules
    Extras -> Auto field Mapping
    Now u get the auto field mapping setting pop-up.
    click ok.
    Now u Get the auto field mapping proposel pop-up.
    Here check Target field and Source field and click on Accept proposel push button for all the fields.
    with this the source and target field mapping are done automatically.
    reward if helpfull
    raam

  • LSMW  Maintain Field Mapping

    Hi SAP Gurus,
    I maintainance LSMW with option recording
    1)     Recording trans action as92
    2)     Maintain Object Attributes with my recording
    3)     Maintain Source Structures
    4)     Maintain Source Fields
    5)     Maintain Structure Relations, between SAP and source structure, choose Check to examine the structure relationships for errors. Yes ok.
    6)     Maintain Field Mapping and Conversion Rules, and now I have trouble, because I havenu2019t screen with field. I canu2019t doing mapping.
    Maybe is any buttom/function which join sap structure with my structure
    Can anyone help me?
    Regd
    Stenwa

    perhaps je have to delete the recording and do a new recording.
    Have you done the following steps
    Maintain Object Attributes
    Go to change mode
    Go to  recordings overview:
    A recording should look like this:
    AS91       asset legacy transfer
               Transaction:         AS91 Create Old Asset
               Owner:              
    SAPLAIST 0105
        BDC_CURSOR                     ANLA-BUKRS
        BDC_OKCODE                     /00
        ANLA-ANLKL                                          ANLKL                asset class
        ANLA-BUKRS                                          BUKRS                company code
    SAPLAIST 1000
        BDC_OKCODE                     /00
        BDC_SUBSCR                     SAPLAIST
        ANLA-ANLN2                                          ANLN2                asset subnumber
        BDC_SUBSCR                     SAPLATAB
        BDC_SUBSCR                     SAPLATAB
        BDC_SUBSCR                     SAPLAIST
        ANLA-TXT50                                          TXT50                asset description line 1
        ANLA-TXA50                                          TXA50                asset description line 2
        ANLH-ANLHTXT                                     ANLHTXT              asset description line 3
    Use the SAP field names like TXA50  this you have to fill in manual
    When you record and when there are default values, still overwrite them manual (other wise you mis them here.
    Blocks
    ANLB-NDJAR(01)                                      NDJAR_01             Usefull life in years line 01
    ANLB-NDJAR(02)                                      NDJAR_02             Usefull life in years line 02
    ANLB-NDJAR(05)                                      NDJAR_05             Usefull life in years line 05
    ANLB-NDJAR(06)                                      NDJAR_06             Usefull life in years line 06
    ANLB-NDPER(01)                                      NDPER_01             Usefull life in periode line 01
    ANLB-NDPER(02)                                      NDPER_02             Usefull life in periode line 02
    ANLB-NDPER(05)                                      NDPER_05             Usefull life in periode line 05
    ANLB-NDPER(06)                                      NDPER_06             Usefull life in periode line 06
    Maintain Source Fields
    ASSET_LEGACY_TRANSFER     asset legacy transfer
        ANLKL                          C(004)    asset class
        TXT50                          C(050)    asset description line 1
        INVNR                          C(025)    asset tag number
        AKTIV                          C(010)    capitalization date
        GSBER                          C(004)    business area
        KOSTL                          C(010)    cost center
        GDLGRP                         C(008)    location
        AFASL-1                        C(004)    Asset depreciation key line 01
        AFASL-2                        C(004)    Asset depreciation key line 02
        NDJAR-1                        C(003)    Usefull life in years line 01
        NDJAR-2                        C(003)    Usefull life in years line 02
        NDPER-1                        C(003)    usefull life periods line 01
        NDPER-2                        C(003)    usefull life periods line 02
        AFABG-1                        C(010)    Dep start date line 01
        AFABG-2                        C(010)    Dep start date line 02
        ANBTR01-1                      C(013)    Aquasition value Tax books
        ANBTR02-1                      C(013)    Aquasition value LO books
        ANBTR01-6                      C(013)    *** depreciation TAX books
        ANBTR02-6                      C(013)    *** depreciation LO books
    These field names you (can) use in the header from the excel file, in some cases with the block you have 1 value in the sourche fields like use-full live but you fill it in in 3 depreciation area's in that case you have to map it manual
    When you have used the same field name's you can use in Maintain Field Mapping and Conversion Rules the option automatecly mapping
    Edited by: Paul Annotee on Apr 28, 2009 9:27 AM

  • LSMW No fields in field mapping

    I created a project to Create Material Basic data. In Maintain Field Mapping and Conversion Rules, I dont see any fields. What could I have done wrong.  I am using Batch input recording.

    Did you assign source structure to target structure ,if not assign them and see the results.
    Step 1 - Maintain Object Attributes
    Recording is done for the transaction
    Step 2 - Maintain Source Structures
    Maintain your source structures
    Step 3 - Maintain Source Fields
    Maintain source fields under the source structure
    Step 4 - Maintain Field Mapping and Conversion Rules
    Map the source structure fields to target structure fields
    Step 5 - Specify file
    Here you specify the file path to the source structure
    Thanks
    Seshu

  • How to add a new field in the Field Mapping

    Dear Freinds,
                   I have two un used fields in the  Source fields to the Target Fields ,
    i have to add the 3   fields which r there in the my source fields to that
    of the target fields ( as per the change in the requirement) in the 5th Step
    i.e Maintain Field Mapping and Conversion Rules
    the Target strucutre & the Source fields( by clicking the button
    Source field and selcting the fields from the popup menu) in the mapping and conversion step  ,i want to  add  3 fields which are availabe in the list of th source list  which i want to map to the Target strucutre  .
    When i tried it is adding in the othe target field
    presently i have mapping (5th sept ) as below.
       ZPA30_08                       LSMW
           Fields
               TABNAME                      Table Name
                                   Source:  ZP0008_STRC-PERNR (Personnel Number)
                                   Rule :   Default Settings
                                   Code:    ZPA30_08-TABNAME = 'ZPA30_08'.
               TCODE                        Transaction Code
                                   Rule :   Default Settings
                                   Code:    ZPA30_08-TCODE = 'PA30'.
    now i want to add 3 fields Pernr,wage type and Amount  , but when iam trying it is
    getting and saved in the TABNAME .
    How can i map please let me know .
    Regards
    syamla

    Hi,
    So you need that this new field have data in old records?
    1.- If you are in BI 7.0 and the logic or data for that New field are in the same Dimension, you can use a Remodeling to fill it. I mean if you want if you want to load from a Master Data from other InfoObject in the same Dim.
    2.- If condition "1" is not yours.
    First add the new field, then create a Backup Cube (both cubes with the new field) and make a full update with all information in the original Cube. The new field willl be empty in both cubes.
    Create an UR from BackUp_Cube to Original_Cube with all direct mapping and create a logic in the Start Routine of the UR (modiying the data_package) you can look for the data in the DSO that you often use to load.
    To do that both cubes have to be Datasources ( right click on Cube-> aditional function-> and I think is "Extract Datasource")
    Hope it helps. Regards, Federico

  • Auto field mapping not working

    Hi,
    I am working on LSMW for transaction DGP2. for the 5th step (  5 Maintain Field Mapping and Conversion Rules), this functionality is not working niether I am able to assign manually. The source structure might have problem. How should I find out the error in which step and how to sort out that?
    Thanks in advance,
    Rgds,
    Madhuri

    Hi Chenna,
    I have given same structure for this one. Still its not working.
    please help.
    Thanks
    Rgds,
    MAdhuri

  • EDI_DC40 empty in Field mapping

    Hi Friends,
    in LSMW when I come to the field mapping step I find the structure EDI_DC40 empty.
    I have entered Information for Partner types, Partner Number and Ports.
    Normally when I come to the step field mapping the structure EDI_DC40 is allready filed with values.
    Do I have to set defaults somewhere?
    Many tahnks.
    RG. Jimbob

    Hello,
             While processing the Idoc, it is required to maintain the Control Record Information for the IDoc.
             So, please maintain data for the Control Record such as Partner Information, Port Information etc.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Maintain field mapping and conversion rule

    hi
    could you please tell me,
    IN LSMW  5 th step, what is the role of maintain field mapping and conversion rule, please throw some light on it.
    Thanks

    it will set up the connection between your defined "source field" and the field which has been maintained by your import method .

  • EMIGALL Field Mapping

    Hi,
    I am new to using EMIGALL. I have one query:
    Where does the field mapping takes place in EMIGALL? Like in LSMW, we maintain the field mapping by mapping source and target fields. How is the same done in EMIGALL?
    Thanks,
    Sachin.

    Hi,
    please see the very detailed description of the auto-structure and the migration object. The process differs for each structure, but in most cases it is quite similiar to the LSWM. You can defibe pre- and postprocessing code where additional conversion might be done, the fields which will be expected in the input file by the EMIGALL are listed when you click on the auto-structure.
    KR
    Uwe

Maybe you are looking for

  • HT1347 how do i connect my music to itunes in one go

    i have several 000's of music stored on an external device not used for some years on an old redundant computer I seem to be able to add them one at a time to itunes but how can i link them all together or force itunes to relink them all TIA Jerry

  • When I forward a HTML mail, the mail arrive stripped in a lot of archives

    When I forward a HTML mail or even a simple rich text, the mail arrives to the receipts stripped in a lot of archives. Example: If is a history of three mails, will arrive three or more (if have photos) archives to be opened as .html in some browser

  • Fix for the Aluminum Wire Keyboard?

    http://www.apple.com/support/downloads/bootcampupdate21forwindowsxp.html do the new bootcamp drivers have fixes for the new aluminum keyboards? Im setting up programs & applications using a new macpro, however eject key doesnt function, as i ahve mul

  • Dictionaries in Openoffice 2.4 can't install

    I'm trying to install dictionaries for openoffice 2.4 but when I click the guide "Install extra dictionaries..." the dicooo.swx (version 1.8) starts and I choose my language and click install but then I get an error stating "non-allowed value or data

  • Prepayment functionalitygives an error during Order Entry

    Hi all, We have oracle applications Suite - 11i (11.5.10.2) . At time of prepayment during Order Entry form, we are getting following error. _"Function not available to this responsibility. Change responsibilities or contact your system administrator