<?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 Re: Selection Screen Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883313#M1141241</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;- in START-OF-SELECTION &lt;/P&gt;&lt;P&gt;event do your data retrievals,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * &lt;/P&gt;&lt;P&gt;from table.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- in END-OF-SELECTION event&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If ITAB[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;MESSAGE s000 WITH TEXT-M01.&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;You should display am information message since no errors were found but data entered in selection screen is valid. Its just that no valid data was retrieved from database.&lt;/P&gt;&lt;P&gt;&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;Dev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Dec 2008 03:58:20 GMT</pubDate>
    <dc:creator>dev_parbutteea</dc:creator>
    <dc:date>2008-12-23T03:58:20Z</dc:date>
    <item>
      <title>Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883309#M1141237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one query. My requirement is that based on selection screen input, If I don't find any data then I wanted to display an error message &amp;amp; come back to my selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the logic as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ITAB[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE E000 WITH TEXT-M01.&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;But It is not coming back to my selection screen. Any suggestion how I can achieve the requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Poonam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 03:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883309#M1141237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T03:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883310#M1141238</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;If you dont find any data then you need write the IF condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab[] is initial.&lt;/P&gt;&lt;P&gt;message 'No data found' type 'E'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;leave to screen 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 03:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883310#M1141238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T03:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883311#M1141239</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;If you have written code in at selection screen use Leave list-processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ITAB[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE E000 WITH TEXT-M01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leave list-processing.&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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 03:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883311#M1141239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T03:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883312#M1141240</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;Do this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_file. u201Cp_file is parameter on selection-screen&lt;/P&gt;&lt;P&gt;*---checking file exist or not in AS&lt;/P&gt;&lt;P&gt;    put you select query here.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ITAB[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE E000 WITH TEXT-M01.&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Krishna..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 03:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883312#M1141240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T03:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883313#M1141241</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;- in START-OF-SELECTION &lt;/P&gt;&lt;P&gt;event do your data retrievals,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * &lt;/P&gt;&lt;P&gt;from table.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- in END-OF-SELECTION event&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If ITAB[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;MESSAGE s000 WITH TEXT-M01.&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;You should display am information message since no errors were found but data entered in selection screen is valid. Its just that no valid data was retrieved from database.&lt;/P&gt;&lt;P&gt;&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;Dev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 03:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883313#M1141241</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2008-12-23T03:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883314#M1141242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;          You need to check for data at &lt;STRONG&gt;AT SELECTION-SCREEN&lt;/STRONG&gt; event. While processing START-OF-SELECTION you can never go back to your selection screen by throwing an error message.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 04:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883314#M1141242</guid>
      <dc:creator>antony_paul2</dc:creator>
      <dc:date>2008-12-23T04:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883315#M1141243</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...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab[] is initial.&lt;/P&gt;&lt;P&gt;message 'XXXXX' type 'I' as 'E'.&lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 04:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883315#M1141243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T04:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883316#M1141244</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;You need to write this code under the event AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;it will then return to selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 05:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883316#M1141244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T05:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883317#M1141245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt; You can try it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab[] is initial.&lt;/P&gt;&lt;P&gt;MESSAGE 'PLEASE CHECK THE ENTRY' TYPE 'E'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Message----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you wont to exit the selection screen when there is no match fir ur perticular condition hence its better if you use ita[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence whenever there is no match fr the particular condition it will give u this message&lt;/P&gt;&lt;P&gt;&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;sumeet malhotra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 05:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883317#M1141245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T05:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883318#M1141246</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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on s_bukrs (Ur screen input).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single bukrs from t001 into it_t00l where bukrs in s_bukrs.( Ur selection )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message E000 with text-001.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will work for requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 05:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883318#M1141246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T05:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883319#M1141247</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;U cant come back to the selection screen if u are passing the error message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need to write as follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not itab[] is initial.&lt;/P&gt;&lt;P&gt;  Message text-001 type 'I'.&lt;/P&gt;&lt;P&gt; Leave List-processing.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will definately work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 05:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/4883319#M1141247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T05:26:19Z</dc:date>
    </item>
  </channel>
</rss>

