Skip to Content

HI mates!

Actually this is my first blog in my 5+ years SAP career so don’t judge me strictly.

So I have chosen really intersting topic: probably something that everyone thought about. I’m sure someone even tried to implement this feature by own efforts.

This is a proposal search feature. This is so obvious that if we type the beginning of the search term or even mask we want to see the results instantly. But not in SAP GUI. All the times we had to press F4 or at least click at search button by mouse.

But this morning while creating a new search help I suddenly noticed an  interesting new block in SE11 transaction.

pic1.PNG

According to F4 search help I found the following note:

http://service.sap.com/sap/support/notes/1861491

The requirements for that feature is quite high: These functions are available as of SAP NetWeaver for ABAP 7.4 SP03 and SAP GUI for Windows 7.30 patch level 5 or higher. But happily we have SP04 so I decided to go further and to try it.

I have selected search helps from DD30L table by AUTOSUGGEST = ‘X’ field. Hopefully there were results and I have chosen SDSH_SPFLI as an example to try.

From the where-used list of the following search help i found SDSH_S_SPFLI structure and created a tiny program following the instructions from the mentioned above note:


report ztest_autosuggest.
parameters:
  p_carrid TYPE SDSH_S_SPFLI-carrier_id.
at selection-screen output.
  loop at screen.
    if screen-input eq 1.
      cl_dsh_dynpro_properties=>enable_type_ahead(
        exporting
          fields    = value #( ( |{ screen-name }| ) )
          overwrite = abap_false ).
    endif.
  endloop.

The result on the screen made me really enjoyed. Now we have it as a standard feature:

/wp-content/uploads/2014/08/pic2_520759.png

As I understood only since SP06 this feature is going to be activated automatically. So this cl_dsh_dynpro_properties should be called manually in lower versions.

Also I would mention that it’s possible only search by code. The full text fuzzy search is available only for special databases like SAP HANA as well,

But in anyway that’s something interesting!

So thanks for reading!

Enjoy!

To report this post you need to login first.

13 Comments

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

  1. Suhas Saha

    Hello Petr,

    This is amazing!

    I just checked our sandbox which is on ABAP Release 740, Patch level 04. The search help SDSH_SPFLI does not have this checkbox checked πŸ™ There was just 1 custom search help which had this AUTOSUGGEST field marked as ‘X’.

    Anyway now that i know such a thing exists, i’ll create a custom search help & try a hands-on 😎

    Can you please provide more screenshots and format the code so that it’s easier to read? 😳

    Thanks,

    Suhas

    (0) 
    1. Petr Plenkov Post author

      Thanks Suhas.

      Actually I formatted the code but I surprised that there is no ABAP pattern in the dropdown list. I have chosen XML.

      I hope now it’s better to read =)

      What do you mean under providing more screenshots?

      (0) 
      1. Suhas Saha

        What do you mean under providing more screenshots?

        • From the screenshot it is not clear that you are referring to a search help. Only when i read the blog did i realize that it was a search help
        • A screenshot of the AUTOSUGGEST field (DD30V-AUTOSUGGEST). IMHO, it’s good to have πŸ™‚
        (0) 
  2. Nikolay Evstigneev

    Hi, Petr! I was surprised to see that post from you πŸ™‚ Good start!

    Speaking about the topic – it’s a really cool stuff! They say, soon we’ll get 7.4 systems and I’ll definitely try this feature.

    (0) 
    1. Petr Plenkov Post author

      Thanks, mate!

      Frankly speaking proposal search is not so user-friendly itself.

      But in addition to full text fuzzy search it becomes really powerful and intersting feature.

      As I understand that is possible only for SAP HANA at current moment.

      We already tried it and it looks pretty nice!

      (0) 
  3. JΓΆrg Wulf

    Thanks for sharing.

    One more item on my argument list for upgrading.

    Can’t wait to finally get my hands on a 7.4 system.

    Best regards – Jörg

    (0) 
  4. girdhari mondal

    Hello Petr,

    This is really a good one!!!!

    I tried it by creating a custom table and search help  in one of our sandbox system which has HANA database, but i did not get success.

    Could you please have look on below screen shot and advice if am missing something?

    Code:

    REPORT ztest_propose_search.

    PARAMETERS:

       p_name TYPE zstudentsname.

    AT SELECTION-SCREEN OUTPUT.

       LOOP AT SCREEN.

         IF screeninput EQ 1.

           cl_dsh_dynpro_properties=>enable_type_ahead(

             EXPORTING

               fields    = VALUE #( ( |{ screenname }| ) )

               overwrite = abap_false ).

         ENDIF.

       ENDLOOP.

    Search help.

    Untitled.png

    Thanks,

    Girdhari

    (0) 

Leave a Reply