<?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 regarding the selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105587#M737204</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;iam using the code like as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-tcode.&lt;/P&gt;&lt;P&gt;when 'YTC1'.&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0100.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;select-options lifnr for lfa1-lifnr  no intervals.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b2 with frame title text-002.&lt;/P&gt;&lt;P&gt;parameters r1 radiobutton group g.&lt;/P&gt;&lt;P&gt;parameters r2 radiobutton group g.&lt;/P&gt;&lt;P&gt;parameters r3 radiobutton group g.&lt;/P&gt;&lt;P&gt;selection-screen end of block b2.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'YTC2'.&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0200.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b3 with frame title text-003.&lt;/P&gt;&lt;P&gt;select-options matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;selection-screen end of block b3.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b4 with frametitle text-004.&lt;/P&gt;&lt;P&gt;parameters r1 radiobutton group g.&lt;/P&gt;&lt;P&gt;selection-screen end of block b4.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is throwing the error as already matnr is defined.but i require this because i have to use to transaction codes for the same program and i have to display each screen for one transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please correct me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2007 08:16:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-23T08:16:10Z</dc:date>
    <item>
      <title>regarding the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105587#M737204</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;iam using the code like as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-tcode.&lt;/P&gt;&lt;P&gt;when 'YTC1'.&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0100.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;select-options lifnr for lfa1-lifnr  no intervals.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b2 with frame title text-002.&lt;/P&gt;&lt;P&gt;parameters r1 radiobutton group g.&lt;/P&gt;&lt;P&gt;parameters r2 radiobutton group g.&lt;/P&gt;&lt;P&gt;parameters r3 radiobutton group g.&lt;/P&gt;&lt;P&gt;selection-screen end of block b2.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'YTC2'.&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0200.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b3 with frame title text-003.&lt;/P&gt;&lt;P&gt;select-options matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;selection-screen end of block b3.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b4 with frametitle text-004.&lt;/P&gt;&lt;P&gt;parameters r1 radiobutton group g.&lt;/P&gt;&lt;P&gt;selection-screen end of block b4.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is throwing the error as already matnr is defined.but i require this because i have to use to transaction codes for the same program and i have to display each screen for one transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please correct me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 08:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105587#M737204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T08:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105588#M737205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Change here for 'YTC2' : select-options s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As matnr is alsready declared when 'YTC1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*reward if helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 08:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105588#M737205</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2007-11-23T08:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105589#M737206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since it is the same program, you will have to rename your variables...you can still have the same type so that you are not affected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-tcode.&lt;/P&gt;&lt;P&gt;when 'YTC1'.&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0100.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;select-options lifnr for lfa1-lifnr no intervals.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b2 with frame title text-002.&lt;/P&gt;&lt;P&gt;parameters r1 radiobutton group g.&lt;/P&gt;&lt;P&gt;parameters r2 radiobutton group g.&lt;/P&gt;&lt;P&gt;parameters r3 radiobutton group g.&lt;/P&gt;&lt;P&gt;selection-screen end of block b2.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'YTC2'.&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0200.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b3 with frame title text-003.&lt;/P&gt;&lt;P&gt;select-options &amp;lt;b&amp;gt;s_matnr&amp;lt;/b&amp;gt; for mara-matnr.&lt;/P&gt;&lt;P&gt;selection-screen end of block b3.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b4 with frametitle text-004.&lt;/P&gt;&lt;P&gt;parameters &amp;lt;b&amp;gt;r4&amp;lt;/b&amp;gt; radiobutton group &amp;lt;b&amp;gt;g1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;selection-screen end of block b4.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 08:21:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105589#M737206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T08:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105590#M737207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;       Write all the parameters and selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use selection-screen output event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie select-options : matnr for mara-matnr modif id 'MRN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;if sy-tcode = 'YTC1'.&lt;/P&gt;&lt;P&gt;  loop at screen.&lt;/P&gt;&lt;P&gt;    if screen-group1 = 'MRN'.&lt;/P&gt;&lt;P&gt;       screen-active = '0'.&lt;/P&gt;&lt;P&gt;       modify screen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&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;regards,&lt;/P&gt;&lt;P&gt;Santosh Thorat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 08:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105590#M737207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T08:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105591#M737208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi surya , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think u have to handle this by using at selection screen output . &lt;/P&gt;&lt;P&gt;under this event u have to check for ur tcode and then make the screen elements invisible or in display mode . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;ROhit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 08:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105591#M737208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T08:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105592#M737209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The program will not allow to declare same variable twice. so you need to change the matnr with a cnange (i.e.&amp;lt;b&amp;gt; s_matnr&amp;lt;/b&amp;gt;) in 'YTC2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'YTC2'.&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0200.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b3 with frame title text-003.&lt;/P&gt;&lt;P&gt;select-options s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;selection-screen end of block b3.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b4 with frametitle text-004.&lt;/P&gt;&lt;P&gt;parameters r4 radiobutton group g1.&lt;/P&gt;&lt;P&gt;selection-screen end of block b4.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 08:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105592#M737209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T08:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105593#M737210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Selection-screen, parameters and select-options define the screen for the abap interpreter.  They are NOT executed ABAP commands, and as such will ignore any control structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF 1 EQ 1.
  PARAMETERS p_1 TYPE c.
ELSE.
  PARAMETERS p_2 TYPE c.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will produce a selection screen with &amp;lt;b&amp;gt;two&amp;lt;/b&amp;gt; parameters - p_1 and p_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, your "WHEN" structure is useless.  You have to define both screens.  You can't make it conditional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 09:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-selection-screen/m-p/3105593#M737210</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-23T09:00:56Z</dc:date>
    </item>
  </channel>
</rss>

