‎2007 May 02 11:13 AM
HI ALL
am taking the 3 checkbox as shown below
PARAMETERS:A AS CHECKBOX.
PARAMETERS:B AS CHECKBOX.
PARMETERS:C AS CHECKBOX.
and after dis am writing the code as
IF A = 'X'.
CODE
ELSEIF B = 'X'
CODE
ELSEIF C = 'X'
CODE
ENDIF.
So the output is coming but i want to select only one of the checkbox but when am selecting all the checkboxes it is getting selected...please help me in telling me how to select only one check box
with regards
vijay
‎2007 May 10 7:12 AM
hi,
instead of using checkbox use radiobuttons in parameters.
PARAMETERS:A radiobutton group r1.
PARAMETERS:B radiobutton group r1.
PARAMETERS:C radiobutton group r1.
IF A = 'X'.
CODE
ELSEIF B = 'X'
CODE
ELSEIF C = 'X'
CODE
ENDIF.
reward with points if helpful
Message was edited by:
Vinutha YV
‎2007 May 02 11:15 AM
Hello Vijay,
Instead of check box you can use Radiobuttons.
REgards,
Vasanth
‎2007 May 02 11:16 AM
use radiobuttons
PARAMETERS:A radiobutton group rad user-command abc.
PARAMETERS:B radiobutton group rad
PARMETERS:C radiobutton group rad.
‎2007 May 02 11:17 AM
If ur writing IF..ELSEIF...ENDIF.
then take radio buttons instead of checkbox.
‎2007 May 02 11:17 AM
sorry i am not enough clear about your query you can use radio button instead of check box..
PARAMETERS: A radiobutton group rb1,
b radiobutton group rb1,
c radiobutton group rb1.
IF A = 'X'.
CODE
ELSEIF B = 'X'
CODE
ELSEIF C = 'X'
CODE
ENDIF.
regards
shiba dutta
‎2007 May 02 11:19 AM
Hi Vijay,
Instead of that you can use radiobutton.
Parameters : A radiobutton group zig,
B radiobutton group zig,
C radiobutton group zig.
IF A = 'X'.
CODE.
ELSEIF B = 'X'.
CODE.
ELSEIF C ='X'.
CODE.
ENDIF.
Reward for useful answers.
‎2007 May 02 11:23 AM
In your case if you want ot select only one then please use radiobutton instead of a check bos..
use systam:
Paramters: a as radiobutton group xyz.
here xyz is the group name given ... and please keep all the radiobutton in the same group for selecting only one radiobutton..../
‎2007 May 10 6:51 AM
‎2007 May 10 7:12 AM
hi,
instead of using checkbox use radiobuttons in parameters.
PARAMETERS:A radiobutton group r1.
PARAMETERS:B radiobutton group r1.
PARAMETERS:C radiobutton group r1.
IF A = 'X'.
CODE
ELSEIF B = 'X'
CODE
ELSEIF C = 'X'
CODE
ENDIF.
reward with points if helpful
Message was edited by:
Vinutha YV
‎2007 Jun 05 4:49 PM
Hi,
chk this..
PARAMETERS: chk1 AS CHECKBOX USER-COMMAND chk1,
chk2 AS CHECKBOX USER-COMMAND chk2,
chk3 AS CHECKBOX USER-COMMAND chk3.
AT SELECTION-SCREEN.
CASE sy-ucomm.
WHEN 'CHK1'.
chk1 = 'X'.
chk2 = ' '.
chk3 = ' '.
WHEN 'CHK2'.
chk1 = ' '.
chk2 = 'X'.
chk3 = ' '.
WHEN 'CHK3'.
chk1 = ' '.
chk2 = ' '.
chk3 = 'X'.
ENDCASE.