cancel
Showing results for 
Search instead for 
Did you mean: 

Descriptive texts as filter values for a column with an icon cell editor

KKilhavn
Active Contributor
0 Kudos

I would like to improve the user interface of an ABAP web dynpro application which uses ALV. One of the columns holds a four-letter status code which is displayed as an icon with icon hint. The column is set up with four cell variants, and the cell value determines which variant is used. So far so good, this works fine - the icons and icon hints are displayed as I want them to.

The problem is filtering. ALV provides a list of values determined from the current row set, but the problem is that for the icon column I just can't seem to make it display texts instead of codes for these filter values.

To illustrate I added a column with the same dictionary definition and values to the left, but this column is set up with cl_salv_wd_uie_dropdown_by_key as cell editor. The picture below shows three of the four possible values and icons.

Filter values for column with dropdown list cell editor vs filter values for column with icon.

vs

I would like the two columns to display the same list of filter values (sorting has been disabled, that's why there is no sort option in case you wondered).

The value set has been set for both columns, and when choosing 'User-Defined Filter...' the list of values is available for both columns - the only difference is that the left column displays the description and the code, while the icon column only displays the code of the values I select.

In desperation I have even tried referencing the left field using if_salv_wd_column_service_ref~set_filter_fieldname( ), but that had no impact on the filter values (and it would be kind of meaningless to have two identical columns just to get that list of filter values correct).

I am aware of the possibility to provide a list of filter values and have tried that too. If all else fails that will be the solution, but there is one annoying issue with that option; the list of values is not updated when filters are applied to other columns, so the list will stay the same until the ALV is configured again (meaning that even if there is only one record left in the list due to other filters the filter values for the column will still show four choices). A minor issue perhaps, but still ...

Accepted Solutions (0)

Answers (0)