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

Check Box in report program

Former Member
0 Likes
558

Hello Experts,

I have a requirement where in i have 5 check boxes on the selection screen. On the top i have one more check box 'Select all'. If i select this top check box, the below 5 check boxes should be marked to 'X'. Please let me know how can we achieve this.

Thank you,

Viswa...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
505

Hi,

suppose if say the top checkbox named as 'check_all'.

if check_all = 'X'.

check1 = 'X'.

check2 = 'X'.

check3 = 'X'.

check4 = 'X'.

check5 = 'X'.

endif.

try this...

Regards,

Sasi Kanth.

3 REPLIES 3
Read only

Former Member
0 Likes
505

Hi Viswa,

You have to write the code in AT SELECTION-SCREEN.


PARAMETERS: cb_a AS CHECKBOX USER-COMMAND cba,
            cb_1 AS CHECKBOX USER-COMMAND cb1,
            cb_2 AS CHECKBOX USER-COMMAND cb2,
            cb_3 AS CHECKBOX USER-COMMAND cb3.



AT SELECTION-SCREEN.
  IF sy-ucomm = 'CBA'.
    IF cb_a = 'X'.
      cb_1 = 'X'.
      cb_2 = 'X'.
      cb_3 = 'X'.
    ELSE.
      cb_1 = space.
      cb_2 = space.
      cb_3 = space.
    ENDIF.
  ENDIF.

Regards,

Immanuel.

Read only

Former Member
0 Likes
506

Hi,

suppose if say the top checkbox named as 'check_all'.

if check_all = 'X'.

check1 = 'X'.

check2 = 'X'.

check3 = 'X'.

check4 = 'X'.

check5 = 'X'.

endif.

try this...

Regards,

Sasi Kanth.

Read only

Former Member
0 Likes
505

solution achieved with the help of Immanuel post