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

interactive alv problem

Former Member
0 Likes
365

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,

1 ACCEPTED SOLUTION
Read only

yes_sapteam
Participant
0 Likes
345

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.

1 REPLY 1
Read only

yes_sapteam
Participant
0 Likes
346

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.