Skip to Content
author's profile photo Former Member
Former Member

Dynamically Select radiobutton.

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 16, 2009 at 11:10 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2009 at 03: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2009 at 03:45 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.