2008 Jun 17 4:30 PM
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.
2008 Jun 17 4:33 PM
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
2008 Jun 17 4:33 PM
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
2008 Jun 17 4:49 PM
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