‎2007 Dec 19 7:42 AM
i created interactive alv program, in the first list i have editable checkboxes as well as in apllication toolbar i created three push buttons like 'CREATEUSER' 'SELECTALL' 'DESELECTALL' by defualt all checkboxeses are selected, if click on the 'DESELECTALL' it will deselect all the checkboxes in the report, like this if i press on 'SELECTALL' it will select all the checkboxes onceagain, after i click on the back button on the standardtoolbar it is not going to the selection screen of the program, just it going previous action like select all and deselectall like. in normal report if we specify the sy-lisindex = 0 something it will directly display the selection screen.
how to resolve the problem this probelm,
‎2007 Dec 19 8:05 AM
Dear Praveen.
It looks like what you're doing is call the ALV screen for every Push-button action and this is wrong.
What you need to do is set your ITAB (table you sent to ALV) according to user's action and then just refresh the display using
method "REFRESH_TABLE_DISPLAY" like this:
CALL METHOD alv_control->refresh_table_display
EXPORTING is_stable = ls_stable
i_soft_refresh = 'X'.
Use the IS_STABLE to avoid loosing your scrolling position, if needed.
enjoy.
ayal.
‎2007 Dec 19 8:05 AM
Dear Praveen.
It looks like what you're doing is call the ALV screen for every Push-button action and this is wrong.
What you need to do is set your ITAB (table you sent to ALV) according to user's action and then just refresh the display using
method "REFRESH_TABLE_DISPLAY" like this:
CALL METHOD alv_control->refresh_table_display
EXPORTING is_stable = ls_stable
i_soft_refresh = 'X'.
Use the IS_STABLE to avoid loosing your scrolling position, if needed.
enjoy.
ayal.