Skip to Content

Checkbox

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 04, 2008 at 12: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04, 2008 at 12: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 12: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 12: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 12: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.

    Add comment
    10|10000 characters needed characters exceeded