Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Retrieve Filtered ALV output into Internal Table in Program

Former Member
0 Likes
916

Guys,

I want to update my internal table with the filtered output that the user has selected in the output.

Lets say my internal table had 6 entries which was outputted.

Now the the user filters that output ( say where material is initial ) so that there are only 2 entries left on the output.

How can i know which 2 entries are left on the output screen ?

( i need to know as i am deleting entries from a table )

I came across this slis_filter_alv0 but could not use it in my user exit command routine.

Any ideas would be very helpful.

Cheers.....

Guys,

I want to update my internal table with the filtered output that the user has selected in the output.

Lets say my internal table had 6 entries which was outputted.

Now the the user filters that output ( say where material is initial ) so that there are only 2 entries left on the output.

How can i know which 2 entries are left on the output screen ?

( i need to know as i am deleting entries from a table )

I came across this slis_filter_alv0 but could not use it in my user exit command routine.

Any ideas would be very helpful.

Cheers.....

1 REPLY 1
Read only

Former Member
0 Likes
443

Try the method get_filtered_entries

This method teturns a table with all indexes that are currently hidden on the screen using the standard "filter" function.


CALL METHOD 
<ref.var. to CL_GUI_ALV_GRID>->get_filtered_entries
   IMPORTING
      ET_FILTERED_ENTRIES  = <int tbl of type LVC_T_FIDX >.

Then by using this internal table you can find out the entries which are shown in the output.

Hope this helps.

Thanks,

Balaji