‎2006 Sep 21 10:01 AM
hi genius
i have a following requirement in report
parameter - input
1)radiobutton 1
2)radiobutton 2
3)radiobutton 3
if i am not giving any input to the parameter and excecute
the progrm the following radiobutton gets disabled but my requirement is if i am not giving any input and excute the program the following radiobutton should be enabled.
how to do that using loop at screen or any other ways are there
please give a soloutin
Thanks in advance
‎2006 Sep 21 10:07 AM
Hi Thangaraj ,
go thru this link
http://www.sap-img.com/abap/change-the-input-fields-dynamically-in-a-screen.htm
Regards ,
Senthil
‎2006 Sep 21 10:04 AM
Hi Thangaraj,
Try giving default 'X' to the radiobutton you want enabled.
Pl Reward if it helps
K
‎2006 Sep 21 10:05 AM
Hello,
First declare all the radio buttons under the group and by default make any one of the radio button as selected.
Here is the code for enabling the controls,
LOOP AT SCREEN.
SCREEN-INPUT = 1.
MODIFY SCREEN.
ENDLOOP.
‎2006 Sep 21 10:05 AM
Here you go.
LOOP AT SCREEN.
if ...
radiobutton1-active = ''.
elseif...
radiobutton2-active = ''.
else..
radiobutton3-active = ''.
endif.
MODIFY screen.
ENDLOOP .
Message was edited by: ong rukawaw
‎2006 Sep 21 10:07 AM
Hi Thangaraj ,
go thru this link
http://www.sap-img.com/abap/change-the-input-fields-dynamically-in-a-screen.htm
Regards ,
Senthil
‎2006 Sep 21 10:08 AM
Parameters: kishan1(15) ,
rd1 RADIOBUTTON group g1 default 'X' MODIF ID ID1 ,
rd2 RADIOBUTTON group g1 MODIF ID ID2 ,
rd3 RADIOBUTTON group g1 MODIF ID ID3.
AT SELECTION-SCREEN output.
IF kishan1 = ''.
LOOP AT SCREEN.
IF screen-group1 = 'ID1' OR screen-group1 = 'ID2' OR screen-group1 = 'ID3' .
screen-input = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
‎2006 Sep 21 10:15 AM
hello,
parameters p1 radiobutton group gr1 default 'X',
p2 radiobutton group gr1,
p3 radiobutton group gr1.
at selection-screen output.
loop at screen.
if screen-group1 = 'GR1'.
if screen-name1 ne 'P1' or screen-name1 ne 'P2' or
screen-name1 ne 'P3'.
screen-input = 0.
modify screen.
endif.
endloop.
‎2006 Sep 21 10:15 AM
Use User-command ucomm
for ex:
PARAMETERS : R1 RADIOBUTTON GROUP G1 USER-COMMAND UCOMM MODIF ID ID1,
R2 RADIOBUTTON GROUP G1 MODIF ID ID2,
R3 RADIOBUTTON GROUP G1 MODIF ID ID3.
nOW give the respective conditions accrding to your requirement in AT SELECTION-SCREEN OUTPUT
LOOP AT SCREEN.
-
NODIFY SCREEN.
ENDLOOP.
HOPE IT WILL HELP YOU