‎2009 Jul 01 6:05 AM
Dear,
My question is related to at selection screen output. when i press any radio button the screen is not change accordingl to the code but after pressing radiobutton and then enter it will come. i m working in selection screen (1000). Kindly help.
‎2009 Jul 01 6:10 AM
Hi,
Welcome to SCN.
Assign a Function Code to radio button using USER COMMAND addition.
Have a habit of searching the forum before posting a question.
Read the [Community Guidelines|https://www.sdn.sap.com/irj/scn/blogs-communityguidelines] before posting more.
Regards
Karthik D
‎2009 Jul 01 6:10 AM
Hi,
Welcome to SCN.
Assign a Function Code to radio button using USER COMMAND addition.
Have a habit of searching the forum before posting a question.
Read the [Community Guidelines|https://www.sdn.sap.com/irj/scn/blogs-communityguidelines] before posting more.
Regards
Karthik D
‎2009 Jul 01 6:18 AM
when u are declaring ur radio button.
parameters : r1 radiobutton group r user command u1 default 'X',
r2 radiobutton group r .
at selection screen output.
loop at screen.
if R1 = 'X'.
do this....
else if R2 = 'X'
do that.....
endif.
modify screen.
endloop.the prob might be becoz u have not assigned user command to ur radio button,.. thats why it was not responding to ur click.
‎2009 Jul 01 6:10 AM
Hi,
Please search SCN . U will get lot of Code Samples.
Assign one function code to the radio button using USER-COMMAND and
For handling that type of events i.e screen Change with a click on ardio button u have to use AT SELECTION-SCREEN event.
regards,
Lakshman.
‎2009 Jul 01 6:11 AM
Hi Pranab,
did u loop the screen and checkfor the condition.
try doing it in at selection-screen event.
code:
at selection-screen.
if rad1 eq 'X'.
( your code )
endif.
or if the radio button is selected by default than at selection-screen output.
just use Loop at screen and check for the value of the radio button.
if it's 'X' than perform your code.
hope u got the idea.
all the best
Thanks
Ravi
‎2009 Jul 01 6:14 AM
Hi
You need to use at user-command. so it would change according to user selection.
PARAMETERS :w_a type c RADIOBUTTON GROUP g1 USER-COMMAND u1,
w_b TYPE c RADIOBUTTON GROUP g1.Thanks
Viquar Iqbal