Skip to Content
avatar image
Former Member

regarding selection screen

hi all develpers,

i have 2 radio button and one check box in one block.

radio button : pdh plant

radio button :pp plant , here in same line one checkbox(a).

so requirement is if i select pdh plant check box should be

disable mode.if i select pp plant check box should again enable mode.

how to do this in same block...

help me ..

thanks subhasis

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 18, 2008 at 08:15 AM

    Hello,

    U hid accordingly in ur code using

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF screen-name = 'CHECKBOX(A)'

    IF radiobutton1 = 'X'.

    SCREEN-ACTIVE = 0.

    ENDIF.

    endif.

    MODIFY SCREEN

    ENDLOOP.

    hOPE THIS HELPS.

    NEERAJ.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 18, 2008 at 08:09 AM

    Hi subhasis,

    Check this code

    SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETER : pdh_plnt RADIOBUTTON  GROUP g1 DEFAULT 'X' USER-COMMAND change,
                pp_plant  RADIOBUTTON GROUP g1.
                PARAMETER : chk1 as checkbox   MODIF ID m3.
    
    SELECTION-SCREEN:END OF BLOCK blk2.
    
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'M3'.
          IF pdh_plnt EQ 'X'.
    
            screen-INPUT = 0.
          ELSE.
    
            screen-INPUT = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    
    

    Regards

    Sandipan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 18, 2008 at 08:12 AM

    Try as below:

    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-o01.
    
      PARAMETERS: p_rad1 RADIOBUTTON GROUP rad1 DEFAULT 'X'
                    USER-COMMAND abc.
      SELECTION-SCREEN BEGIN OF LINE.
        PARAMETERS: p_rad2 RADIOBUTTON GROUP rad1.
        SELECTION-SCREEN COMMENT (10) text-o02 FOR FIELD p_rad2.
        SELECTION-SCREEN POSITION 30.
        PARAMETERS: p_chk AS CHECKBOX.
        SELECTION-SCREEN COMMENT (10) text-o03 FOR FIELD p_chk.
      SELECTION-SCREEN END OF LINE.
    
    SELECTION-SCREEN END OF BLOCK blk1.
    
    AT SELECTION-SCREEN OUTPUT.
    
      LOOP AT SCREEN.
    
        IF screen-name CP '*P_CHK*'.
          IF p_rad1 IS INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
    
      ENDLOOP.

    Add comment
    10|10000 characters needed characters exceeded