Skip to Content
0
Former Member
Jan 26, 2007 at 03:47 AM

Disabling input option

19 Views

Hi, I am new to ABAP and I have a requirement where in I need to display two radio buttons with each radio button accepting one parameter. When the first radio button is chosen, the parameter of second radio button should be disabled. When the second radio button is chosen, the first parameter should be disabled. I have written the following code but it does not seem to be working.Please have a look at it and suggest any modifications required.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

PARAMETERS: ODS RADIOBUTTON GROUP radi default 'X' modif id RD1

user-command ucomm.

PARAMETER : p_odc(20) type c modif ID RD1 . "OBLIGATORY .

PARAMETERS: FILE RADIOBUTTON GROUP radi modif ID RD2.

PARAMETER : p_filpth LIKE rlgrap-filename modif id RD2. "OBLIGATORY.

SELECTION-SCREEN END OF BLOCK b1.

AT selection-screen output.

loop at screen.

if ods = 'X'.

if screen-group1 = 'RD1'.

screen-input = 1.

modify screen.

endif.

endif.

endloop.

loop at screen.

if file = 'X'.

if screen-group1 = 'RD2'.

screen-input = '1'.

modify screen.

endif.

endif.

endloop.

Thanks,

-Kiran