<?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: messages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511113#M1066886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;message e999(zclass).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2008 13:43:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-07T13:43:32Z</dc:date>
    <item>
      <title>messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511109#M1066882</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;i want to use an error message if an error has occured and that after a the message the report will stop and will return to the selection screen.&lt;/P&gt;&lt;P&gt;how can i do that.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 13:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511109#M1066882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511110#M1066883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;MESSAGE E001(00) WITH 'This is an error'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use Statement as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;STOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 13:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511110#M1066883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T13:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511111#M1066884</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;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS : p_upload TYPE rlgrap-filename.

AT SELECTION-SCREEN.
 IF  p_upload IS INITIAL .
    MESSAGE text-018 TYPE 'E'.
    LEAVE TO SCREEN 1000.  " you can use leave to list-processing here as well
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 13:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511111#M1066884</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2008-10-07T13:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511112#M1066885</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 do something like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"Select data from tables etc..
  IF NOT SY-SUBRC IS INITIAL.
    MESSAGE Snnn.   " Give a success message here
" Check if the program was called from 
     IF NOT SY-CALLD IS INITIAL.
       LEAVE.
    ELSE.
       LEAVE TO TRANSACTION SY-TCODE.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem here is that you will have to assign a transaction code for your program.&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;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 13:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511112#M1066885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T13:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511113#M1066886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;message e999(zclass).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 13:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/4511113#M1066886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T13:43:32Z</dc:date>
    </item>
  </channel>
</rss>

