08-03-2009 8:40 PM
I am using CL_SALV_TABLE to generate ALV report with a refresh button.
When I click on Refresh button, the data should be updated
In the on_user_command event I have
perform select_data
my_alv->refresh( ).
But this does not seem to accomplish the task. What am I missing? Thank you.
08-03-2009 8:51 PM
Try to call display again
perform select_data
my_alv->refresh( ).
my_alv->display( ). " <<--
a®
08-03-2009 8:48 PM
08-03-2009 8:50 PM
But I am already doing that. I am extracting the data again before calling refresh().
08-03-2009 8:51 PM
Try to call display again
perform select_data
my_alv->refresh( ).
my_alv->display( ). " <<--
a®
08-03-2009 8:55 PM
Actually just calling my_alv->display() does not do it. But if I perform display_list which contains all the display components, the report does get updated.
But why do I have to call display() again. When I look at demo program SALV_DEMO_TABLE_REFRESH, they do not call display() again. So even though this solution works, I am trying to understand why I have to implement display() again.
Edited by: Megan Flores on Aug 3, 2009 9:57 PM
08-03-2009 9:01 PM
Previously i have this issue while working with docking container, if i add a node in the left pan corresponding data will not refresh automatically in the right pan with ONLY using ->crefresh. Then i tried with ->refresh & ->display it works.
But i don't know the reason.
a®
08-03-2009 9:06 PM
I was able to get it working. Thanks for that. I am not sure either why display() needs to be invoked again but as long as it works.
I have a bigger issue though and I have posted a separate ques for it, here it is. Would you be able to assist me on this one?
I am trying to print an ALV report that has far too many columns and so they get chopped off and dont print. Have you faced a similar issue?