Application Development 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: 

Select all check box in interactve report

Former Member
0 Kudos
111

Hi,

I am writing an interactive report. The second screen will display the check box for thye user to select the items.

Now the requrement is to create an option like select all means it should select all the check boxes.

How can I create this option of select all.

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
88

Hello,

You can place an button/icon as "Select All" on the application toolbar and then on the User_Command, you can write the code.

Loop thru your itab and check the checkbox value to 'X'.

Thanks,

Suresh Ganti

2 REPLIES 2

Former Member
0 Kudos
89

Hello,

You can place an button/icon as "Select All" on the application toolbar and then on the User_Command, you can write the code.

Loop thru your itab and check the checkbox value to 'X'.

Thanks,

Suresh Ganti

Former Member
0 Kudos
88

Hi,

Please check this example.

<

REPORT  Z_TEST NO STANDARD PAGE HEADING.


DATA: t_flag TYPE STANDARD TABLE OF xfeld,
      s_flag TYPE xfeld.

START-OF-SELECTION.


  DO 10 TIMES.

    WRITE:/ s_flag AS CHECKBOX,
           sy-index.
    APPEND s_flag TO t_flag.
    HIDE s_flag.

  ENDDO.

AT LINE-SELECTION.

  LOOP AT t_flag INTO s_flag.
    s_flag = 'X'.
    MODIFY LINE sy-tabix LINE VALUE FROM s_flag.
  ENDLOOP.

Thanks

Naren