Skip to Content
author's profile photo Former Member
Former Member

Select all check box in interactve report

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.