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 problem

Former Member
0 Likes
316

Hello experts..

Need your mind here..

Im having a problem in my back button..

I think the cause of my problem is in my code for select all and deselect all button.

here's my code:

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. "calling of alv.

When 'BACK'.

leave to screen 0.

endform.

Problem is:

When I click the select all button and deselect it or manually thick the checkbox then I decided to click the back button it repeats all the action I did before clicking the back button.

There's something wrong on my events.Which I dont know how to fix and I cant use the method class because the whole program is in used of REUSE_ALV_LIST_DISPLAY.

kindly help me on this.Its urgent please help me..

1 REPLY 1
Read only

Former Member
0 Likes
260

Hi Irzah,

The problem here is when you click select all and deselect all, the page is getting refreshed I guess.

So when you click the back button its loading the same page with previous action.

So better, if you the screen number which you need to go after the back button is clicked then go directly to the screen.

For example :

Instead of using

Leave to screen 0.

use

Leave to screen XXX.

Thanks,

Arun