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

check box.

Former Member
0 Likes
782

hi to all,

if i am using two or more check boxs...so if i use one another one must me deactivate..like radio button...

can any one tellme how ....

raju...

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
758

Why not just use a radiobutton then?

Regards,

Rich Heilman

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
759

Why not just use a radiobutton then?

Regards,

Rich Heilman

Read only

0 Likes
758

If you realy want to use checkboxes, here is a solution.



report zrich_0002
       no standard page heading.


parameters: p_check1 as checkbox user-command check,
            p_check2 as checkbox user-command check.

data: cursorfield(20) type c.

at selection-screen.


  get cursor field cursorfield.

  if cursorfield = 'P_CHECK1'.
    p_check2 = space.
  elseif  cursorfield = 'P_CHECK2'.
    p_check1 = space.
  endif.

Regards,

Rich Heilman

Read only

0 Likes
758

i have some selection option along with check box...

i have two blocks in selecion screen ..if i made selections from one block ..i want the result from that block only....if i select another block containing a different data than the first block...i'll get only the second block results.....

Read only

0 Likes
758

hai,

you can make use of this event

at selection-screen output.

if screen-name = checkbox1.

if screen-value = 'X'.

"deactivate the other check box.

endif.

endif.

if not clear pls revert back.

Read only

Former Member
0 Likes
758

hi,

use

if not chekbox1 is initial

loop at screen

if screen-name = checkbox2.

screen-active = 0.

endif.

endloop

or you can go for radio buttion

cheers,

sasi

Read only

Former Member
0 Likes
758

You can use the options At Selection Screen events or PAI.

Read only

Former Member
0 Likes
758

Hi,

If your requirement is to use check boxes in any case then you can assign function codes to the check boxes in the screen to trigger PAI and then subsequently PBO.

Then you can use a similar logic as follows in PBO,

LOOP AT SCREEN.

IF screen-name EQ <Checkbox1 name>

AND <Checkbox2> EQ 'X'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Sri