‎2020 Feb 07 12:29 PM
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?
‎2020 Feb 07 12:32 PM
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.
‎2020 Feb 07 12:41 PM
‎2020 Feb 07 12:54 PM
‎2020 Feb 07 1:12 PM
but in this case there will be only one valueREAD TABLE it_return into wa_return index 1.
p_ebeln = wa_return-fieldval.
‎2020 Feb 07 2:23 PM
‎2020 Feb 07 12:39 PM
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
‎2020 Feb 07 12:42 PM
‎2020 Feb 07 12:51 PM
Refer to function module F4IF_SHLP_EXIT_EXAMPLE for an example of search help exit.
Also see SAP Help: Search Help Exit
Dominik Tylczynski
‎2020 Feb 07 2:24 PM
The rule of selecting the first three values is weird (random filtering?). Isn't there a filter criterion based on a field value?