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

Back button

Former Member
0 Likes
723

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?

6 REPLIES 6
Read only

Former Member
0 Likes
693

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.

Read only

0 Likes
693

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..

Read only

0 Likes
693

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...

Read only

0 Likes
693

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.

Read only

Former Member
0 Likes
693

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....

Read only

0 Likes
693

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?