‎2008 Jun 26 4:57 AM
experts,
i have used reuse_alv_grid_display to display a report and used my own pf status and added a pushbutton on the application tool bar named 'refresh'.when ever i am clicking refresh a new list is getting generated overlapping the other,the problem is when i press 'back' the lists generated are equivalent to the number of times i press 'refresh'.
how to overcome this problem (or) how to display the list only and refresh it automatically
‎2008 Jun 26 5:09 AM
1) In case you have to use your own PF Status - Always copy the standard GUI status
(Program : SAPLSLVC_FULLSCREEN,
Status : STANDARD_FULLSCREEN )
And add and delete the function codes as per your custome requirements.
2) For REFRESH - Include parameter for "USER_COMMAND" in the Function module interface.
Inside the User command subroutine - set "RS_SELFIELD-REFRESH" = "X". It will automatically refresh the ALV and there is no requirement to call ALV again. Just Setting this field is suffice.
Reward if useful.
‎2008 Jun 26 5:09 AM
1) In case you have to use your own PF Status - Always copy the standard GUI status
(Program : SAPLSLVC_FULLSCREEN,
Status : STANDARD_FULLSCREEN )
And add and delete the function codes as per your custome requirements.
2) For REFRESH - Include parameter for "USER_COMMAND" in the Function module interface.
Inside the User command subroutine - set "RS_SELFIELD-REFRESH" = "X". It will automatically refresh the ALV and there is no requirement to call ALV again. Just Setting this field is suffice.
Reward if useful.
‎2008 Jun 26 5:37 AM
‎2008 Jun 26 5:29 AM
Hi,
If you are using OOPs ALV,
then use the method CALL METHOD w_alv_grid->refresh_table_display.
If you are using normal ALV, then in the even of 'REFRESH', before calling the subroutine or FM, try giving:
LEAVE TO SCREEN 0.
Regards,
Subramanian