<?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: Return to selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498159#M231071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is in the start-of-selection event...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message i000(fb) with 'Error'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;if it is inside of a form...&lt;/P&gt;&lt;P&gt;message i000(fb) with 'Error'.&lt;/P&gt;&lt;P&gt;gv_error = 'X'.  &lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the calling form and/or start-of-selection...&lt;/P&gt;&lt;P&gt;check gv_error is initial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2006 17:49:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-26T17:49:13Z</dc:date>
    <item>
      <title>Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498153#M231065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In the program i am writing now, I intended to have the program return back to the selection screen whenever I encountered an error and the user pressed the green tick on the pop up box for the error message. However, what happens to me right now is that all I have is a blank screen with SAP on the title area if I do, for example,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MESSAGE e161(q6) WITH wa_defn-fieldname 'System'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;May I know how can I accomplish that? Thanks!&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;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 15:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498153#M231065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T15:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498154#M231066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call this message in the AT SELECION-SCREEN event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen.

MESSAGE e161(q6) WITH wa_defn-fieldname 'System'.&lt;/CODE&gt;&lt;/PRE&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>Wed, 26 Jul 2006 15:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498154#M231066</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-26T15:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498155#M231067</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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE e161(q6) WITH wa_defn-fieldname 'System'&amp;lt;b&amp;gt; display like 'S'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont use write statement in the report before error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please Reward Points &amp;amp; Mark Helpful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To mark Helpful Answers ;click radio Button next to the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RadioButtons&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;o&amp;lt;/b&amp;gt; Helpful Answer&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;o&amp;lt;/b&amp;gt; Very helpful Answer&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;o&amp;lt;/b&amp;gt; Problem Solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click any of the above button next to the post; as per the anwers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;To close the thread; Click Probelm solved Radio Button next to the post , which u feel is best possible answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 15:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498155#M231067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T15:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498156#M231068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I thought an Error message would immediately stop the entire program and the part to exit loop does not even exit. Furthermore, I do not want to generate the report, I want it to go back to selection screen without actually generate the report. Is that possible? Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 17:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498156#M231068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T17:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498157#M231069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you must do your validation with the message in the AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this not working for you?&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>Wed, 26 Jul 2006 17:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498157#M231069</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-26T17:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498158#M231070</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 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that case raise your error message with STOP statement like below, then system will stop the further processing and it will come back to selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE s161(q6) WITH wa_defn-fieldname 'System'.&lt;/P&gt;&lt;P&gt;STOP.&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;Appana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: L Appana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 17:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498158#M231070</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-26T17:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498159#M231071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is in the start-of-selection event...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message i000(fb) with 'Error'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;if it is inside of a form...&lt;/P&gt;&lt;P&gt;message i000(fb) with 'Error'.&lt;/P&gt;&lt;P&gt;gv_error = 'X'.  &lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the calling form and/or start-of-selection...&lt;/P&gt;&lt;P&gt;check gv_error is initial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 17:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498159#M231071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T17:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498160#M231072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Then you must do your validation with the message in&lt;/P&gt;&lt;P&gt;&amp;gt; the AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Is this not working for you?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did put that in the At Selection-Screen event, but all it threw to me was a blank screen with title 'SAP'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 17:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498160#M231072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498161#M231073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for sy-ucomm eq 'ONLI'.&lt;/P&gt;&lt;P&gt;*Select Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And If you want to give any status message give the status message and mark a flag eq X.&lt;/P&gt;&lt;P&gt;Check for this flag and use LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 17:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498161#M231073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T17:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498162#M231074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post your code?&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>Wed, 26 Jul 2006 18:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498162#M231074</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-26T18:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Return to selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498163#M231075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT  ysample.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_cust  FOR but000-partner OBLIGATORY, "Business Partner&lt;/P&gt;&lt;P&gt;                s_status FOR zspa_supstat-zzsptstatus  " Status&lt;/P&gt;&lt;P&gt;                         NO INTERVALS NO-EXTENSION&lt;/P&gt;&lt;P&gt;                         MATCHCODE OBJECT zs_supstat_es.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK a1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           AT SELECTION SCREEN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM check_selection_screen_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Select Installation.&lt;/P&gt;&lt;P&gt;  CHECK sy-ucomm EQ c_onli.&lt;/P&gt;&lt;P&gt;  PERFORM select_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            START OF SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;**********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Display Installation List&lt;/P&gt;&lt;P&gt;  IF ws_execute EQ c_x AND NOT i_final[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL SCREEN 9000.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE s001(zmmm) WITH 'No data found'.&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;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp;      Form  select_data&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Select Installation from Business partner&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Select Installation from EANL Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  SELECT a~anlage&lt;/P&gt;&lt;P&gt;         a~anlart&lt;/P&gt;&lt;P&gt;         a~zzkunnr&lt;/P&gt;&lt;P&gt;         a~zzsptstatus&lt;/P&gt;&lt;P&gt;         b~str_erg2&lt;/P&gt;&lt;P&gt;         b~haus&lt;/P&gt;&lt;P&gt;    INTO TABLE i_installation&lt;/P&gt;&lt;P&gt;    FROM eanl AS a INNER JOIN evbs AS b&lt;/P&gt;&lt;P&gt;     ON  a&lt;SUB&gt;vstelle EQ b&lt;/SUB&gt;vstelle&lt;/P&gt;&lt;P&gt;  WHERE  a~zzkunnr IN s_cust&lt;/P&gt;&lt;P&gt;    AND  a~zzsptstatus IN s_status&lt;/P&gt;&lt;P&gt;    AND  a~sparte  EQ c_sparte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE s001(zesspa) WITH text-004.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    ws_execute = c_x.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " select_data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 18:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-selection-screen/m-p/1498163#M231075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T18:30:15Z</dc:date>
    </item>
  </channel>
</rss>

