Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Refresh_table_display dount

Former Member
0 Likes
374

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

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
345

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®

1 REPLY 1
Read only

former_member194669
Active Contributor
0 Likes
346

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®