11-21-2008 11:39 AM
The Selection screen will have three Radio Buttons,
1.Create/ Upload Customer
2.Change Customer
3.Extend Customer
Once the authorized person, select the right option, the other two option should become Grayed out/ inactive.
Please let me know if anyboy have some idea.
11-21-2008 11:43 AM
Hi!
The requirement appears to be weird!! What happens if the user by mistake, selects the wrong radio-button? He can no more change the selection?!?!?
Technically, I don't think it is possible as all the radio-buttons belong to the same group, hence, cnt be controlled individually.
Cheers!
11-21-2008 11:44 AM
select-options: s_vkorg for vbak-vkorg modif id org,
s_matkl for vbap-matkl modif id not,
s_erdat for vbak-erdat modif id gre.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
IF cus = ' ' and screen-group1 = 'GRE'.
screen-input = 0.
modify screen.
ENDIF.
endloop.
loop at screen.
IF cu = ' ' and screen-group1 = 'ORG'.
screen-input = 0.
modify screen.
ENDIF.
endloop.
11-21-2008 11:51 AM
Find below code for 2 radio buttons...
----
S E L E C T I O N S C R E E N
----
SELECTION-SCREEN BEGIN OF BLOCK FILE WITH FRAME TITLE TEXT-000.
SELECTION-SCREEN : BEGIN OF LINE.
PARAMETERS: RB_APPN RADIOBUTTON GROUP RAD1 DEFAULT 'X' USER-COMMAND RAD.
SELECTION-SCREEN COMMENT 3(25) TEXT-030.
PARAMETERS: RB_PRTN RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN COMMENT 32(20) TEXT-031.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN END OF BLOCK FILE.
----
A T S E L E C T I O N - S C R E E N O U T P U T
----
AT SELECTION-SCREEN OUTPUT.
PERFORM F_MODIFY_SCREEN.
&----
*& Form F_MODIFY_SCREEN
&----
text
----
FORM F_MODIFY_SCREEN .
*-- For Output Options
IF RB_PRTN = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'RB_APPN' .
SCREEN-OUTPUT = 1.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF RB_APPN = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'RB_PRTN' .
SCREEN-OUTPUT = 1.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. " F_MODIFY_SCREEN
11-21-2008 11:59 AM
Hi Try like this...
REPORT ztest .
PARAMETERS: a RADIOBUTTON GROUP radi USER-COMMAND abcd,
b RADIOBUTTON GROUP radi,
c RADIOBUTTON GROUP radi .
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF a = 'X'.
IF screen-name = 'B' OR screen-name = 'C'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
11-21-2008 12:02 PM
Hi,
The feature of radiobutton is that only one radiobutton of same group can be selected at a time.
So once you select first button, others will be having ' ' value.
Just execute this code snippet.
PARAMETERS: s_vkorg RADIOBUTTON GROUP r1,
s_matkl RADIOBUTTON GROUP r1,
s_erdat RADIOBUTTON GROUP r1.
Thanks
Nitesh
11-21-2008 12:22 PM
Hi,
Try like this:
PARAMETERS: A RADIOBUTTON GROUP GP1 MODIF ID AA,
B RADIOBUTTON GROUP GP1 MODIF ID BB,
C RADIOBUTTON GROUP GP1 MODIF ID CC.
AT SELECTION-SCREEN OUTPUT .
LOOP AT SCREEN.
IF A = 'X'.
IF SCREEN-GROUP1 NE 'AA'.
SCREEN-INPUT = '0'.
ENDIF.
ELSEIF B = 'X'.
IF SCREEN-GROUP1 NE 'BB'.
SCREEN-INPUT = '0'.
ENDIF.
ELSEIF C = 'X'.
IF SCREEN-GROUP1 NE 'CC'.
SCREEN-INPUT = '0'.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Regards,
Bhaskar
11-24-2008 4:43 AM