Skip to Content
0
Nov 02, 2014 at 05:36 PM

Change of Field Catalogue in handle_data_changed Event Method of ALV Grid

265 Views

Dear Experts.

I have a use case, where I would like to make some columns appear/disappear on press of an enter. And I have programmed the enter event, using a method called 'handle_data_changed'.

But when is use the following to make the coloumns appear/disappear inside the handle_data_changed method, none of these below work at all.

CALL METHOD g_grid->set_frontend_fieldcatalog

EXPORTING

it_fieldcatalog = gt_fcat.



CALL METHOD g_grid->get_frontend_layout

IMPORTING

es_layout = gs_layout.

Is the reason behind this a auto refresh of gt_outtab running after the method : handle_data_changed ?

What would the solution this use case ?

Regards,

Naresh