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 issue

Former Member
0 Likes
633

Hello All,

I am using OO ALV to display the results.

column1, column2, column3 column4 (sorting is on column1, colum2)

After clikcing on a button, the order or colums should change

column4, column2, column3, column1 (sorting is on column4, colum2)

To achieve above requirement ,

after clicking on button, i am freeing the object of custom container and grid. creating them again.

calling set_table_for_first_display, after rebuilding the fields catelog table and sorting table.

But this is not giving the desired output. i checked in debugging, that, the objects are freed and new field catelogs are build. Still the display is not changing to coulmn4, column2, column3, column1

Plz help with some ideas

Thank you.

Best Regards,

Amar

Hello All,

I am using OO ALV to display the results.

column1, column2, column3 column4 (sorting is on column1, colum2)

After clikcing on a button, the order or colums should change

column4, column2, column3, column1 (sorting is on column4, colum2)

To achieve above requirement ,

after clicking on button, i am freeing the object of custom container and grid. creating them again.

calling set_table_for_first_display, after rebuilding the fields catelog table and sorting table.

But this is not giving the desired output. i checked in debugging, that, the objects are freed and new field catelogs are build. Still the display is not changing to coulmn4, column2, column3, column1

Plz help with some ideas

Thank you.

Best Regards,

Amar

3 REPLIES 3
Read only

Former Member
0 Likes
570

i was not calling Free method. once i call it, its working as expected

Read only

RaymondGiuseppi
Active Contributor
0 Likes
570

- Look like a buffer problem, try to use a CL_GUI_ALV_GRID=>M_BUFFER_INACTIVE='X'. to deactivate the buffer. But before, look for default variant or such parameter that may restraint the ALV to change its layout.

- Do you try to change the layout ALV->SET_FRONTEND_FIELDCATALOG before() an ALV->REFRESH_TABLE_DISPLAY().

Regards,

Raymond

Read only

Former Member
0 Likes
570

Hi,

I think that's maybe a problem of the ALV display variant. The Program got your personel settings and doesn't change them!

Regards,

Klaus