on 03-18-2008 7:34 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.