09-16-2009 12:05 PM
Hi Experts,
I have requirement where i have to display radio buttons dynamically(no of radiobuttons will vary) on selection screen.
on basis of selection i have to navigate to other screen.
I have written code to dynamically display radiobuttons.
But i am unable to catch radio button selected on basis of which i have to navigate to other screen..
Thanks,
Ankit.
09-16-2009 12:10 PM
Hi Ankit,
Here is a sample code to call anothr screen based on radio button selection..
bt it does nt display the radio buttons dynamically.. kindly chk..
parameters:
p_r1 radiobutton group RAD user-command F1,
P_screen radiobutton group RAD.
selection-screen begin of screen 100.
parameters:
p_fld type i.
selection-screen end of screen 100.
AT SELECTION-SCREEN.
if p_screen eq 'X'.
call selection-screen 100
starting at 4 4
ending at 10 10.
endif.
Regards,
Deeba
09-16-2009 12:56 PM
Hi Deeba,
Thanks for your reply.
I have a report which calls another report & then display radiobuttons.
I am unable to catch the selected radiobutton name as numbers of radiobuttons are varying.
Regards,
Ankit.
09-16-2009 1:02 PM
'RS_COVERPAGE_SELECTIONS'
us this FM to get radio buttons and values
09-16-2009 1:38 PM
09-17-2009 4:38 AM
Hi Ankit ,
Please proceed as below :
1. Decide the number of radio buttons on the selection screen.Also , As you are making buttons dynamically you are knowing the name of each button.
2. Loop on this and check which of the radio button is selected.You have to make names of buttons by using Concatenate in loop.Exit when you get the selected button.
3. Perform necessary operation based on buttion clicked.
Hope it help you.
09-17-2009 4:45 AM
09-17-2009 6:46 AM
You answer is a copy-paste from : https://wiki.sdn.sap.com/wiki/display/ABAP/ABAP-DynamicRadioButton
Reported to SCN Moderators.
pk