Application Development 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: 

Checkbox

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

JozsefSzikszai
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.