Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Search help in runtime

Former Member
0 Likes
1,132

Hi all,

I need to create a help search that, in the meantime I am writting, the data is being selected on runtime.

For example:

I am writting:

     NE

It's displaying at the same time:

     NEW YORK

     NEW JERSEY

     NEW ORLEANS.... and so on...

I write:

     NEW Y

And shows up:

     NEW YORK

In few words. A search help that shows me the possible answers meanwhile I am writting. Is that possible??

Thanks in advance,

Mario.

Hi all,

I need to create a help search that, in the meantime I am writting, the data is being selected on runtime.

For example:

I am writting:

     NE

It's displaying at the same time:

     NEW YORK

     NEW JERSEY

     NEW ORLEANS.... and so on...

I write:

     NEW Y

And shows up:

     NEW YORK

In few words. A search help that shows me the possible answers meanwhile I am writting. Is that possible??

Thanks in advance,

Mario.

7 REPLIES 7
Read only

former_member226419
Contributor
0 Likes
1,097

Hi,

Just want to clear the requirement... When you are entering any text say 'NE' in input field then after clicking F4 it will show all possible entries related to NE like

   NEW YORK

     NEW JERSEY

     NEW ORLEANS.... and so on...

Am I getting you right?

BR

Sumeet

Read only

0 Likes
1,097

Hi Summet,

Yes, you got it! With F4 or another, no matter what key.

Do you know how can I do it?

Thanks

Read only

Former Member
0 Likes
1,097

Hey Mario,

Check the FM  F4IF_INT_TABLE_VALUE_REQUEST.

You can checj the example bellow (old code, not my! ) or in this thread.

   SELECT objid short FROM hrp1000

                      INTO (t_org-objid, t_org-short)

                      WHERE plvar EQ '01'

                        AND otype EQ 'O'

                        AND istat EQ '1'

                        AND begda LE sy-datum

                        AND endda GE sy-datum.

     APPEND t_org.

     CLEAR t_org.

   ENDSELECT.

   SORT t_org BY objid ASCENDING.

   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

     EXPORTING

       retfield        = 'SHORT'

       dynpprog        = sy-repid

       dynpnr          = sy-dynnr

       dynprofield     = 'S_ORG' "name of select-options

       value_org       = 'S'

     TABLES

       value_tab       = t_org

     EXCEPTIONS

       parameter_error = 1

       no_values_found = 2

       OTHERS          = 3.

Read only

0 Likes
1,097

hi Renan,

In my select options, I need to enter a string, when I press F4 the matchcode must display all the items that include this string.

Do you know how can I do it?

Thanks

Read only

0 Likes
1,097

You want to do it without wildcards/placeholders?

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,097
  • Web dynpro or classic GUI ?
  • "Help search" do you mean SAP search help or some word completion ? (e.g. google search input)

Regards,

Raymond

Read only

0 Likes
1,097

Hi Raymond,

Is GUI, and help seach like word completion, such google search, right!

Thanks