‎2008 Feb 29 4:16 PM
hi all,
I have problem in refresh_table_display,
first i called
CALL METHOD gL_grid_GL100->set_table_for_first_display
EXPORTING
is_variant = ls_variant
is_layout = Ls_layout
i_save = 'A'
IT_SPECIAL_GROUPS = Lt_GROUP[]
CHANGING
it_outtab = ITAB_ZSTMGLRACC[]
it_fieldcatalog = lt_fcat
IT_SORT = LT_SORT[]
then i updated Ls_layout
ls_fcat-NO_OUT = 'X'. of some fields. i want to hide that fields.
the i called refresh_table_display,
but there there is no fields are hiding, alv remains the same.
any one have any idea about this ?..
thanks
Jose
‎2008 Feb 29 4:21 PM
Try this way
In PBO
if g_custom_container is initial.
perform f_create_and_init_alv. " This is your set_table_first_display
else.
perform f_rebuild_fieldcat changing gt_fieldcat.
set titlebar sy-dynnr with p_netwk.
call method g_grid->set_frontend_fieldcatalog
exporting
it_fieldcatalog = gt_fieldcat[].
call method g_grid->set_frontend_layout
exporting
is_layout = gs_layout.
call method g_grid->refresh_table_display.
endif.
a®
‎2008 Feb 29 4:21 PM
Try this way
In PBO
if g_custom_container is initial.
perform f_create_and_init_alv. " This is your set_table_first_display
else.
perform f_rebuild_fieldcat changing gt_fieldcat.
set titlebar sy-dynnr with p_netwk.
call method g_grid->set_frontend_fieldcatalog
exporting
it_fieldcatalog = gt_fieldcat[].
call method g_grid->set_frontend_layout
exporting
is_layout = gs_layout.
call method g_grid->refresh_table_display.
endif.
a®