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
887

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
810

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.

5 REPLIES 5
Read only

Former Member
0 Likes
810

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

Read only

JozsefSzikszai
Active Contributor
0 Likes
810

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

Read only

Former Member
0 Likes
810

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.

Read only

Former Member
0 Likes
810

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.

Read only

Former Member
0 Likes
811

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.