Application Development and Automation 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: 
Read only

checkbox

Former Member
0 Likes
765

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
Read only

Former Member
0 Likes
737

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
Read only

Former Member
0 Likes
737

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.

Read only

nikhil_bose
Active Contributor
0 Likes
737

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

thanks

nikhil

Read only

Former Member
0 Likes
737

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

Read only

Former Member
0 Likes
737

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
737

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.

Read only

Former Member
0 Likes
738

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.