<?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 Need help on selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468767#M220494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have a requirement. My user want when she run the report online all variable on selection screen should be parameters means not range or extension and some selection screen checks. But when she run the report in batch mode, all variable on the selection screen should be select-options means ranges with extension. Is it possible to create 2 selection screen in same report, I have no idea, is it possible or not. If possible please tell me how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2006 15:01:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-25T15:01:25Z</dc:date>
    <item>
      <title>Need help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468767#M220494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have a requirement. My user want when she run the report online all variable on selection screen should be parameters means not range or extension and some selection screen checks. But when she run the report in batch mode, all variable on the selection screen should be select-options means ranges with extension. Is it possible to create 2 selection screen in same report, I have no idea, is it possible or not. If possible please tell me how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:01:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468767#M220494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T15:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468768#M220495</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;Check this link , use Sy-batch to differentiate between online and background mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1896838"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468768#M220495</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-25T15:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468769#M220496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I would try one selection screen all with select options.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then do a LOOP AT SCREEN. making the upper field and extension invisible if you are not in batch mode (sy-batch = X).  Thus making your field look like a parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: J.J&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: J.J&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:11:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468769#M220496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T15:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468770#M220497</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 you can do like this.&lt;/P&gt;&lt;P&gt;If SY-BATCH = 'X'.&lt;/P&gt;&lt;P&gt;    selection-screen: begin of block B1 with &lt;/P&gt;&lt;P&gt;frame   title    text-001.&lt;/P&gt;&lt;P&gt;     select-options: s_bukrs for t001-bukrs obligatory.&lt;/P&gt;&lt;P&gt;   selection-screen: end of block B1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;    selection-screen: begin of block B1 with &lt;/P&gt;&lt;P&gt;frame   title    text-001.&lt;/P&gt;&lt;P&gt;     parameters: s_bukrs like t001-bukrs obligatory. &lt;/P&gt;&lt;P&gt;   selection-screen: end of block B1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;If this helps you reward with points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468770#M220497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T15:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468771#M220498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: d_parm type c.

selection-screen begin of screen 1001.
parameters: p_parm type c.
selection-screen end of screen 1001.


selection-screen begin of screen 1002.
select-options: s_parm for d_parm.
selection-screen end of screen 1002.

start-of-selection.

  if sy-batch = space.
    call selection-screen 1001.
    write:/ p_parm.
  else.
    call selection-screen 1002.
    loop at s_parm.
      write:/ s_parm.
    endloop.
  endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not wrap the selection screen statements with an IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468771#M220498</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-25T15:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468772#M220499</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;Try this code,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;Important thing is, don't use default selection-screen(1000).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: w_matnr TYPE matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 1001.&lt;/P&gt;&lt;P&gt;PARAMETER: pr_param  TYPE matnr.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 1002.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_sele FOR w_matnr.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 1002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-binpt = 'X'.&lt;/P&gt;&lt;P&gt;    CALL SELECTION-SCREEN 1001.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    CALL SELECTION-SCREEN 1002.&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;&amp;lt;b&amp;gt;You should be the same logic in the remaining program(like in START-OF-SELECTION, END-OF-SELECTION etc) where ever the implication of selection screen fileds are there.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Bharat Kumar Reddy.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-selection-screen/m-p/1468772#M220499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T15:26:45Z</dc:date>
    </item>
  </channel>
</rss>

