Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamically Select radiobutton.

Former Member
0 Likes
844

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.

7 REPLIES 7
Read only

Former Member
0 Likes
810

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

Read only

0 Likes
810

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.

Read only

0 Likes
810

'RS_COVERPAGE_SELECTIONS'

us this FM to get radio buttons and values

Read only

0 Likes
810

This message was moderated.

Read only

Former Member
0 Likes
810

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.

Read only

Former Member
0 Likes
810

This message was moderated.

Read only

0 Likes
810

You answer is a copy-paste from : https://wiki.sdn.sap.com/wiki/display/ABAP/ABAP-DynamicRadioButton

Reported to SCN Moderators.

pk