Issue in field mapping of LSMW

Hi, i am new to ABAP, i am working on LSMW using BAPI (BUS6035) for transaction fb02
I am facing a problem that one field of header i.e. KURSF and WRBTR in present in same BAPI structure. How to map these fields???
Thanks in advance
Kirti

Hi,
After recording please choose the default values. then the system will assign the text to the respective technical field. When number range is internal the system will generate that number
when check box is selected in the tab file specify X then it will take.
Hope this is clear, if yes assign points. Any problem revert me back
Regards,
Sankar

Similar Messages

  • 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

  • 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 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.

  • 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....

  • 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.

  • 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

  • Crystal XI and VB6 Field Mapping Issues

    <p>Hi all,</p><p>I&#39;m in the processing of migrating crystal 8.5 to Crystal XI in my VB6 package. I&#39;ve been able to successfully get the data and pass it along to crystal, but the only problem i have is with field mapping. In crystal 8.5, it didn&#39;t care what the name was called in the ttx it just passed the data along. I&#39;ve found that if the ttx name didn&#39;t match what the SQL statement is, then it wouldn&#39;t pass that field data along in crystal XI.</p><p>I&#39;ve tried looking at .FieldMappingType in both CRAXDRT and CRAXDDRT with no luck. If i set my report and app to use CRAXDDRT it pops up with the mapping box and i can map them at runtime. </p><p> I&#39;d hate to have to go through all my code and start labeling all my SQL statements. Is there a property i can set that will help me out? Or am i SOL.</p><p>Thanks.</p><p>-Louie Orbiso</p>

    <p>This issue is documented in Kbase  c2013226 on http://technicalsupport.businessobjects.com.</p><p>Here&#39;s the jist of the kbase:</p><p>In the registry modify the following key:</p><p>HKEY_CURRENT_USER\Software\Business Objects\Suite 11.0\Crystal Reports Designer Component\DatabaseOptions]<br /><br />MapFieldsByOrdinalForAttachedRecordset<br /><br />change it from No, to Yes </p><p>and also in the same hive, change DontVerifyAttachedRecordset from No to Yes<br /> </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • 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

  • 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

  • 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

  • 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

  • Issue in adapters mapping in OIM 11g

    Hi,
    I am having the issue in adapters mapping in OIM 11g.....
    I had created an Entity Adapter using utility task in OIM... and I had attached it to post update of users form in data object manager.... But when I am trying to map the adapter variables.... it shows me two fields in map to field (Literal and Entity field) and when I select the entity field.. I am not able to see any thing in qualifier field...as there should be fields of user form so that I can map the adapter variables with user form fields...
    I am not able to troubleshoot why is it so....I had restarted the server again but no solution...
    Can anybody help me to resolve the issue??
    Regards,
    Anil

    Hi Rajiv,
    Actually my issue is not that entity adapter will work or not.... But issue is I am not able to map the adapter variables.... there should be user forms fields shown during mapping of entity adapter...... so that i can map the adapters variables...

Maybe you are looking for

  • Address Bar works on one user account and not on the other

    Hi, I've trawled through so many forums to find an answer to my problem - perhaps it's quite unique. About a year ago my firefox address bar's autocomplete stopped working at all. I have the latest version and I've tried all the tricks around dumping

  • White Balance Setting Problem

    APPLE COMPUTER: THREE BASIC QUESTIONS THAT NEED TO BE ANSWERED. 1. HOW DOES THE WHITE BALANCE TOOL WORK IN APERTURE? 2. HOW DO YOUR SOFTWARE ENGINEERS AND "PHOTOGRAPHIC CONSULTANTS" USE IT TO SET WHITE BALANCE? 3. WHAT ARE THE SIMILARITIES AND/OR DIF

  • Keeping information secure N96

    Is there anyway to keep information in a secure place on an N96. Maybe a file that needs a code to open. Any help would be great.

  • Self signed & CA signed certificate

    Hi Experts, Please consider below scenario. users - >Outer Firewall----.Portal with static content ->Cisco load balancer ->Inner Firewall>Apache>Web dispatcher-->SRM Portal with dialog instances - > SAP SRM - >Backend. Here user will directly hit Cis

  • EA6900 Bridge mode setup - not getting proper DNS addresse

    I have an EA6900 that I am trying to use just as an access point (have an existing sonicwall as my internet connection / router device) Here are the steps I have completed  I have logged in to the modem, and created a modem password - can log into mo