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 items reduction

Former Member
0 Likes
1,861

I want to reduce the search help output linked to a parameter

for example these are the initial values of the search help:

now, I want to display only the first 3 values, that is:

how can I do? can you tell me the code to put please?

9 REPLIES 9
Read only

former_member370623
Active Participant
0 Likes
1,790

Hi Nick,

you can write your logic in

AT SELECTION-SCREEN on value request

and use F4IF_INT_TABLE_VALUE_REQUEST fm and fill value_Tab.

Or you can use search help exit.

Read only

0 Likes
1,790

can you make a code example?

Read only

0 Likes
1,790

here is an example link

Read only

0 Likes
1,790
but in this case there will be only one value
READ TABLE it_return into wa_return index 1.
p_ebeln = wa_return-fieldval.
Read only

0 Likes
1,790
nick.reyan Do you really want the user to select several values from the search help? Is it a Select-Options field?
Read only

GK817
Active Contributor
1,790

Hi Nick,

My assumption is that it's for a custom search help.

1. You can edit search help to change it to display values with restrictions and then default some values to selection fields.

2. You can write your logic in search help exit to filter the list.

GK

Read only

Former Member
0 Likes
1,790

both points are fine, can you make a code example?

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
1,790

Refer to function module F4IF_SHLP_EXIT_EXAMPLE for an example of search help exit.

Also see SAP Help: Search Help Exit

Dominik Tylczynski

Read only

Sandra_Rossi
Active Contributor
1,790

The rule of selecting the first three values is weird (random filtering?). Isn't there a filter criterion based on a field value?