‎2005 Sep 22 2:26 PM
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...
‎2005 Sep 22 2:27 PM
‎2005 Sep 22 2:27 PM
‎2005 Sep 22 2:33 PM
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
‎2005 Sep 22 2:34 PM
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.....
‎2005 Sep 26 8:23 AM
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.
‎2005 Sep 22 2:30 PM
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
‎2005 Sep 22 2:32 PM
‎2005 Sep 22 2:35 PM
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