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

Select all button

Former Member
0 Likes
370

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.

1 REPLY 1
Read only

Sm1tje
Active Contributor
0 Likes
345

CASE OK_CODE (SY-UCOMM).

WHEN 'BACK'.

  • leave to the previous screen (selection screen for example '1000').

WHEN 'ABC'.

  • do this.

ENDCASE.