Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

checkbox

Former Member
0 Kudos
79

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
51

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.

6 REPLIES 6

Former Member
0 Kudos
51

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.

nikhil_bose
Active Contributor
0 Kudos
51

Go for radio button; check boxes are meant for multiple selection

thanks

nikhil

Former Member
0 Kudos
51

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

Former Member
0 Kudos
51

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

kesavadas_thekkillath
Active Contributor
0 Kudos
51

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.

Former Member
0 Kudos
52

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.