Is it possible to change the it_outtab
, i.e the data of my alv without destroying it?
I know that to change the field catalog it is possible with this method:
CALL METHOD gr_alvpl->set_frontend_fieldcatalog
EXPORTING
it_fieldcatalog = gt_fldct.
CALL METHOD gr_alvpl->refresh_table_display( ).
But if I have to change the it_outtab
parameters, is it possible?
Yes. Use the method REFRESH_TABLE_DISPLAY
, as outlined in the documentation.
The ALV Grid keeps a reference to the table you passed to it during initialization. You update the contents of that original table and then tell the Grid to update itself.