‎2007 Dec 22 7:38 AM
selection screen block1.
check box a default 'x'.
selection screen block2.
check box b.
let say when i uncheck check box a, i want check box b to be checked..how do i code it?
‎2007 Dec 22 11:53 AM
hi,
if you want only one to be checked, you should use radiobutton group.
If it is possible have both of them unchecked, you must read the parameter value and react accordingly. This is in normal case not possible without pressing enter (it means before PAI), but you can use FM DYNP_VALUES_READ to read screen field values before PAI field transport.
Reward if useful,
siva.
‎2007 Dec 22 7:44 AM
Hi Chakri,
Try this.
parameters: a as checkbox USER-COMMAND fcode,
b as checkbox.
At selection-screen output.
Case a.
when 'X'.
b = ' '.
when ' '.
b = 'X'.
endcase.
Plzz Reward if useful,
Mahi.
‎2007 Dec 22 7:46 AM
Go for radio button; check boxes are meant for multiple selection
thanks
nikhil
‎2007 Dec 22 7:46 AM
add user command to the checkbox A.
use the event AT SELECTION-SCREEN ON A
in these events make the B field 'X'.
Reward if useful
Regards
ANUPAM
‎2007 Dec 22 7:53 AM
Hi Chakradhar,
for that U can use this code....
AT SELECTION-SCREEN on A.
if a is initial.
b = 'X'.
endif.
hope it is useful to U.
If it is useful plzz gimme awrd points.
Regards,
Naveen
Edited by: Naveen M on Dec 22, 2007 8:53 AM
‎2007 Dec 22 7:55 AM
parameters :ch1 type checkbox user-command C1 DEFAULT 'X'.
parameters :ch2 type checkbox user-command C2 .
at selection-screen output.
if ch1 <> 'X'.
ch2 = 'X'.
elseif ch2 <> 'X'.
ch1 = 'X'.
endif.
‎2007 Dec 22 11:53 AM
hi,
if you want only one to be checked, you should use radiobutton group.
If it is possible have both of them unchecked, you must read the parameter value and react accordingly. This is in normal case not possible without pressing enter (it means before PAI), but you can use FM DYNP_VALUES_READ to read screen field values before PAI field transport.
Reward if useful,
siva.