<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SELECT-OPTIONS in Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864030#M671671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply to me urgently, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Arnab Panigrahi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2007 12:06:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-19T12:06:57Z</dc:date>
    <item>
      <title>SELECT-OPTIONS in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864030#M671671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply to me urgently, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Arnab Panigrahi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 12:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864030#M671671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T12:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864031#M671672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is it not possible that u create one executable report (means in SE38), make selection screen there and than call ur next screen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 12:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864031#M671672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T12:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864032#M671673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select-option is only possible for report transactions only,&lt;/P&gt;&lt;P&gt;else create a report transaction for this screen and use submit and via selection-screen return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the screeen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 12:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864032#M671673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T12:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864033#M671674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a report , but actually the flow is like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 radio buttons - &amp;gt; this screen having select options -&amp;gt; report&lt;/P&gt;&lt;P&gt;the select options screen will be different for bothe the radio buttons...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module that you are aware of which can bring the popup atleast for value ranges.That would still help as i can code the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Arnab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 12:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864033#M671674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T12:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864034#M671675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi One solutions is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on Radio Button Selection you can activate different Select-options.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I.e if I select 1st Radio Button 1st group of Select-Option will be shown and 2 nd will be deactivated or hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a code explaining the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YTEMP12.&lt;/P&gt;&lt;P&gt;TABLES: MARA.&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;p_r1 RADIOBUTTON GROUP g1 USER-COMMAND usr DEFAULT 'X',&lt;/P&gt;&lt;P&gt;p_r2 RADIOBUTTON GROUP g1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_input1 TYPE matnr MODIF ID m1,&lt;/P&gt;&lt;P&gt;p_input2 TYPE matnr MODIF ID m2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: SO1 FOR MARA-MATNR MODIF ID m1,&lt;/P&gt;&lt;P&gt;                SO2 FOR mara-matkl MODIF ID m2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_r1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF screen-group1 = 'M2'.&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF screen-group1 = 'M1'.&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darshan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Please Reward Points to each answer which is helpful. It Motivates us to Help Others.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Darshan Patel (EDS-Pune)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 12:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864034#M671675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864035#M671676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following function module for the same.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;                                                                        
  call function 'COMPLEX_SELECTIONS_DIALOG'                             
       exporting                                                        
            text      = 'Some text'                                     
       tables                                                           
            range     = lr_datum                                        
       exceptions                                                       
            cancelled = 0                                               
            others    = 1.                                                                                
if not sy-subrc is initial.                                           
    clear: lr_datum, lr_datum[].                                        
  endif.                                                                 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 12:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864035#M671676</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-09-19T12:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864036#M671677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You even use call selection-screen based on your radio buttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similar to this....u will get a pop-up like screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE TEXT-456. &lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-BL1 &lt;/P&gt;&lt;P&gt;                                      NO INTERVALS. &lt;/P&gt;&lt;P&gt;    SELECT-OPTIONS SEL1 FOR SY-SUBRC. &lt;/P&gt;&lt;P&gt;    PARAMETERS     PAR1 LIKE SPFLI-CARRID. &lt;/P&gt;&lt;P&gt;    SELECTION-SCREEN COMMENT /10(20) TEXT-COM. &lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF BLOCK BL1. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 123. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN 123 STARTING AT 20 5. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 12:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864036#M671677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T12:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS in Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864037#M671678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few dot points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="542221"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This would be easy to adapt to being a popup rather than a full screen if required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. As noted above, you can code your own select-options as in&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="456105"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which I think Sesh has quoted from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zlocal_jc_radiobutton_hiding.

tables:
  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.
parameters:
  p_date                like sy-datum modif id bl1.
selection-screen end of block block1.

selection-screen begin of block block2 with frame title text2.
parameters:
  p_time                like sy-uzeit modif id bl2.
selection-screen end of block block2.

selection-screen end of block tot.

*" Events:
initialization.
  text1 = 'Enter a date'.
  text2 = 'Enter a time'.

at selection-screen output.
  perform at_selection_screen_output.

at selection-screen.
  perform at_selection_screen.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  at_selection_screen_output
*&amp;amp;---------------------------------------------------------------------*
form at_selection_screen_output.
*" Hide the appropriate fields
  loop at screen.
    if  p_rb_01       = 'X'
    and screen-group1 = 'BL2'.
      screen-active = '0'.
    endif.
    if  p_rb_02       = 'X'
    and screen-group1 = 'BL1'.
      screen-active = '0'.
    endif.
    modify screen.
  endloop.
endform.                    "at_selection_screen_output

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  at_selection_screen
*&amp;amp;---------------------------------------------------------------------*
form at_selection_screen.
*" trap the radiobutton
  if sscrfields-ucomm = 'ZRB1'. "clicked Subtotal checkbox
*" if you want to trap this radio button press here
  endif.

endform.                    "at_selection_screen&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 03:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-screen/m-p/2864037#M671678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T03:04:46Z</dc:date>
    </item>
  </channel>
</rss>

