‎2009 Oct 08 2:29 AM
hi,
i have 2 check boxes on selection screen
if the user checks both the check boxes
then i have to throw an error message that only one check box should be selected
iam getting error with the below code
aT SELECTION-SCREEN.
IF ( ( p_check1 = 'X' ) and
( p_check2= 'X' )).
WRITE:/ 'Please choose only one option''(e04) COLOR COL_NEGATIVE INVERSE.
ENDIF.
endif.
‎2009 Oct 08 2:38 AM
<li>Error because of WRITE statement. WRITE statements must not be written at AT SELECTION-SCREEN event.
<li>Instead you can write like below.
Thanks
Venkat.OAT SELECTION-SCREEN.
IF p_check1 = 'X' AND
p_check2 = 'X'.
MESSAGE 'Please choose only one option' TYPE 'E'.
ENDIF.
‎2009 Oct 08 2:38 AM
<li>Error because of WRITE statement. WRITE statements must not be written at AT SELECTION-SCREEN event.
<li>Instead you can write like below.
Thanks
Venkat.OAT SELECTION-SCREEN.
IF p_check1 = 'X' AND
p_check2 = 'X'.
MESSAGE 'Please choose only one option' TYPE 'E'.
ENDIF.
‎2009 Oct 08 5:05 AM
if your requirement is such why dont you use radio buttons instead checkbox. No extra code needed.
‎2009 Oct 08 5:05 AM
if your requirement is such why dont you use radio buttons instead checkbox. No extra code needed.