cancel
Showing results for 
Search instead for 
Did you mean: 

Filter in webdynpro abap table

0 Kudos
282

Hi,

I have table control in webdynpro having around 15 columns.

Added sort & filter functionality to the same table.

My problem is, filter is not working if I add date column as part of filter.

I think the date attribute in the context node 'Filter_value' is having default value as 00.00.0000.

So while applying filter it checks for this value 00.00.0000 in the table entries, because of which it is returning zero entries.

How to overcome this issue.

Regards,

Chandru.

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

The documentation mentions this which may be the issue:

If you nevertheless decide to use integers for TableColumn.filterValue rather than a text-based type, we recommend you set the attribute to ,nullable and initialize it with IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE_NULL(). This allows you to differentiate between the user not wanting to filter and the user wanting to filter after the initial value (for example, 0 in the case of integers).