Skip to Content

Hi,

I want to create a Search input field on my wd screen which can search an index based on the search text I feed in. The challenge is that search query in the background should execute as soon as I start writing the key rather than on hitting any button. Did any of you do this in past or have any insights on this. Basically I need to know if there is a wd function which gets called on entering text in the input field.

If there is nothing like this available as of now in SAP, any suggestion on how to approach designing this functionality. Thank you so much.

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Susan Keohan

    Hi Dhiraj,

    Sorry to say, but since this is posted as a blog, it will probably not get any answers.  I recommend that you search the correct forum (WedDynpro?) and then open a new discussion thread if you can find a previous answer.

    Good luck,
    Sue

    (0) 
    1. Muralii immadisetty

      Hi,

      Insteaded of go for searching and pass data to input field.You can read all the searching data and place the data into one internal table after that whatever data u want search that u can pass the serachedvalue into one variable exlike ‘*test*’.Based on variable read the values from ITAB(all searched data)

      LOOP AT ITAB INTO WA FROM TEXT CS LV_SEARCH.

      APPEND WA TO IT_SEARCH_FINAL.

      ENDLOOP.

      Thanks & Regards,

      Murali.

      (0) 
  2. Uday Mr

    Hi Dhiraj,

    Yes its quite possible. You need to do 2 things:

    1) Associate a search help with the context attribute to which you are binding your input field. Lets say I have an input field for a commodity code & I want the application to show me matching commodity codes as the user is typing into it then I need to design a search help which takes in a commodity code as importing parameter and exports back lets say the commodity code & its description.

    2) In your view layout select the input field and set the “suggestValues” flag. This way you specify to the framework that you want it to display matching values as the user is typing into it. The framework would be internally passing onto your search help the values that the user is keying in and showing the results that get exported from it as your matching values.

    As how quoted by Susan you have incorrectly posted your query as a blog. You ought to post it in the WDA forum to get proper replies. Also here we are not allowed to insert any images to help make you understand better.

    Regards,

    Uday

    (0) 
  3. UmaMaheswaraRao Surapaneni

    In my opinion , this can be achieved.

    in the Input UI filed, we have an option as property called Suggest values.

    and you can develop a search help exit and write the code to get the values from Tables in that exit.

    add the exit to a custom search help and add this search help  to the input field and check the SuggestValues property.

    this will work as per your requirement.

    Thaks.

    Uma

    (0) 

Leave a Reply