cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding selection-screen problem

Former Member
0 Kudos

Hi,

I had two radio buttons are there in the selection-screen of report program.

And more two fields are there along with these two radio buttons.

Based up on selection of radio buttons, enabling and disabling of other two fields will be needed.

Anybody help out; if possible send some sample code.

Thanks,

Madhu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

In addition to what our experts have already suggested.

If you are looking to dynamically disable at the moment you click on the radio button, I doubt if it is possible.

In any case, give a shot at "AT selection on radio button" option

Raj

Former Member
0 Kudos

Hi Santhosh,

A tiny correction to your code.

LOOP AT SCREEN.

<b>IF</b> SCREEN-NAME = CAR.

SCREEN-INPUT = 0.

MODIFY SCREEN.

<b>ENDIF.</b>

ENDLOOP.

The same If condition will apply to the other "Loop at Screen".

regards,

Raj

Former Member
0 Kudos

Hi Madhu,

First of all post this in ABAP Programming forum, u get lot of options, i know(or Remember only some aspects) so will tell you only that, the code looks similar to this.

Selection-screen: Begin of block b1,
                  select-options: car for spfli-carrid,
                                  con for spfli-connid,
                  Parameters: r1 radiobutton group rad,
                              r2 radiobutton group rad,
selection-screen: end of block b1.

AT SELECTION-SCREEN INPUT.
IF R1 = 'X'. " U SELECTED RADIOBUTTON R1
LOOP AT SCREEN.
SCREEN-NAME = CAR.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
SCREEN-NAME = CON.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.

Regards:-

Santosh.