08-01-2007 10:48 AM
Hi Experts,
How to hide the check box in Selection screen.(there r two if first one is selected and second one should not displayed on screen and vise versa).Please explain me.
Thanks & Regards,
08-01-2007 10:54 AM
Write this in AT selection-screen output.
if chkbox1 = 'X'.
loop at screen.
if screen-name = 'CHKBOX1'.
screen-active = 0.
modify screen.
endif.
endloop.
else if chkbox2 = 'X'.
loop at screen.
if screen-name = 'CHKBOX2'.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
also when using parameters for check box add 'USER COMMAND' also.
reward if useful
08-01-2007 10:50 AM
You can use a lot of time doing a hard work with the AT SELECTION-SCREEN events to do it, but I think it's not a wise movement.
Use radio-buttons to do that thing.
If you use hidden checkboxes, your users will never be able to change their minds in your selection screens
Message was edited by:
Vicenç Lozano
For additional information about the Radio-buttons, use the help (normal F1) with the PARAMETERS sentence. It's easy to understand and has few pretty good samples.
08-01-2007 10:51 AM
In the event AT SELECTION SCREEN OUTPUT you can do a LOOP AT SCREEN and turn off the ACTIVE indicator. Use the debugger to determine what the name of the field is that you want to hide.
So something like
LOOP AT SCREEN.
IF SCREEN-FIELDNAME = 'the name'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDLOOP
Regards
08-01-2007 10:54 AM
Write this in AT selection-screen output.
if chkbox1 = 'X'.
loop at screen.
if screen-name = 'CHKBOX1'.
screen-active = 0.
modify screen.
endif.
endloop.
else if chkbox2 = 'X'.
loop at screen.
if screen-name = 'CHKBOX2'.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
also when using parameters for check box add 'USER COMMAND' also.
reward if useful
08-01-2007 10:56 AM
hi,
in order to do that you have to handle the code
in AT SELECTION-SCREEN OUTPUT.
AND IN SCREEN we have a option visible
make it as 'X' or space as per you requirement.
Regards,
Srinivas
08-01-2007 10:57 AM
hi,
try like this,
parameters: c1 type checkbox,
c2 type checkbox.
AT SELECTION-SCREEN OUTPUT.
if c1 = 'X' and screen-name = 'C2'.
loop at screen.
screen-input = 0.
modify screen.
endloop.
else.
loop at screen.
screen-input = 0.
modify screen.
endloop.
endif.
if helpful reward some points.
with regards,
Suresh Aluri.
08-01-2007 11:04 AM
hi,
follow this logic.......
**logic for declaration field as check-boxes..
PARAMETERS: a AS CHECKBOX,
b AS CHECKBOX.
****keep logic in at screen-screen ouput event to changing the fields dynamically .
AT SELECTION-SCREEN OUTPUT.
IF a = 'X'
LOOP AT SCREEN.
SCREEN-name1 = 'b'.
SCREEN-invisible = 1.
MODIFY SCREEN.
ENDLOOP.
ELSEIF b = 'X'.
LOOP AT SCREEN.
SCREEN-name1 = 'a'.
SCREEN-invisible = 1.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
regards,
Ashok reddy