<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597691#M1083965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be checking if the report output table contains any data or not, even before calling the function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2008 10:04:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-16T10:04:42Z</dc:date>
    <item>
      <title>selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597677#M1083951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After error message how to bring back selection screen for user&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597677#M1083951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597678#M1083952</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 the Command Box , I mean where you write T-codes in that box write BACK and enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597678#M1083952</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-10-16T09:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597679#M1083953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to return to the selection screen, put the error message under AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*----------------------------------------------------------------------*
*                      AT SELECTION-SCREEN EVENT                       *
*----------------------------------------------------------------------*

AT SELECTION-SCREEN.

  MOVE sy-ucomm TO sscrfields-ucomm.
  CHECK sscrfields-ucomm EQ 'ONLI'.

* To validate the user input vendor number.
  PERFORM validate_vendor.

*----------------------------------------------------------------------*
*  FORM VALIDATE_VENDOR                                                *
*----------------------------------------------------------------------*
*  Subroutine for validating the user input vendor number.             *
*----------------------------------------------------------------------*
*  There are no interface parameters to be passed to this subroutine.  *
*----------------------------------------------------------------------*
FORM validate_vendor .

  SELECT SINGLE
         lifnr                         " Vendor number
         name1                         " Vendor name
         ort01                         " City
    INTO (w_lifnr,
          w_vend_name,
          w_vend_city)
    FROM lfa1
   WHERE lifnr IN s_lifnr.

  IF sy-subrc NE 0.
    MESSAGE e888(sabapdocu)
       WITH text-nov.
  ENDIF.                               " IF SY-SUBRC NE 0

ENDFORM.                               " VALIDATE_VENDOR
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user enters the wrong vendor, the error message will be triggered and the user will be returned to the selection screen. If you are in the START-OF-SELECTION event and the processing needs to be stopped immediately, then use a success or information message and write EXIT command. That too will return the selection screen for the user to change the selection-criteria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597679#M1083953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597680#M1083954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use At selection-screen on &amp;lt;field&amp;gt; which would allow to back at the same position.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597680#M1083954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597681#M1083955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use &lt;/P&gt;&lt;P&gt;set screen '0'.&lt;/P&gt;&lt;P&gt;leave screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or make message type as warning message by using&lt;/P&gt;&lt;P&gt;message 'Message'  type ' w '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597681#M1083955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597682#M1083956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, after calling ALV function module, if I get an error message like no data found, I should bring the control back to initial selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597682#M1083956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597683#M1083957</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;Instead putting a error message, you can put a warning message, which makes the user to continue with his program execution after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumalatha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597683#M1083957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597684#M1083958</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 can use leave to transaction.&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen output&lt;/P&gt;&lt;P&gt;  IF &amp;lt;CONDITION&amp;gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE &amp;lt;msg type&amp;gt;.&lt;/P&gt;&lt;P&gt;    LEAVE TO TRANSACTION '&amp;lt;tcode&amp;gt;'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597684#M1083958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597685#M1083959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just use AT SELECTION SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANXS N REGARDS&lt;/P&gt;&lt;P&gt; SACHIN SHARMA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597685#M1083959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597686#M1083960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After message use the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madan Mohan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597686#M1083960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597687#M1083961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 .use information message &lt;/P&gt;&lt;P&gt;after that write stop statement to brig back to selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. use at user command&lt;/P&gt;&lt;P&gt; write down the query under Execute's(F8) user command    &lt;/P&gt;&lt;P&gt;if no data found give eroor msg which will bring to selection screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 10:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597687#M1083961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T10:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597688#M1083962</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;&lt;/P&gt;&lt;P&gt;Before passing the internal table to ALV function module you check whether Any data exists or not if there is not data then simply print a message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 10:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597688#M1083962</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-10-16T10:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597689#M1083963</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;AT SELECTION-SCREEN provides a facility to get back your focus even got the ERROR message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 10:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597689#M1083963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597690#M1083964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in event end-of-selection do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IT_ALVFINAL is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Message I000 'No records found for the selection criteria'.&lt;/P&gt;&lt;P&gt;  set screen '0'.&lt;/P&gt;&lt;P&gt;  leave screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 10:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597690#M1083964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T10:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597691#M1083965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be checking if the report output table contains any data or not, even before calling the function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 10:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4597691#M1083965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T10:04:42Z</dc:date>
    </item>
  </channel>
</rss>

