2008 Feb 19 1:31 PM
Hi All,
I have 3 radio buttons like: Radio 1, Radio 2, Radio 3 And Path1 is parameter. All the 3 Radio buttons are in one block and path1 is in different block, now the requirement is when I select radio1 or radio2 path1 should disable and when I select radio3 path1 should enable.
Let me know the logic pls
Akshitha.
2008 Feb 19 1:36 PM
Hi,
Use this logic.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
PARAMETERS: rad1 RADIOBUTTON GROUP radi USER-COMMAND ch,
rad2 RADIOBUTTON GROUP radi,
rad3 RADIOBUTTON GROUP radi.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETERS: path(150) MODIF ID id1.
SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN OUTPUT.
IF rad3 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ID1' .
screen-active = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-group1 = 'ID1' .
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
I hope it will be useful to u...
Regards,
Aparna.
Hi All,
I have 3 radio buttons like: Radio 1, Radio 2, Radio 3 And Path1 is parameter. All the 3 Radio buttons are in one block and path1 is in different block, now the requirement is when I select radio1 or radio2 path1 should disable and when I select radio3 path1 should enable.
Let me know the logic pls
Akshitha.
2008 Feb 19 1:36 PM
Hi,
Use this logic.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
PARAMETERS: rad1 RADIOBUTTON GROUP radi USER-COMMAND ch,
rad2 RADIOBUTTON GROUP radi,
rad3 RADIOBUTTON GROUP radi.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETERS: path(150) MODIF ID id1.
SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN OUTPUT.
IF rad3 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ID1' .
screen-active = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-group1 = 'ID1' .
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
I hope it will be useful to u...
Regards,
Aparna.
2008 Feb 19 1:39 PM
Hi,
in the AT SELECTION SCREEN OUTPUT write like this
at selection screen output.
if radio3 eq 'X'.
w_flag = 'x'.
else.
clear w_flag.
endif.
if w_flag is not initial.
loop at screen.
if screen-name cp 'path'.
screen-invisible = '1'.
modifyscreen.
endif.
adn inthe at selection screen write like this.
at selection screen.
if radio3 is initial.
clear w_flag.
endif.
hope i am clear to u..
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 2:31 PM