‎2010 Oct 26 7:36 AM
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...
‎2010 Oct 26 7:42 AM
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.
‎2010 Oct 26 7:41 AM
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.
‎2010 Oct 26 7:42 AM
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.
‎2010 Nov 01 9:12 AM