2014 Aug 19 9:37 AM
Hello Experts,
I have created an ALV report, which have two custom buttons to select and de-select the values in the ALV display. When I filter the ALV with any fields and then select all button in ALV, then it is selecting all the rows in the ALV irrespective of the filtered values.
How can I check which values are filtered and ignore these filtered values and select only the rows which are displayed in the ALV after filtering.
Please help and thanks in advance.
2014 Aug 21 8:47 AM
DATA: lobj_grid TYPE REF TO cl_gui_alv_grid.
data: lt_filtered TYPE LVC_T_FIDX.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = lobj_grid.
CALL METHOD lobj_grid->GET_FILTERED_ENTRIES
IMPORTING
ET_FILTERED_ENTRIES = lt_filtered.
lt_filtered values contains tabix values which were filtered.
Hello Experts,
I have created an ALV report, which have two custom buttons to select and de-select the values in the ALV display. When I filter the ALV with any fields and then select all button in ALV, then it is selecting all the rows in the ALV irrespective of the filtered values.
How can I check which values are filtered and ignore these filtered values and select only the rows which are displayed in the ALV after filtering.
Please help and thanks in advance.
2014 Aug 19 10:25 AM
Hi Shravan,
I hope using filter event in ALV Grid display, we can highlight the selected row. I didn't tried the below, but by using the below steps, i hope it will work.
Regards
Rajkumar Narasimman
2014 Aug 19 10:43 AM
Hi,
By Using the Ref_TABNAME and REF_FIELDNAME in the fieldcatalog, the filtering works.
2014 Aug 21 8:47 AM
DATA: lobj_grid TYPE REF TO cl_gui_alv_grid.
data: lt_filtered TYPE LVC_T_FIDX.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = lobj_grid.
CALL METHOD lobj_grid->GET_FILTERED_ENTRIES
IMPORTING
ET_FILTERED_ENTRIES = lt_filtered.
lt_filtered values contains tabix values which were filtered.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |