<?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/3252165#M776594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF GT_REVERSAL[] IS INITIAL.&lt;/P&gt;&lt;P&gt;MESSAGE E062(YF).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2008 22:12:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-15T22:12:12Z</dc:date>
    <item>
      <title>Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252164#M776593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my program logic start-of-selection i am retrieving data from DB tables based on selection parameters. How if the data is not found then i am displayed a error message. The problem is after the error message is displayed instead of going back to selection screen it is goin to sap main screen. how to fix this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT BUKRS&lt;/P&gt;&lt;P&gt;         BELNR&lt;/P&gt;&lt;P&gt;         GJAHR&lt;/P&gt;&lt;P&gt;         BLDAT&lt;/P&gt;&lt;P&gt;         BLART&lt;/P&gt;&lt;P&gt;         WAERS&lt;/P&gt;&lt;P&gt;         KURSF&lt;/P&gt;&lt;P&gt;         BKTXT&lt;/P&gt;&lt;P&gt;         STODT&lt;/P&gt;&lt;P&gt;         STGRD&lt;/P&gt;&lt;P&gt;         FROM BKPF INTO TABLE GT_REVERSAL&lt;/P&gt;&lt;P&gt;         WHERE BUKRS IN S_BUKRS AND&lt;/P&gt;&lt;P&gt;         BELNR IN S_BELNR AND&lt;/P&gt;&lt;P&gt;         GJAHR IN S_GJAHR AND&lt;/P&gt;&lt;P&gt;         STODT IN S_RBDAT AND&lt;/P&gt;&lt;P&gt;         XSTOV EQ 'X' AND&lt;/P&gt;&lt;P&gt;         STBLG EQ ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF GT_REVERSAL[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE E062(YF).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252164#M776593</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2008-01-15T22:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252165#M776594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF GT_REVERSAL[] IS INITIAL.&lt;/P&gt;&lt;P&gt;MESSAGE E062(YF).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252165#M776594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T22:12: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/3252166#M776595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably better ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BUKRS&lt;/P&gt;&lt;P&gt;BELNR&lt;/P&gt;&lt;P&gt;GJAHR&lt;/P&gt;&lt;P&gt;BLDAT&lt;/P&gt;&lt;P&gt;BLART&lt;/P&gt;&lt;P&gt;WAERS&lt;/P&gt;&lt;P&gt;KURSF&lt;/P&gt;&lt;P&gt;BKTXT&lt;/P&gt;&lt;P&gt;STODT&lt;/P&gt;&lt;P&gt;STGRD&lt;/P&gt;&lt;P&gt;FROM BKPF INTO TABLE GT_REVERSAL&lt;/P&gt;&lt;P&gt;WHERE BUKRS IN S_BUKRS AND&lt;/P&gt;&lt;P&gt;BELNR IN S_BELNR AND&lt;/P&gt;&lt;P&gt;GJAHR IN S_GJAHR AND&lt;/P&gt;&lt;P&gt;STODT IN S_RBDAT AND&lt;/P&gt;&lt;P&gt;XSTOV EQ 'X' AND&lt;/P&gt;&lt;P&gt;STBLG EQ ''.&lt;/P&gt;&lt;P&gt;If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;                     message ......&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;Best!&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252166#M776595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T22:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252167#M776596</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 the following statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF GT_REVERSAL is initial.&lt;/P&gt;&lt;P&gt;MESSAGE S062(YF).  &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will stay on selection screen only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shylesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252167#M776596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T22:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252168#M776597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's working fine when is put my logic in at selection-screen event &lt;/P&gt;&lt;P&gt;however i am not sure that block of code can be put in the at selection screen event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252168#M776597</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2008-01-15T22:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252169#M776598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to write this code in start-of-selection event.  &lt;/P&gt;&lt;P&gt;that will really work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shylesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252169#M776598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T22:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252170#M776599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;report zprogram.&lt;/P&gt;&lt;P&gt;&amp;gt;SELECT BUKRS BELNR GJAHR BLDAT BLART WAERS KURSF BKTXT STODT STGRD&lt;/P&gt;&lt;P&gt;&amp;gt;FROM BKPF INTO TABLE GT_REVERSAL&lt;/P&gt;&lt;P&gt;&amp;gt;WHERE BUKRS IN S_BUKRS AND&lt;/P&gt;&lt;P&gt;&amp;gt;BELNR IN S_BELNR AND&lt;/P&gt;&lt;P&gt;&amp;gt;GJAHR IN S_GJAHR AND&lt;/P&gt;&lt;P&gt;&amp;gt;STODT IN S_RBDAT AND&lt;/P&gt;&lt;P&gt;&amp;gt;XSTOV EQ 'X' AND&lt;/P&gt;&lt;P&gt;&amp;gt;STBLG EQ ''.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;IF GT_REVERSAL[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&amp;gt;MESSAGE W062(YF).&lt;/P&gt;&lt;P&gt;&amp;gt;submit zprogram with S_BUKRS in S_BUKRS&lt;/P&gt;&lt;P&gt;&amp;gt;                          with S_BELNR in S_BELNR&lt;/P&gt;&lt;P&gt;&amp;gt;                         with S_GJAHR in S_GJAHR&lt;/P&gt;&lt;P&gt;&amp;gt;                         with S_RBDAT  in S_RBDAT &lt;/P&gt;&lt;P&gt;&amp;gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you prefer an error message instead of warning message use a pop-up to send the error message.&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252170#M776599</guid>
      <dc:creator>mnicolai_77</dc:creator>
      <dc:date>2008-01-15T22:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252171#M776600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably the easiest:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  IF gt_reversal[] IS INITIAL.
    MESSAGE ID 'YF' TYPE 'S' NUMBER '062'.
  ENDIF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252171#M776600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T22:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252172#M776601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The right place to check the selection data and any subsequent data is AT SELECTION-SCREEN event block as you are still on the selection screen and can show error messages here. Once you leave the selection screen and enter the START-OF-SELECTION event, there is no coming back to selection screen and its events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't get any data based on user data, there is no processing needed for the data and no report output will be generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that you keep your code in AT SELECTION-SCREEN event block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252172#M776601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T22:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252173#M776602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think AT SELECTION-SCREEN is mainly used to validate the selection screen inputs from check tables or any validations.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if i am wrong?&lt;/P&gt;&lt;P&gt;shylesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 22:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252173#M776602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T22:59: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/3252174#M776603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanjeev - the SELECT being used could take a while to execute. I generally try to avoid having a lot of processing done in the AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 23:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252174#M776603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T23:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252175#M776604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;as we know at selection screen event is for selection of inputs from the user ..so after the selection of input...we give start-of-selection event..so with this event based upon the inputs selected we start processing in this event...so there is no question of going back to selection screen again...after start-of-selection event or during this event...may u r going to main screen of some runtime error or short dump....just check it out...&lt;/P&gt;&lt;P&gt;            rewards if helpful.........&lt;/P&gt;&lt;P&gt;                              urs prashanth...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 23:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252175#M776604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T23:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252176#M776605</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 should not code error message in the Start-of-selection event. If code the event it will come out of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want message, you could write message type 'I' ie infomation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message 'No data found' type 'I'.&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;procede with the further code..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 01:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3252176#M776605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T01:10:51Z</dc:date>
    </item>
  </channel>
</rss>

