Suggest Values(Auto Fill) for code and description in WD ABAP

Greetings everyone,
                 I have one ABAP webdynpro application which has to provide the auto fill (Suggest Values) option for one of the field for Eg:Material No.The requirement is the user will have only one field where he/she should be able to search the material either by its name or material number in the same field.Please let me know how we can achieve this.As of now i am able to search by material number using suggest values using my own custom search help.But how can i include the material description also as search option for the material number field.Any help will be appreciated.
Material No:[____________]      <- - -   i should be able to search both by material number and description in suggest values(Autofill)
Thanks,
Vignesh

Hi Thomas,
   You are right. I have exactly thought the same way and i implemented the code as well in the search help exit which will give my own search result to the searching criteria with both number and description. I have able to achieve this for one application and now i am able to search with both number and description in the same field.But when i am trying to get the same functionality for another field ,it is showing a auto fill values but only for code and not for description of the code.I have mentioned below the code i have written in the search help exit and i am passing the list to the source tab and getting the search help result in record_tab.When i test this from normal SAP GUI using F4 functionality it works perfect.But when i try to use this search help via Autofill(Suggest values) in WD ABAP,it is not working the same way what i want.I mean it only searches with the code but not with the description in teh autofill.
Any help will be appreciated.
  IF callcontrol-step = 'SELECT'.
    DATA:lwa_selopt TYPE  ddshselopt,
         lit_selopt_rsfnr TYPE RANGE OF tn39t-rsfnr,
         lwa_selopt_rsfnr LIKE LINE OF lit_selopt_rsfnr ,
         lit_selopt_desc TYPE RANGE OF stnd_rsfna,"rsfna, "nkdi-stdtext,
         lwa_selopt_desc LIKE LINE OF lit_selopt_desc,
         lwa_tn39t TYPE tn39t,
         lit_tn39t TYPE STANDARD TABLE OF tn39t,
         lv_sel_val TYPE ddshselopt-low.
    READ TABLE shlp-selopt INTO lwa_selopt WITH KEY shlpfield = 'RSFNR'."'DKEY'.
    IF sy-subrc EQ 0.
      MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_rsfnr.
      APPEND  lwa_selopt_rsfnr TO lit_selopt_rsfnr.
      lwa_selopt-option = 'CP'.
      CONCATENATE '' lwa_selopt-low '' INTO lwa_selopt-low.
      MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_desc.
      APPEND  lwa_selopt_desc TO lit_selopt_desc.
      CLEAR:lit_tn39t[],record_tab[].
      SELECT * FROM tn39t INTO TABLE lit_tn39t
         WHERE spras = sy-langu AND ( rsfnr IN lit_selopt_rsfnr
         OR rsfsn IN lit_selopt_desc ).
      CALL FUNCTION 'F4UT_RESULTS_MAP'
        EXPORTING
          source_structure  = 'TN39T'
        TABLES
          shlp_tab          = shlp_tab
          record_tab        = record_tab        " <--- I am getting the result correctlyin record_Tab ..but it is not coming in the output/
          source_tab        = lit_tn39t
        CHANGING
          shlp              = shlp
          callcontrol       = callcontrol
        EXCEPTIONS
          illegal_structure = 1
          OTHERS            = 2.
      callcontrol-step = 'DISP'.
    ENDIF.
    EXIT. "Don't process STEP DISP additionally in this call.
  ENDIF.
Thanks,
Vignesh

Similar Messages

  • I am new to Firefox; how do I set up for auto fill for the various forms that need the same info time and time again; thanks.

    I am new to Firefox; how do I set up for auto fill for the various forms that need the same info time and time again; thanks.

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Deselect: [ ] "Always use private browsing mode"
    *Select : [X] "Remember search and form history"
    See also:
    *https://support.mozilla.org/kb/Form+autocomplete
    <i>[locking thread due to the age]</i>
    If you have further questions then please start a new thread.
    *[[/questions/new start a new thread]]

  • How do i keep only the name of a month in a cell in Numbers and not have it auto fill the date and time?

    how do i keep only the name of a month in a cell in Numbers and not have it auto fill the date and time?

    Hi JN and Barry,
    Barry wrote:
    The second case may not be included in the available D&T formats in Numbers 3
    For my region, the Date & Time data formats include month.
    The Date Pop-Up
    This may not be the case for all regions.
    Remember that the month is only the display, and the Full Date & Time is still there. If I change the format to reveal what is behind the curtain:
    Regards,
    Ian.

  • My auto-fill for forms is dead

    I'm using version 10.7.5 & now it seems my auto-fill for forms has stopped.  Under Safari>preferences>Auto fill I have every box (all 3) checked.  Don't know what happpened, it worked fine for years before?
    Thanks in advance for those who can help,
    Bill

    Select your card in Contacts. Then select
    Card ▹ Make This My Card
    from the menu bar. Also select
    Contacts ▹ Preferences ▹ vCard
    and uncheck the box marked
    Enable private me card
    if it's checked.
    In Safari, select
    Safari ▹ Preferences ▹ AutoFill ▹ AutoFill web forms: Using info from my Contacts card.
    If you get unclickable autofill choices in Safari, select from the menu bar
    Edit ▹ AutoFill Form

  • Does firefox have auto-fill for contact info?

    I used to have auto-fill for contact info with another program, where I stored my contact info once, and then whenever a form popped up to be completed, just hit auto-fill and the info auto-populated. Does firefox have this? If so, how can I get it? Thanks!

    Selecting your card
    Launch Contacts. Select your Contac Address.
    Click "Card" in the menu bar and click "Make this My Card" from the dropdown.

  • Function modules for material and description

    Hi,
    Pls let me know the function module for material and description.
    Regards,
    Bala

    Hi,
    Please use FM: MD_MATERIAL_GET_TEXT
    Reagrds
    Raju

  • I have an iphone 5 and i just updated it to ios7 and it kept asking for codes and wouldnt accept any and now it just says iphone disconnected.please help

    I have an iphone 5 and i just updated it to ios7 and it kept asking for codes and wouldnt accept any and now it just says iphone disconnected.please help

    Are you attempting to synchronise new or existing photographs between your devices? My Photo Stream can only synchronise new photographs.

  • DW 2014.1 keyboard shortcuts for "Code and Design" gone

    Option has disappeared for setting keyboard shortcuts specifically for "Code and Design" (or plain Design either, for that matter)?  Split Code option just gives you two code windows and all the other options in Shortcuts are for Live View, not Design view.

    Alt-F11 does not help me in this situation because you still cannot toggle between showing Code and Design versus all Code, or all Design. Live options have replaced Design options, but even then, you cannot make a shortcut for Code and Live (though it's available in the View menu). This screen shot shows what has disappeared.
    Again: Ctl + ` does not toggle the VIEW, it toggles the active PANE.

  • Entering values in Web Services ID and Description, for External Catalog

    Hi,
    I am trying to connect to an external Vendor Catalog from ERP. Pl note that we just have ERP ECC 6.0 and no SRM. I went to SPRO and followed menu path 'Materials Management >> Purchasing >> Web Services: ID and Description'. I am not sure what to enter in 1) Seq. Number  2) Name of Parameter for Web Service and 3) Call Structure COLUMNS.
    I have URL from Vendor, User Name and Password. I need to know what values are mandatory here so I can successfully connect to external Catalog. If someone can give me sample values, I can try.
    Any help is appreciated,
    Niranjan

    Update on 08/23/2011.
    We are able to connect to Vendor Catalog, select items in Cart. When I press 'Place Order' button, I see all items populated in SAP PO ME21N screen. We can then add other information and create PO. This is working great. We have another question. Heard that with ERP ECC 6.0, we can only connect 1 vendor catalog. But with SRM, we can connect more than  1 vendor catalog. Is there a BAPI or change SAP code to connect more than 1 vendor catalog from ECC 6.0 ?

  • Auto fill for user names and pass words.

    Since uploading iOS 7, iPad Safari does not auto fill username and passwords. iPhone 5 with iOS7 does. Settings appear the same but phone does and iPad doesn't.

    Disable by tapping "Private" on Safari Sceen. The top of screen must be white to indicate Private Browsing is off.
    http://i1224.photobucket.com/albums/ee374/Diavonex/8eb4f554e7099a905efc53fef5bab 277_zpsa317fe00.jpg

  • Get description for node and items in WD ABAP - Tree

    Hi all,
    I want to dislay the description for all nodes & Items when creating a Tree. In normal ABAP we assign the relevative text and fill the node table & Item table.
    But in the case of WD ABAP how it works.
    Please suggest.
    Thanks
    Sanket sethi

    Hi,
    Refere WD application WDT_TREE. In this application, 2 attributes are taken as mt_folder_struc and mt_file_struc. These are of type TIHTTPNVP. While filling these tables, make sure to pass proper parent child node.
    See methods, FILL_FILETABLE and FILL_FOLDERTABLE.  field NAME corresponds to child key
    and  field VALUE corresponds to parent key. as these are of type STRING, you need to concatenate text description to code and accordingly fill the tables mt_folder_struc and mt_file_struc.
    Regards,
    Chandra

  • Tax Code and Description

    Hello All,
    We are making a customized report based on vendor invoices.
    1) Need to know tables or logic where we can find/pull out tax codes and its description.
    2) When invoice is posted value goes to GR IR account, from which table i can get the GR IR value.
    Regards
    Himanshu Nijhawan

    Hi Himanshu,
    1) Need to know tables or logic where we can find/pull out tax codes and its description.
    You can find the Tax code in RSEG Table for the Vendor Invoice. Specify the Document No & Year, you will get the tax code in the field RSEG - MWSKZ
    Tax code Description can be obtained in the Table T007S. Specify Tax Code and Language as well to get the description
    2) When invoice is posted value goes to GR IR account, from which table i can get the GR IR value.
    For this, first you should get the Account document corresponding to the Invoice. So, Query table BKPF with the following fields to get the accounting document
    Company Code
    Year
    Object Key (AWKEY) = Your Invoice No + Year (Concatenated Value for eg., 51000000002012
    you will get the Accounting Document No in the field BKPF-BELNR
    WIth the Accoutning Document & Year, query the table BSEG to get the GR/IR accounting posting. Generally the GR/IR is posted with Posting Key 86 (BSEG-BSCHL)
    Regards,
    Rama

  • Need help for displaying key and description in Dropdown (ABAP WEBDYNPRO)

    Hi Experts,
    I am using dropdown as a table field. For this dropdown I want to display the value as well as description.
    In ALV table when we create a dropdown dynamically in table field, there is a method SET_KEY_VISIBLE in class CL_SALV_WD_UIE_DROPDOWN_BY_KEY.
    But I think we cannot use similar method for normal dropdown field in table.
    Is there any way we can display both value and description in dropdown value set ?
    Please help.
    Regards,
    Anand

    Hi,
    I think there is no such option. You need to consider one variable type string and while populating the
    valueset fill this variable by concatenating the value and description and assign it the key and value
    pair of the valueset.
    DATA:
      lt_value_set_ctry      type table of wdr_context_attr_value, " Country/Service Location
      lv_str type string.
        loop at lit_country into ls_country.
          concatenate ls_country-value ls_country-text into lv_str separated by space.
          ls_value_set-value = lv_str.
          ls_value_set-text  = lv_str.
          append  ls_value_set to lt_value_set_ctry.
          clear ls_value_set.
        endloop.
          lr_node_info->set_attribute_value_set( name = 'COUNTRY'
                     value_set = lt_value_set_ctry ).
    Consider this lit_country is a text table for countries.
    Regards,
    Lekha.

  • Oracle error code and description

    Gurus,
    Is there a distinct list of oracle error code with description(in excel or txt,csv format) , the requirement is to convert most of generic oracle messages into user defined messages and store it in a XML.
    Regards
    R
    Edited by: Darthvader-647181 on Aug 11, 2010 8:00 AM

    HareeshGhanta wrote:
    Hi,
    Thank you.I am looking for some additional information like Cause and Action also to be printed out.Is there any way we can achieve this.
    Regards
    Sounds like you are trying to re-invent the wheel.
    What's wrong with the message text as supplied by oracle?  Those messages are universally known and understood -- well, at least by people who actually read them vs. simply dumping them to a forum.  Why would you want to obfuscate them with your own text?
    As for "cause and action", if one has the error code emitted by oracle, there are boat load of web sites that already replicate the same information that oracle itself supplies:
    oracle:dwdev$ oerr ora 12154
    12154, 00000, "TNS:could not resolve the connect identifier specified"
    // *Cause:  A connection to a database or other service was requested using
    // a connect identifier, and the connect identifier specified could not
    // be resolved into a connect descriptor using one of the naming methods
    // configured. For example, if the type of connect identifier used was a
    // net service name then the net service name could not be found in a
    // naming method repository, or the repository could not be
    // located or reached.
    // *Action:
    //   - If you are using local naming (TNSNAMES.ORA file):
    //      - Make sure that "TNSNAMES" is listed as one of the values of the
    //        NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA)
    //      - Verify that a TNSNAMES.ORA file exists and is in the proper
    //        directory and is accessible.
    //      - Check that the net service name used as the connect identifier
    //        exists in the TNSNAMES.ORA file.
    //      - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
    //        file.  Look for unmatched parentheses or stray characters. Errors
    //        in a TNSNAMES.ORA file may make it unusable.
    //   - If you are using directory naming:
    //      - Verify that "LDAP" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Verify that the LDAP directory server is up and that it is
    //        accessible.
    //      - Verify that the net service name or database name used as the
    //        connect identifier is configured in the directory.
    //      - Verify that the default context being used is correct by
    //        specifying a fully qualified net service name or a full LDAP DN
    //        as the connect identifier
    //   - If you are using easy connect naming:
    //      - Verify that "EZCONNECT" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Make sure the host, port and service name specified
    //        are correct.
    //      - Try enclosing the connect identifier in quote marks.
    //   See the Oracle Net Services Administrators Guide or the Oracle
    //   operating system specific guide for more information on naming.

  • When require to fill my name and particulars to an application and the auto fill is displayed and when I click on the auto fill reques turns bleu and refused to auto fill in the document. Your assistance is appreciated.

    When require to fill my name and particulars to an application form or document, thr AutoFill box appears and when directing to auto fill, the message box turns blue and refuses to auto bill. I went to AutoFill in Safari preference but could not find any adjustment to correct the shortcoming. Your assisance is appreciated.

    https://discussions.apple.com/message/23547507#23547507
    This work arround worked for me.. using the icon

Maybe you are looking for