I have a problem with an OO ALV. I need to chage the variant after it is show first time (ie. when a button is pushed).
I tried this, but it doesn't work:
DATA: lr_variant TYPE disvariant.
Get actual variant
CALL METHOD gridc->get_variant
es_variant = lr_variant.
Set new variant
CALL METHOD gridc->set_variant
i_save = 'A'
is_variant = lr_variant.
Set new fieldcatalog
CALL METHOD gridc->set_frontend_fieldcatalog
it_fieldcatalog = i_fcatc1.
CALL METHOD gridc->refresh_table_display.
What is the problem?