Skip to Content

Create dinamic radiobuttons

hi all!

i have internal table, and earlier somebody use dialog screen with list processing: "write ... as checkbox".

but at present only one record must be select.

how can i create a dinamic radiobutton?

(i'm sorry about my english 😊

thank you

Message was edited by: Artjom Schmidt

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on Sep 07, 2006 at 07:20 PM

    If only one has to be selected, then get rid of the checkboxs and use a hotspot instead.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2006 at 07:22 PM

    Demo program.

    
    report zrich_0002 no standard page heading.
    
    data: ivbak type table of vbak with header line.
    
    data : cursor_field(30),
           field_value(30) .
    
    
    start-of-selection.
    
      select * into corresponding fields of table ivbak
          from vbak
              up to 20 rows.
    
      loop at ivbak.
        format hotspot on.
        write:/ ivbak-vbeln.
        hide ivbak-vbeln.
        format hotspot off.
      endloop.
    
    at line-selection.
    
      set parameter id 'AUN' field ivbak-vbeln.
      call transaction 'VA03' and skip first screen.
    
    

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2006 at 07:23 PM

    HI,

    Check the below thread, you will get the answer

    controlling-the-radio-buttons

    mark all the helpful answers

    Regards

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2006 at 07:24 PM

    Hi,

    You can handle this scenario in following ways

    1) use at line-selection event to process one record

    2) use at user command when user select one row

    and click on button application tool bar

    Regards

    Amole

    Add a comment
    10|10000 characters needed characters exceeded

    • You can even use an icon for the hotspot. This may give more of an indication that the user should click on it.

      
      report zrich_0002 no standard page heading.
      
      <b>type-pools: icon.</b>
      data: ivbak type table of vbak with header line.
      
      data : cursor_field(30),
             field_value(30) .
      
      
      start-of-selection.
      
        select * into corresponding fields of table ivbak
            from vbak
                up to 20 rows.
      
        loop at ivbak.
          format hotspot on.
      <b>    write:/ ICON_EXECUTE_OBJECT as icon,
           ivbak-vbeln.</b>
          hide ivbak-vbeln.
          format hotspot off.
        endloop.
      
      at line-selection.
      
        set parameter id 'AUN' field ivbak-vbeln.
        call transaction 'VA03' and skip first screen.
      
      

      Regards,

      Rich Heilman

  • Posted on Sep 08, 2006 at 07:01 AM

    thanks a lot! but i have next problem:

    not working event AT LINE-SELECTION

    (but working event AT USER-COMMAND)

    dialog was create in report with this code at PBO:

      SUPPRESS DIALOG.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

    i didn't understand what the problem 😔

    can you help me?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 08, 2006 at 06:02 PM

    problems is solved!

    i create small test program with this screen and all is working correct, than i delete pf-status and create his again. imho this was a bug! 😊

    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.