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



I am trying to create select - options in Screen , i.e. not the selection screen but a custom screen, say 9000. I can make the text boxes etc for having the select options. But How do I simulate the button wchich comes after select options. It would be used in dialogue programming with multiple screens having different reports.

Please reply to me urgently,

Thanks and Regards

Arnab Panigrahi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 19, 2007 at 12:52 PM


    Use the following function module for the same.

      call function 'COMPLEX_SELECTIONS_DIALOG'                             
                text      = 'Some text'                                     
                range     = lr_datum                                        
                cancelled = 0                                               
                others    = 1.                                                                                
    if not sy-subrc is initial.                                           
        clear: lr_datum, lr_datum[].                                        



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2007 at 12:17 PM


    i think even if u get that button, from where u get its functionality means ranges and all that because u have to write code for that also.

    So is it not possible that u create one executable report (means in SE38), make selection screen there and than call ur next screen?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2007 at 12:23 PM

    Select-option is only possible for report transactions only,

    else create a report transaction for this screen and use submit and via selection-screen return.

    You can get the screeen.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      A few dot points:

      1. You can have a select-option embedded in a dynpro, if you want, by using a subscreen. There's an example bit of code at

      Module - pool Question..?

      This would be easy to adapt to being a popup rather than a full screen if required.

      2. As noted above, you can code your own select-options as in

      Making a referenced field a range?

      which I think Sesh has quoted from.

      3. For the requirement you expressed initially, the code below should do the trick... you get a different block of extra selections depending on which radionbutton you select.


      report zlocal_jc_radiobutton_hiding.
        sscrfields.           "To allow trapping of Fcode on selection screen
      selection-screen begin of block tot with frame.
      parameters :
        p_rb_01          radiobutton group rbg1 user-command zrb1 default 'X',
        p_rb_02          radiobutton group rbg1.
      selection-screen begin of block block1 with frame title text1.
        p_date                like sy-datum modif id bl1.
      selection-screen end of block block1.
      selection-screen begin of block block2 with frame title text2.
        p_time                like sy-uzeit modif id bl2.
      selection-screen end of block block2.
      selection-screen end of block tot.
      *" Events:
        text1 = 'Enter a date'.
        text2 = 'Enter a time'.
      at selection-screen output.
        perform at_selection_screen_output.
      at selection-screen.
        perform at_selection_screen.
      *&      Form  at_selection_screen_output
      form at_selection_screen_output.
      *" Hide the appropriate fields
        loop at screen.
          if  p_rb_01       = 'X'
          and screen-group1 = 'BL2'.
            screen-active = '0'.
          if  p_rb_02       = 'X'
          and screen-group1 = 'BL1'.
            screen-active = '0'.
          modify screen.
      endform.                    "at_selection_screen_output
      *&      Form  at_selection_screen
      form at_selection_screen.
      *" trap the radiobutton
        if sscrfields-ucomm = 'ZRB1'. "clicked Subtotal checkbox
      *" if you want to trap this radio button press here
      endform.                    "at_selection_screen

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.