cancel
Showing results for 
Search instead for 
Did you mean: 

ALV - autosuggest input

former_member246634
Active Participant
0 Kudos

Hi,

I've created custom database view:

And tried to use it in search-help:



I've got a custom ALV created by using custom container on screen and CL_GUI_ALV_GRID.

I've assigned search help to MATNR field in my custom structure.

I've used multiple ways to export VKORG and SPART to memory, such as:

EXPORT vbak-vkorg FROM gs_header-vkorg TO MEMORY ID 'VKO'. 
EXPORT vbak-spart FROM gs_header-vkorg TO MEMORY ID 'SPA'.

This type-ahead or autosuggest function is not working on my alv (but it works fine on selection screen). How can I make it work?

mmcisme1
Active Contributor
0 Kudos

So for my understanding - you have an ALV with material open for input. And you expect when the F4 button or drop down that a list will display. The list that displays is only for that sales org/division. Correct?

former_member246634
Active Participant
0 Kudos

Not really. This kind of search help searches for your input text in all columns defined in a list of search help fields and provides all matching records. And like Quynh Doan Manh wrote, it works only in fields which are part of the screen e.g. selection screen fields or columns in ALV table, but defined as "table", not created in custom container:

Accepted Solutions (1)

Accepted Solutions (1)

DoanManhQuynh
Active Contributor

Enhanced Search not work with ALV. It will work with table control incase you could use table control for your requirement. I think because type-ahead search is part of SAP GUI, ALV is not screen element so it didnt applied though there is no standard document about this ( as i know)

Answers (1)

Answers (1)

former_member246634
Active Participant
0 Kudos

EXPORT TO MEMORY ID does not pass value to "deafault value" in search help. You have to use SET PARAMETER ID:

But still, user has to press F4.