09-04-2008 1:33 PM
Hi,
How can I put a checkbox as "no change" ??? I want that nobody can change the value of a checkbox.
PARAMETER: pa_test type c as checkbox.
Thanks
09-04-2008 1:54 PM
Hi Oscar,
As also told by others if you do not want change the value for checkbox, then you have modify the screen to screen active as 0. Like:
PARAMETER: pa_test type c as checkbox default 'X'.
AT SELECTION-SCREEN OUTPUT.
Loop at Screen.
IF screen-name = 'PA_TEST'.
Screen-input = 0.
Modify Screen.
Endif.
Endloop.
With luck,
Pritam.
09-04-2008 1:35 PM
hi,
Keep that checkbox as input disabled.
at selection-screen output.
loop at screen.
if screen-name = <chkbox name>.
screen-input = '0'.
modify screen.
endif.
endloop.
Regards
lekha
09-04-2008 1:36 PM
hi,
something like:
PARAMETER: pa_test AS CHEKCKBOX MODIF ID chb.
AT SELECTION-SCREEN OUTPUT.
LOOP AT screen.
CHECK screen-group1 EQ 'CHB'.
screen-input = '0'.
MODIFY screen.
ENDLOOP.
hope this helps
ec
09-04-2008 1:38 PM
Hi Oscar,
In the AT SELECTION-SCREEN OUTPUT event write as below.
PARAMETER: pa_test type c as checkbox.
AT SELECTION-SCREEN OUTPUT .
loop at screen.
if screen-name cs 'PA_TEST'.
screen-input = 0.
endif.
modify screen.
endloop.
This will make the field input disabled and no one can change it.
Regards,
Swapna.
09-04-2008 1:45 PM
REPORT ZTEST .
PARAMETER: pa_test type c as checkbox.
initialization.
pa_test = 'X'.
loop at screen.
if screen-name = 'PA_TEST'.
screen-input = 0.
screen-output = 1.
modify screen.
endif.
endloop.
09-04-2008 1:54 PM
Hi Oscar,
As also told by others if you do not want change the value for checkbox, then you have modify the screen to screen active as 0. Like:
PARAMETER: pa_test type c as checkbox default 'X'.
AT SELECTION-SCREEN OUTPUT.
Loop at Screen.
IF screen-name = 'PA_TEST'.
Screen-input = 0.
Modify Screen.
Endif.
Endloop.
With luck,
Pritam.