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

Problem with REFRESH_TABLE_DISPLAY (layout)

Former Member
0 Likes
3,330

Hi,

i use this in my ALVGRID OO.



      PERFORM DATEN_EINLESEN.
*
      GS_STBL-ROW = 'X'.
      GS_STBL-COL = 'X'.
      CALL METHOD GR_ALVGRID_LEFT->REFRESH_TABLE_DISPLAY
        EXPORTING
          IS_STABLE      = GS_STBL
          I_SOFT_REFRESH = 'X'
        EXCEPTIONS
          FINISHED = 1
          OTHERS   = 2.
*

in first display my output is correct in layout ( GS_LAYOUT-CWIDTH_OPT = 'X'.)

When i actual my itab and use the obove method, the col is not optimized!

i have tried with and without IS_STABLE and with and without I_SOFT_REFRESH

any idea what i made wrong?

Regards, Dieter

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,148

Hi,

with is_stable----> The position of the scroll bar for the rows and columns remain stable.

i_soft_refresh -


> This is used when u want to refresh the grid control with regard to layout or field catalogue changes

4 REPLIES 4
Read only

Former Member
0 Likes
1,148

Hi,

Check with the above link.

Neelima.

Read only

Former Member
0 Likes
1,149

Hi,

with is_stable----> The position of the scroll bar for the rows and columns remain stable.

i_soft_refresh -


> This is used when u want to refresh the grid control with regard to layout or field catalogue changes

Read only

Former Member
0 Likes
1,148

Hi,

thanks for anwers, i solve it by using this:


      CALL METHOD GR_ALVGRID_LEFT->SET_FRONTEND_LAYOUT
        EXPORTING
          IS_LAYOUT = GS_LAYOUT.

Regards, Dieter

Read only

Former Member
0 Likes
1,148

Hi,

Uncomment the I_SOFT_REFRESH = 'X'.and then try it...