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

OO ALV Refresh Problem

Former Member
0 Likes
1,473

Hi,

when i refresh my alv grid with refresh_table_display it sets the scroll to the top row. but i want it to remain its own position.

i set the parameter is_stable but problem not solved.

Thx

1 ACCEPTED SOLUTION
Read only

caner_genis
Explorer
0 Likes
983

Hi Mustafa,

You have to set is_stable like is_stable-row = 'X' and is_stable-col = 'X' . You can set also i_soft_refresh = 'X'.


  ls_stable-row = 'X'.
  ls_stable-col = 'X'.

  call method gr_alvgrid->refresh_table_display
    exporting
      is_stable      = ls_stable
      i_soft_refresh = 'X'.

Regards,

Kolay Gelsin.

Caner.

2 REPLIES 2
Read only

Former Member
0 Likes
983

Fill fields of structure IS_STABLE TYPE LVC_S_STBLand call method as follows:


CALL METHOD <Ref.var. CL_GUI_ALV_GRID > ->refresh_table_display
      EXPORTING
         IS_STABLE        = <Structure  Type LVC_S_STBL > 
         I_SOFT_REFRESH   = <Variable  Type CHAR01 > .

Regards,

David

Read only

caner_genis
Explorer
0 Likes
984

Hi Mustafa,

You have to set is_stable like is_stable-row = 'X' and is_stable-col = 'X' . You can set also i_soft_refresh = 'X'.


  ls_stable-row = 'X'.
  ls_stable-col = 'X'.

  call method gr_alvgrid->refresh_table_display
    exporting
      is_stable      = ls_stable
      i_soft_refresh = 'X'.

Regards,

Kolay Gelsin.

Caner.