2007 Sep 12 6:58 AM
At selection screen i have 2 check boxes i have to keep one of them checked.i can't keep both unchecked and one of them is checked by default.Please help how to do this?
2007 Sep 12 7:00 AM
Hi,
While defining the checkbox , u give the default value of the check box as 'X'.
Then it will be checked...
Cheers,
SImha.
2007 Sep 12 7:00 AM
<b>Check thsi code now</b>
PARAMETERS : p_c1 AS CHECKBOX USER-COMMAND um1 DEFAULT 'X'.
PARAMETERS : p_c2 AS CHECKBOX USER-COMMAND um1.
AT SELECTION-SCREEN.
IF p_c1 = ' ' AND p_c2 = ' '.
MESSAGE e000(z1).
ENDIF.
Regards
Gopi
2007 Sep 12 7:58 AM
2007 Sep 12 7:14 AM
No that i have done already.But the user can still come on selection Screen nd uncheck it.I have to do a validation on selection screen that both can't be unchecked?Please give directions.
2007 Sep 12 7:19 AM
Hi,
Befor executing you check for the check boxes to be checked or not.
If one of the check box is checked then u can proceed , if not then give him a error message saying 'Check atleast one checkbox'.
Cheers,
Simha.
2007 Sep 12 7:46 AM
i think you will have to write your logic in the event at selection screen output.
do the validation for if both the check boxes are blank display a error message.
2007 Sep 17 11:08 PM
Saket,
Why don't you use radio buttons. Your requirement is exactly the situation radio buttons should be used.
Bruce