‎2008 Apr 10 8:55 AM
Hi experts!
Im having a problem in my back button.
In my select all and deselect all button its working properly this is my code at user-command form.
WHEN 'SELECT'.
LOOP AT it_ltak INTO wa_ltak.
wa_ltak-sel = 'X'.
MODIFY it_ltak FROM wa_ltak TRANSPORTING sel.
ENDLOOP.
PERFORM alv_display_list.
it might be the cause why everytime I click the back button it repeats the history of how many times I click the checkbox or the select all button.
could you help me on how would I fix my problem?
‎2008 Apr 10 8:58 AM
Could you please clarify this sentence?:
it might be the cause why everytime I click the back button it repeats the history of how many times I click the checkbox or the select all button.
‎2008 Apr 10 9:25 AM
My problem is everytime I click the back button it repeats the screen where I click the select all button.example i thick the select all button then deselect it then manually select any checkbox.then I decided to click the back button.when I click the back button it will repeat the things I did before I click the back button.do you have any idea on how would I fix it?
in my code in user-command in select all button and deselect and back button.
form user-command.
WHEN 'SELECT'.
LOOP AT it_ltak INTO wa_ltak.
wa_ltak-sel = 'X'.
MODIFY it_ltak FROM wa_ltak TRANSPORTING sel.
ENDLOOP.
PERFORM display_alv_list.
WHEN 'DESELECT'.
LOOP AT it_ltak INTO wa_ltak.
CLEAR wa_ltak-sel.
MODIFY it_ltak FROM wa_ltak TRANSPORTING sel.
ENDLOOP.
PERFORM display_alv_list.
WHEN '&BCK'.
LEAVE TO SCREEN 0.
endform.
any idea experts..
‎2008 Apr 10 9:30 AM
Hi,
Leave to screen 0 just goes back to the screen from which the output jus cam,e in...
ie., to the state it was just before the click..
Regards...
‎2008 Apr 10 9:42 AM
As far as i can get you from the mail is it repetion of data coming into your internal table ?
when 'SELECT '
REFRESH it_ltak[].
MODIFY/INSERT INTO O/P TABLE ..
to avoid the repetition of data into an internal table use refresh on that particular table .
Vijay.
‎2008 Apr 10 9:37 AM
HI,
For this you need to refresh the screen...
WHEN '&BCK'.
DATA ref1 TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref1.
CALL METHOD ref1->check_changed_data.
CALL METHOD ref1->refresh_table_display.
LEAVE TO SCREEN 0.
endform.
Pls . reward if useful....
‎2008 Apr 10 9:57 AM
hi,
im not using any method class in here.
I did just use the reuse_alv_list display.
is there any way to solve this?