‎2008 Apr 11 9:36 AM
Hi experts I did a code like this in my select all button its working properly but my back button goes back on the last action I did.
code:
LOOP AT it_ltak INTO wa_ltak.
wa_ltak-sel = 'X'.
MODIFY it_ltak FROM wa_ltak TRANSPORTING sel.
ENDLOOP.
PERFORM display_alv_list.
example:
If I click the select all button then desselect it or manually tick the checkbox then I click the back it wiil repeats the things I did before I clicked it.
could somebody help me on how would I solved this without using any method class just the usual kind of coding Im using an alv report.
‎2008 Apr 11 9:41 AM
CASE OK_CODE (SY-UCOMM).
WHEN 'BACK'.
leave to the previous screen (selection screen for example '1000').
WHEN 'ABC'.
do this.
ENDCASE.