cancel
Showing results for 
Search instead for 
Did you mean: 

Get displayed rows in Table after apply_filter

Former Member
0 Kudos

Hi everybody,

I have a table that is bound to the context. I can also apply a filter to it, using the apply_filter method from the interface IF_WD_TABLE_METHOD_HNDL.

I also have a button where I can do a download of this table.

Therfore I loop at the context to create the XString for the CSV-Download.

But I also get the rows that are not displayed an cannot find the attribute to get only the displayed rows.

Does anybody have a hint for me, how to get only displayed rows, after applying the filter ?

Where can I find the attribute that causes the rows to hide ?

Best regards, Matthias

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You want to download data into table? sorry i am not getting exactly what is your problem?

Can you more clear on this pelase?

Cheers,

Kris.

Former Member
0 Kudos

Hi,

no i want to download the filtered table into a csv-File.

Therfore I do the filtering and click the FileDownloadButton.

Best regards, Matthias

Former Member
0 Kudos

Hi,

You can get filtered values by this..

DATA : filtered type ABAP_BOOL value '  '.

wd_this->table_control->apply_filter(
RECEIVING
IS_FILTERED = filtered ).

If not work.. try this...

Cheers,

Kris.

Former Member
0 Kudos

Thank you kris,

the link you posted solved my problem. Wondering why I did not find it.

Best regards, Matthias

Answers (0)